0
Web code
I don't know why I can't change the start button black https://sololearn.com/compiler-playground/WOq41056l0oN/?ref=app
3 odpowiedzi
+ 2
the start button is a child of the .titleScreen div. It's gone with the div when you set the display to 'none' in the function startGame.
+ 1
On which line?
0
line 40
40 document.getElementById('titleScreen').style.display = 'none';
you did this to hide the first div.
the problem is your button is inside that div, so it gets hidden too.
you don't have any button on your gameScreen.