18 lines
1010 B
JavaScript
18 lines
1010 B
JavaScript
window.onload = function () {
|
|
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.
|
|
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 ?
|
|
// NOTE une page sur deux, ...
|
|
}; |