0

Why does my JS code on codebits run on my laptop but displays typeError on my phone?

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

3rd Mar 2021, 10:54 PM
mary maundu
6 ответов
+ 2
On JS pane, DOM access method have to be executed from onload callback. https://code.sololearn.com/Wm3l7Y00C7Lg/?ref=app Next time, please don't post any code link from tag section.
3rd Mar 2021, 11:44 PM
Calviղ
Calviղ - avatar
+ 1
Hi Calvin and Ipang, I have made the rectification.. Thank you. I believe the code is now visible..
4th Mar 2021, 6:43 AM
mary maundu
+ 1
It's the color attribute of `.right-col p` which defined `color: #FFFAFA;` for the paragraph containing "Click here to listen". Change the color value to something more visible on the background colour.
4th Mar 2021, 9:06 AM
Ipang
+ 1
Ooh yeah.. Okay thanks Ipang
4th Mar 2021, 9:34 AM
mary maundu
+ 1
Thanks Calvin and Ipang, my code now works.
4th Mar 2021, 4:44 PM
mary maundu
0
Calvin... With the onload function, the 'click here to listen' disappears..
4th Mar 2021, 6:46 AM
mary maundu