0

What is error? On PC everything is ok. I checked all code. But this app. gives error.

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

1st Apr 2019, 8:41 AM
Олег Космачев
Олег Космачев - avatar
4 Respuestas
+ 5
A closing } is missing
1st Apr 2019, 9:09 AM
Anna
Anna - avatar
+ 4
add this in js section then write the code window.onload=function(){ // JS code goes here var work = document.getElementById("work"); work.onclick = function () { var div = document.getElementsByTagName ('div')[0]; div.classList.toggle('hide'); div.classList.toggle('work'); } }
1st Apr 2019, 10:06 AM
VEDANG
VEDANG - avatar
+ 1
o... Anna, you saved my live ))
1st Apr 2019, 9:21 AM
Олег Космачев
Олег Космачев - avatar
+ 1
Anna has shown me the issue I had got. Already fixed. Thanks.
1st Apr 2019, 10:10 AM
Олег Космачев
Олег Космачев - avatar