diff --git a/www/css/style.css b/www/css/style.css index abc6a59..b49f81a 100644 --- a/www/css/style.css +++ b/www/css/style.css @@ -22,7 +22,12 @@ background-color: yellow; font-weight: bold; color: black; - +} +#updateDateW { + visibility: visible; + display: block; + font-weight: bold; + color: white; } body { min-height: 100vh; diff --git a/www/js/script.js b/www/js/script.js index eecc092..331c6c7 100644 --- a/www/js/script.js +++ b/www/js/script.js @@ -2,7 +2,15 @@ window.onload = function () { setTimeout(function () { /* document.getElementById('message').innerHTML = '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); // TODO Add timer for glitch // NOTE Track mouse mouvement and show after a percentage of ?