+ 1
25th Mar 2023, 7:39 PM
_MinatoGamerYT_
_MinatoGamerYT_ - avatar
8 Answers
+ 3
_MinatoGamerYT_ Sololearn playground js tab loads earlier than the html tab, so you have to enclose the code inside a window.onload=()=>{ your code } or it will not find the DOM elements. Also, assign the DOM element callback functions through javascript. Do not use inline onclick assignments. These also don't work if your script is inside the js tab. I fixed your code and added some functionality. It's been a while since I've played with to-do lists and your code was easy to mod because it's organized well. I'm not sure why you would want to enclose it in a form, however... https://code.sololearn.com/WqG9x543U70P/?ref=app https://code.sololearn.com/WxPPmZFEc3mb/?ref=app
25th Mar 2023, 11:56 PM
Bob_Li
Bob_Li - avatar
+ 2
Yes, when I click on add note it doesnt work
25th Mar 2023, 10:12 PM
_MinatoGamerYT_
_MinatoGamerYT_ - avatar
+ 2
But in PC it does
25th Mar 2023, 10:13 PM
_MinatoGamerYT_
_MinatoGamerYT_ - avatar
+ 2
Thank u so much Bob_Li :DDD
26th Mar 2023, 9:04 AM
_MinatoGamerYT_
_MinatoGamerYT_ - avatar
+ 1
Are you referring to the responsiveness of your page?
25th Mar 2023, 10:05 PM
Williams
+ 1
One way is to use the css media query selector, to create a mobile view version for your page
25th Mar 2023, 10:25 PM
Williams
+ 1
But I'm surprised though because it showing perfectly in the output section of the sololearn IDE
25th Mar 2023, 10:26 PM
Williams
+ 1
_MinatoGamerYT_ Your design is nice and minimal. That is why it was fun to modify
26th Mar 2023, 9:08 AM
Bob_Li
Bob_Li - avatar