Change class and add styles for replay button
This commit is contained in:
parent
b5f29e21c7
commit
373c0adf6c
2 changed files with 8 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ function endGame() {
|
|||
}
|
||||
|
||||
newGame.textContent = "Play Again?";
|
||||
newGame.classList.add("button");
|
||||
newGame.classList.add("replay-button");
|
||||
newGame.addEventListener("click", resetGame);
|
||||
newDiv.appendChild(newGame);
|
||||
msg.appendChild(newDiv);
|
||||
|
|
|
|||
|
|
@ -37,6 +37,13 @@ main {
|
|||
font-size: 30px;
|
||||
}
|
||||
|
||||
.replay-button {
|
||||
width: 200px;
|
||||
height: auto;
|
||||
margin: 5px;
|
||||
font-size: 30px;
|
||||
}
|
||||
|
||||
#rock {
|
||||
background-image: url("./images/rocks-576653_640.png");
|
||||
background-size: cover;
|
||||
|
|
|
|||
Loading…
Reference in a new issue