Line 113: | Line 113: | ||
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);setTimeout(function(){e.removeAttribute("data-typer");cht=0},qsa("[data-typer]")[1].dataset.delay- | + | },e.dataset.delay);(qsa("[data-typer]")[1].dataset.delay>0?setTimeout(function(){e.removeAttribute("data-typer");cht=0},qsa("[data-typer]")[1].dataset.delay-10):""); |
}); | }); | ||
</script> | </script> |
Revision as of 19:43, 30 October 2017