Skip to content

Commit

Permalink
Added Restart game button
Browse files Browse the repository at this point in the history
  • Loading branch information
DiksonIvySon committed Oct 20, 2023
1 parent 26fd9db commit 86f487c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
5 changes: 4 additions & 1 deletion RockPaperScissors/game.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ <h1 class="heading">
<div class="score-board">
<h2 id="gameResult">Start Playing</2>
<h2 class="score-h2">SCORE</h2>
<h2 id="gameScore"></h2>
<h2 id="gameScore">0:0</h2>
<a href="" class="restart">
<button>Restart Game</button>
</a>
</div>
</div>
</div>
Expand Down
23 changes: 23 additions & 0 deletions RockPaperScissors/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

body {
margin: 0;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

header {
Expand Down Expand Up @@ -46,6 +47,7 @@ main {
text-decoration: none;
color: black;
padding: 5px;
transition: 0.5s;
}

.nav ul li a:hover {
Expand Down Expand Up @@ -227,4 +229,25 @@ footer {
}
.web-author:hover {
color: aqua;
}

/* Styling the scroll bar */
body::-webkit-scrollbar {
width: 0px;
}

/* styling restart game button*/
.restart button {
padding: 5px;
background: transparent;
color: #fff;
border-radius: 5px;
margin-top: 10px;
transition: 0.5s;
}

.restart button:hover {
cursor: pointer;
background-color: aqua;
color: black;
}

0 comments on commit 86f487c

Please sign in to comment.