diff --git a/static/main/audio/csgo-throwing-flashbang-sound-effect.m4a b/static/main/audio/csgo-throwing-flashbang-sound-effect.m4a new file mode 100644 index 0000000..7f5cf56 Binary files /dev/null and b/static/main/audio/csgo-throwing-flashbang-sound-effect.m4a differ diff --git a/static/main/js/lightmode.js b/static/main/js/lightmode.js index a2010c0..ac84052 100644 --- a/static/main/js/lightmode.js +++ b/static/main/js/lightmode.js @@ -1,10 +1,11 @@ let lightmode = localStorage.getItem("lightmode") const HTML = document.documentElement -console.log(HTML) const ENABLE_LIGHT_MODE = () => { + const AUDIO = document.getElementById("flashbang") HTML.setAttribute("data-color-mode", "light") localStorage.setItem("lightmode", "enabled") + AUDIO.play() } const DISABLE_LIGHT_MODE = () => { diff --git a/templates/layout.html b/templates/layout.html index 2669462..5c723fd 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -48,6 +48,9 @@