diff --git a/index.htm b/index.htm index a8ba3b2..c1b4342 100644 --- a/index.htm +++ b/index.htm @@ -8,6 +8,7 @@

+ diff --git a/js/main.js b/js/main.js index 6286be0..c2cb5ff 100644 --- a/js/main.js +++ b/js/main.js @@ -1,5 +1,7 @@ /* HTML contents */ +var body = document.body; var timerHTML = document.getElementById("timer"); +var ding = document.getElementById("ding"); /* GET url variable */ const queryString = window.location.search; @@ -14,6 +16,8 @@ let localTimer = setInterval(() => { timer.decrement(); if(timer.getTime() < 0) { clearInterval(localTimer); - timerHTML.style.color = "red"; + body.style.backgroundColor = "red"; + timerHTML.style.color = "white"; + ding.play(); } }, 1000); \ No newline at end of file diff --git a/sounds/ding.mp3 b/sounds/ding.mp3 new file mode 100644 index 0000000..b351312 Binary files /dev/null and b/sounds/ding.mp3 differ