From fa7b9696b7c9fa89359cbb63e72f8e1cc9cc5fdc Mon Sep 17 00:00:00 2001 From: Stan Date: Wed, 3 Dec 2025 20:38:15 -0500 Subject: [PATCH] Ajout glitch partiel --- www/js/script.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/www/js/script.js b/www/js/script.js index ac4bf34..3dbc314 100644 --- a/www/js/script.js +++ b/www/js/script.js @@ -84,8 +84,23 @@ document.addEventListener("load", function(e) { }); */ + +function timerGlitch(){ + var timer = setInterval(function(){ + curSrc = document.getElementById('logoAccueil').getAttribute('src'); + if (curSrc == 'images/LogoALT-F4_Nav.svg') { + document.getElementById('logoAccueil').setAttribute('src', 'images/LogoAlt-F4_NavGlitch.svg') + } + else + { + document.getElementById('logoAccueil').setAttribute('src', 'images/LogoALT-F4_Nav.svg') + } + }, 1000); +} + window.onload = function () { - setTimeout(function () { + timerGlitch(); + setTimeout(function () { /* document.getElementById('message').innerHTML = 'The page has finished loading! After 2 second'; */ // Check if on the test domain and that the text changed, if so display Data.