Skip to content

Commit

Permalink
Added Back icon and Removed Home icon
Browse files Browse the repository at this point in the history
  • Loading branch information
AK-shat-JAIN committed Feb 17, 2023
1 parent af1df33 commit 51292f1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
9 changes: 2 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,7 @@
onclick="change()"
></i>
<!-- //done by kushaljgec2530 -->
<i
id="home-icon"
onclick="reset()"
class="fa fa-home"
aria-hidden="true"
></i>
<i id="back-icon" onclick="reset()" class="fa fa-chevron-left" aria-hidden="true"></i>
</div>
<div class="screen">
<img
Expand All @@ -42,7 +37,7 @@
aria-hidden="true"
/>
<h2>Play with your Favorite Edible🎮</h2>
<button class="btn" id="start-btn">
<button class="btn" id="start-btn" onclick="starting()">
Play Game!
<span></span><span></span><span></span><span></span>
</button>
Expand Down
4 changes: 4 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ function startGame() {
gameInterval = setInterval(increaseTime, 1000)
}

function starting(){
document.getElementById("back-icon").style.display = "block";
}

function increaseTime() {
let m = Math.floor(seconds / 60)
let s = seconds % 60
Expand Down
5 changes: 3 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -241,14 +241,15 @@ h1 {
padding: 0.5em;
border-radius: 5px;
}
#home-icon {
#back-icon {
font-size: x-large;
display: none;

cursor: pointer;
padding: 0.5em;
border-radius: 5px;
}
#home-icon:hover,
#back-icon:hover,
#light-icon:hover,
#pause-button:hover {
background-color: var(--primary);
Expand Down

0 comments on commit 51292f1

Please sign in to comment.