0

Code not working on Sololearn mobile version

My code works fine on PC but when i try to open on mobile its not working. This is the link https://code.sololearn.com/WA3a15A4a13a

30th Apr 2021, 7:24 AM
Sire Emmanuelson Yeboah
Sire Emmanuelson Yeboah - avatar
4 Answers
+ 2
Hi! Use this: window.onload = () => { //you all code goes here }
30th Apr 2021, 7:37 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 2
Thank you very much guys it worked
30th Apr 2021, 10:30 AM
Sire Emmanuelson Yeboah
Sire Emmanuelson Yeboah - avatar
+ 1
Doing exactly what ŠÆрŠ¾ŃŠ»Š°Š² Š’ŠµŃ€Š½ŠøŠ³Š¾Ń€Š°(Yaroslav Vernigora) said should fix the issue! Due to the order in which the HTML, CSS and are loaded, you might want to wrap your code around a window.onload event to make sure the HTML you want to manipulate with the JS is loaded For load order, you might want yo check out this code by Kode Krasher Krasha i couldn't find your code on load order, maybe you could link it?
30th Apr 2021, 8:54 AM
Vachila64ā˜•
Vachila64ā˜• - avatar