Add files via upload

This commit is contained in:
Zane V
2025-09-24 15:46:35 -04:00
committed by GitHub
parent 72453d0eab
commit 8c2b3119f0
3 changed files with 66 additions and 7 deletions

View File

@@ -91,6 +91,9 @@ document.addEventListener('DOMContentLoaded', function() {
// Add keyboard interactions
addKeyboardInteractions();
// Start automatic glitch mode: initial after 0.1s, then 1s every 20s
startAutoGlitch();
});
// Show specific content section
@@ -606,6 +609,30 @@ function activateBrandEasterEgg() {
showNotification('⚡ Glitch Mode Activated!');
}
// Auto Glitch Mode
function triggerGlitch(durationMs = 1000) {
const brandName = document.querySelector('.brand-name');
if (!brandName) return;
const originalText = brandName.textContent;
const glitchTexts = ['Z4n3D3v', 'Z@n3D3v', 'ZaneDev', 'ZANE_DEV', 'zanedev'];
let glitchIndex = 0;
const glitchInterval = setInterval(() => {
brandName.textContent = glitchTexts[glitchIndex];
glitchIndex = (glitchIndex + 1) % glitchTexts.length;
}, 100);
setTimeout(() => {
clearInterval(glitchInterval);
brandName.textContent = originalText;
}, durationMs);
}
function startAutoGlitch() {
// Initial trigger after 0.1s
setTimeout(() => triggerGlitch(1000), 100);
// Repeat every 20s
setInterval(() => triggerGlitch(1000), 20000);
}
// Sound Effects
function addSoundEffects() {
const buttons = document.querySelectorAll('.nav-button');