+ 2

My code is returning an uncaught error and my css has no effect...like im completely list. Cab someone help me?

https://code.sololearn.com/W76hZonF527a/?ref=app

24th Sep 2019, 9:15 PM
Ife Abimbola-Olulesi
Ife Abimbola-Olulesi - avatar
6 Réponses
+ 2
Thanks alot Thong
25th Sep 2019, 12:40 AM
Ife Abimbola-Olulesi
Ife Abimbola-Olulesi - avatar
+ 1
#First: the css still work (try body{background-color:red;} and see) #And about the js: just wrap all of your js code inside this: window.onload = function(){ Your code here }
25th Sep 2019, 12:18 AM
Thống Nguyễn
Thống Nguyễn - avatar
+ 1
Iv still got a few problems tho...if you could run the code with the CSS on a laptop web browser... u'll see why i said the CSS isn't totally functional. But thanks alot still
25th Sep 2019, 12:41 AM
Ife Abimbola-Olulesi
Ife Abimbola-Olulesi - avatar
0
And #3: please copy the content of 2ndGame.js to the js section too!
25th Sep 2019, 12:19 AM
Thống Nguyễn
Thống Nguyễn - avatar
0
If some css work here but not there (desktop but not mobile, fire fox but not chrome...) It totally nomal. Developer task is fix these things!
25th Sep 2019, 1:11 AM
Thống Nguyễn
Thống Nguyễn - avatar
0
Popular things you can try is prefix and media query.
25th Sep 2019, 1:13 AM
Thống Nguyễn
Thống Nguyễn - avatar