nictemplate/templates/assets/js/404.js
Nathan Woodburn 18b18bc2a2
Some checks failed
Build Docker / Build Image (push) Failing after 14s
feat: Add dynamic TLD using python
2023-10-30 15:37:51 +11:00

21 lines
595 B
JavaScript

function type(n, t) {
var str = document.getElementsByTagName("code")[n].innerHTML.toString();
var i = 0;
document.getElementsByTagName("code")[n].innerHTML = "";
setTimeout(function() {
var se = setInterval(function() {
i++;
document.getElementsByTagName("code")[n].innerHTML =
str.slice(0, i) + "|";
if (i == str.length) {
clearInterval(se);
document.getElementsByTagName("code")[n].innerHTML = str;
}
}, 10);
}, t);
}
type(0, 0);
type(1, 600);
type(2, 1300);