Line 132: | Line 132: | ||
}); | }); | ||
var ch=0; | var ch=0; | ||
− | |||
function typeIt() { | function typeIt() { | ||
− | console.log("here"); | + | console.log("here"); |
− | + | if (ch > qs("[data-later]").dataset.later.length) return; | |
− | + | if (qs("[data-later]").dataset.later[ch] != "<") | |
− | + | qs("[data-later]").innerHTML = qs("[data-later]").dataset.later.substring(0, ch++); | |
− | + | else qs("[data-later]").innerHTML = qs("[data-later]").dataset.later.substring(0, ch += 3); | |
− | + | setTimeout(typeIt, ~~ (Math.random() * (pauseMax - pauseMin + 1) + pauseMin)); | |
− | }},1000);},(178+71)*65 + (2 * 1500)); | + | } |
+ | setTimeout(function() { | ||
+ | qs("#Header").style.opacity = "1"; | ||
+ | qs("div.JC").style.cssText += 'background-color:#FFF !important'; | ||
+ | qsa(".JC #content-container>div h1, .JC #content-container>div b").forEach(function(e) { | ||
+ | e.style.color = "#FFF" | ||
+ | }); | ||
+ | setTimeout(function() { | ||
+ | qsa(".JC #content-container>div h1, .JC #content-container>div b").forEach(function(e) { | ||
+ | e.style.display = "none" | ||
+ | }); | ||
+ | qs("[data-later]").style.cssText = "display:inline!important;color:#eee;"; | ||
+ | |||
+ | typeIt(); | ||
+ | }, 1000); | ||
+ | }, (178 + 71) * 65 + (2 * 1500)); | ||
},500); | },500); | ||
</script> | </script> |
Revision as of 21:59, 31 October 2017