Adding the chicken/rooster sounds

This commit is contained in:
youri.apell@gmail.com
2022-11-03 14:41:30 +01:00
parent ffab12eeef
commit 02c171ae02
3 changed files with 4 additions and 0 deletions

View File

@@ -53,6 +53,8 @@ let root = document.querySelector(":root")
$(".logo").on("click", function() {
if (root.style.getPropertyValue("--main-bg") === 'snow') {
console.log("IM here")
var audio = new Audio("../media/Chicken.mp3");
audio.play();
root.style.setProperty('--main-medium-dark', '#1E1E1E');
root.style.setProperty('--main-bg', '#292929');
root.style.setProperty('--main-light', ' #ffffff' );
@@ -60,6 +62,8 @@ $(".logo").on("click", function() {
root.style.setProperty('--tweet-color', '#000000')
root.style.setProperty('--column-color', '#1E1E1E')
} else {
var audio = new Audio("../media/Rooster.mp3");
audio.play();
root.style.setProperty('--main-medium-dark', '#1D9BF0');
root.style.setProperty('--main-bg', 'snow');
root.style.setProperty('--main-light', '#000000');

View File

Binary file not shown.

View File

Binary file not shown.