add mono mode
All checks were successful
/ ls (pull_request) Successful in 1m42s
/ ls (push) Successful in 1m38s
/ ls (release) Successful in 1m5s

This commit is contained in:
lubiana 2025-07-14 19:08:17 +02:00
parent feeb4aca61
commit a8db69786a
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk
3 changed files with 14 additions and 1 deletions

View file

@ -1,6 +1,11 @@
// Sparkle effect on mouse move
document.addEventListener('mousemove', function (e) {
const emojis = ['✨', '💖', '🌟', '💅', '🦄', '🎉', '🌈'];
let emojis = ['✨', '💖', '🌟', '💅', '🦄', '🎉', '🌈'];
const htmlElement = document.documentElement;
if (htmlElement.getAttribute('data-website-mode') === 'mono') {
emojis = ['🦇', '🦹', '🌙', '⚰️', '🕯️'];
}
const sparkle = document.createElement('div');
sparkle.className = 'emoji-footprint';
sparkle.textContent = emojis[Math.floor(Math.random() * emojis.length)];