expend the omori easter egg

This commit is contained in:
Ashley //// 2024-02-02 13:11:55 +00:00
parent b4124450f4
commit 9bce398dd6

View file

@ -288,6 +288,16 @@ border:solid;
transform: scale(1, 1); transform: scale(1, 1);
} }
.something-background-a {
background-image: url('<%- media_proxy_url %>/proxy?url=https://static.wikia.nocookie.net/omori/images/f/fc/Something_Bed_(2018_Demo).gif') !important;
}
.something-background-b {
background-image: url('<%- media_proxy_url %>/proxy?url=https://static.wikia.nocookie.net/omori/images/1/14/Hangman_%28Laptop%29.png') !important;
}
.something-background-c {
background-image: url('<%- media_proxy_url %>/proxy?url=https://static.wikia.nocookie.net/omori/images/6/67/Nanci_Before.png') !important;
}
.loading .spinner { .loading .spinner {
display: inline-block; display: inline-block;
border: 5px solid rgba(255, 255, 255, 0.2); border: 5px solid rgba(255, 255, 255, 0.2);
@ -629,9 +639,53 @@ font-weight: 1000;
caches.delete(cacheName); caches.delete(cacheName);
}); });
}); });
} }
}
document.addEventListener("DOMContentLoaded", function() {
if (localStorage.getItem('liar.')) {
var thumbnails = document.querySelectorAll('.thumbnail');
function changeFavicon(newFaviconUrl) {
var oldFavicon = document.querySelector('link[rel="icon"]');
if (oldFavicon) {
oldFavicon.remove();
}
var link = document.createElement('link');
link.rel = 'icon';
link.href = newFaviconUrl;
document.head.appendChild(link);
}
changeFavicon("<%- media_proxy_url %>/proxy?url=https://static.wikia.nocookie.net/omori/images/d/d8/Something_Float_%282018_Demo%29.gif")
var textList = [
"sunny... i love you",
"SUNNY... I'm... sorry..."
];
// Select four different text elements
var textElements = document.querySelectorAll('.title');
textElements.forEach(function(element, index) {
element.textContent = textList[index % textList.length]; // Use modulo to cycle through textList
});
var backgroundClasses = ['something-background-a', 'something-background-b', 'something-background-c'];
// Loop through each thumbnail element and assign a random background image class
thumbnails.forEach(function(thumbnail) {
var randomIndex = Math.floor(Math.random() * backgroundClasses.length);
thumbnail.classList.add(backgroundClasses[randomIndex]);
});
document.title = "sunny..im..sorry"
var audio = new Audio('https://p.poketube.fun/https://cdn.glitch.global/d68d17bb-f2c0-4bc3-993f-50902734f652/Lost_at_Sea.ogg?v=1706879048533');
audio.loop = true;
audio.autoplay = true;
}
});
}
// @license-end // @license-end
</script> </script>