mirror of
https://github.com/byReqz/glitch-landingpage2.git
synced 2024-11-22 05:41:16 +00:00
25 lines
477 B
JavaScript
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];
|
|
|
|
} |