Public Access
5
0

Add possibility for script in style!

This commit is contained in:
2025-11-24 22:45:23 -05:00
parent a8046dcf9d
commit 75bd86e968
2 changed files with 15 additions and 2 deletions

View File

@@ -22,7 +22,12 @@
background-color: yellow; background-color: yellow;
font-weight: bold; font-weight: bold;
color: black; color: black;
}
#updateDateW {
visibility: visible;
display: block;
font-weight: bold;
color: white;
} }
body { body {
min-height: 100vh; min-height: 100vh;

View File

@@ -2,7 +2,15 @@ window.onload = function () {
setTimeout(function () { setTimeout(function () {
/* document.getElementById('message').innerHTML = /* document.getElementById('message').innerHTML =
'The page has finished loading! After 2 second'; */ 'The page has finished loading! After 2 second'; */
document.getElementById("updateDate").setAttribute("id", "updateDateV"); // Check if on the test domain and that the text changed, if so display Data.
if (window.location.hostname === 's.zkd.ca' && document.getElementById("updateDate").innerHTML != 'DATE_WEBSITE' )
{
document.getElementById("updateDate").setAttribute("id", "updateDateV");
} else
{
document.getElementById("updateDate").setAttribute("id", "updateDateW");
document.getElementById("updateDateW").innerHTML = 'À la prochaine!';
}
}, 2000); }, 2000);
// TODO Add timer for glitch // TODO Add timer for glitch
// NOTE Track mouse mouvement and show after a percentage of ? // NOTE Track mouse mouvement and show after a percentage of ?