Skip to content

Commit

Permalink
Align text better, clip sound
Browse files Browse the repository at this point in the history
  • Loading branch information
gurbaxani committed Sep 15, 2024
1 parent 7ba9ffa commit 304f189
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ document.addEventListener('DOMContentLoaded', function () {
const bellSound = new Audio('sounds/bell.mp3'); // Update the path as needed

resultDiv.addEventListener('click', function() {
bellSound.currentTime = 0.5; // Restart the audio from the beginning
bellSound.currentTime = 0.25; // Restart the audio from the beginning
bellSound.play(); // Play the sound effect
});

Expand Down
15 changes: 8 additions & 7 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
}

.timer-container {
/* position: fixed; */
/* bottom: 20px; */
/* left: 50%;
transform: translateX(-50%); */
display: flex;
align-items: center;
}
Expand All @@ -21,17 +17,22 @@

.nav-button {
margin: 5px;
transition: background-color 0.3s ease; /* Smooth transition for hover effect */
transition: background-color 0.3s ease;

}

.timer-container .nav-button {
width: 100px;
height: 40px;
transition: background-color 0.3s ease; /* Smooth transition for hover effect */
cursor: pointer;
transition: background-color 0.3s ease;
}

#result {
cursor: pointer; /* Change cursor to indicate it's clickable */
cursor: pointer;
height: 10em;
user-select: none;
display: flex;
justify-content: center;
align-items: center;
}

0 comments on commit 304f189

Please sign in to comment.