Line 107: | Line 107: | ||
qsa("[data-typer]").forEach( | qsa("[data-typer]").forEach( | ||
function(e,i){setTimeout(function typeItt() { | function(e,i){setTimeout(function typeItt() { | ||
− | if ( | + | if (cht > e.dataset.typer.length)return; |
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++); |
Revision as of 19:38, 30 October 2017