Skip to content

Commit

Permalink
Adds hourly gong
Browse files Browse the repository at this point in the history
  • Loading branch information
jenseni-git committed Aug 17, 2024
1 parent 68dcb3b commit 159ab40
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions static/hackathon_countdown.html
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@ <h1>Announcements</h1>
let minutes = Math.floor(time_diff / (1000 * 60)) % 60;
let seconds = Math.floor(time_diff / 1000) % 60;
text = "" + leftpad_with_zeros(hours, 2) + ":" + leftpad_with_zeros(minutes, 2) + ":" + leftpad_with_zeros(seconds, 2);

if (hours <= 24 && minutes == 0 && seconds == 0) {
let audio = new Audio('https://vetinari.net/bell.mp3');
audio.play();
}
}
timer.textContent = text;
}, 1000);
Expand Down

0 comments on commit 159ab40

Please sign in to comment.