Line 51: | Line 51: | ||
width:0; | width:0; | ||
animation:none; | animation:none; | ||
+ | -webkit-animation:none; | ||
} | } | ||
@keyframes caretPulsate { | @keyframes caretPulsate { | ||
Line 112: | Line 113: | ||
function(e,i){setTimeout(function typeItt() { | function(e,i){setTimeout(function typeItt() { | ||
console.log(e); | console.log(e); | ||
− | if (cht > e.dataset.typer.length)return; | + | if (cht > e.dataset.typer.length)if(i!=1)return;else{setTimeout(function(){qs("#Header").opacity = "1"},1000); |
if(e.dataset.typer[cht]!="<") | if(e.dataset.typer[cht]!="<") | ||
e.innerHTML = e.dataset.typer.substring(0, cht++); | e.innerHTML = e.dataset.typer.substring(0, cht++); | ||
else e.innerHTML=e.dataset.typer.substring(0, cht+=3); | else e.innerHTML=e.dataset.typer.substring(0, cht+=3); | ||
setTimeout(typeItt, ~~(Math.random() * (pauseMax - pauseMin + 1) + pauseMin)); | setTimeout(typeItt, ~~(Math.random() * (pauseMax - pauseMin + 1) + pauseMin)); | ||
− | },e.dataset.delay);if(qsa("[data-typer]") | + | },e.dataset.delay);if(qsa("[data-typer]").length >= i+1)setTimeout(function(){e.removeAttribute("data-typer");cht=0},qsa("[data-typer]")[i+1].dataset.delay-10); |
+ | |||
}); | }); | ||
</script> | </script> |
Revision as of 19:57, 30 October 2017