Skip to content

Commit

Permalink
Fix bell sound
Browse files Browse the repository at this point in the history
  • Loading branch information
gurbaxani committed Sep 15, 2024
1 parent 988ce55 commit 6cd0810
Showing 1 changed file with 1 addition and 1 deletion.
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; // Restart the audio from the beginning
bellSound.currentTime = 0.5; // Restart the audio from the beginning
bellSound.play(); // Play the sound effect
});

Expand Down

0 comments on commit 6cd0810

Please sign in to comment.