Merge pull request #26 from olinpin/youri

Add chicken sounds
This commit is contained in:
2022-11-03 14:48:20 +01:00
committed by GitHub
3 changed files with 5 additions and 0 deletions

View File

@@ -51,6 +51,9 @@ let root = document.querySelector(":root")
$(".logo").on("click", function() { $(".logo").on("click", function() {
if (root.style.getPropertyValue("--main-bg") === 'snow') { 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-medium-dark', '#1E1E1E');
root.style.setProperty('--main-bg', '#292929'); root.style.setProperty('--main-bg', '#292929');
root.style.setProperty('--main-light', ' #ffffff' ); root.style.setProperty('--main-light', ' #ffffff' );
@@ -58,6 +61,8 @@ $(".logo").on("click", function() {
root.style.setProperty('--tweet-color', '#000000') root.style.setProperty('--tweet-color', '#000000')
root.style.setProperty('--column-color', '#1E1E1E') root.style.setProperty('--column-color', '#1E1E1E')
} else { } else {
var audio = new Audio("../media/Rooster.mp3");
audio.play();
root.style.setProperty('--main-medium-dark', '#1D9BF0'); root.style.setProperty('--main-medium-dark', '#1D9BF0');
root.style.setProperty('--main-bg', 'snow'); root.style.setProperty('--main-bg', 'snow');
root.style.setProperty('--main-light', '#000000'); root.style.setProperty('--main-light', '#000000');

View File

Binary file not shown.

View File

Binary file not shown.