Add possibility for script in style!
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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 ?
|
||||||
|
|||||||
Reference in New Issue
Block a user