Change class and add styles for replay button

This commit is contained in:
lolabird 2023-12-31 16:06:22 -07:00
commit 373c0adf6c
2 changed files with 8 additions and 1 deletions

View file

@ -105,7 +105,7 @@ function endGame() {
} }
newGame.textContent = "Play Again?"; newGame.textContent = "Play Again?";
newGame.classList.add("button"); newGame.classList.add("replay-button");
newGame.addEventListener("click", resetGame); newGame.addEventListener("click", resetGame);
newDiv.appendChild(newGame); newDiv.appendChild(newGame);
msg.appendChild(newDiv); msg.appendChild(newDiv);

View file

@ -37,6 +37,13 @@ main {
font-size: 30px; font-size: 30px;
} }
.replay-button {
width: 200px;
height: auto;
margin: 5px;
font-size: 30px;
}
#rock { #rock {
background-image: url("./images/rocks-576653_640.png"); background-image: url("./images/rocks-576653_640.png");
background-size: cover; background-size: cover;