glitch-landingpage2/title.js
2019-08-13 20:00:23 +02:00

25 lines
477 B
JavaScript

if(document.addEventListener){
document.addEventListener("DOMContentLoaded", function(){
loaded();
});
} else if(document.attachEvent){
document.attachEvent("onreadystatechange", function(){
loaded();
});
}
function loaded(){
setInterval(loop, 600);
}
var x = 0;
var titleText = [ "b", "by", "byR", "byRe", "byReq", "byReqz", "byReqz.d", "byReqz.de" ];
function loop(){
document.getElementsByTagName("title")[0].innerHTML = titleText[x++%titleText.length];
}