0

Web code

I don't know why I can't change the start button black https://sololearn.com/compiler-playground/WOq41056l0oN/?ref=app

7th Jul 2025, 9:03 PM
Brian O'Connell
Brian O'Connell - avatar
3 Antworten
+ 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.
7th Jul 2025, 10:25 PM
Bob_Li
Bob_Li - avatar
+ 1
On which line?
8th Jul 2025, 9:51 AM
Brian O'Connell
Brian O'Connell - avatar
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.
8th Jul 2025, 10:03 AM
Bob_Li
Bob_Li - avatar