PageSourceSearch

https://www.sellerapp.com/blog/wp-content/themes/genz/assets/js/vendors/text-type.js?ver=1.1.3

js sellerapp.com collected 2026-09-24 08:34:04 UTC 1,652 bytes, 50 lines download raw bytes

1// Text write
2var TxtType = function (el, toRotate, period) {
3    this.toRotate = toRotate;
4    this.el = el;
5    this.loopNum = 0;
6    this.period = parseInt(period, 10) || 2000;
7    this.txt = "";
8    this.tick();
9    this.isDeleting = !1;
10};
11TxtType.prototype.tick = function () {
12    var i = this.loopNum % this.toRotate.length;
13    var fullTxt = this.toRotate[i];
14    if (this.isDeleting) {
15        this.txt = fullTxt.substring(0, this.txt.length - 1);
16    } else {
17        this.txt = fullTxt.substring(0, this.txt.length + 1);
18    }
19    this.el.innerHTML = '<span class="wrap">' + this.txt + "</span>";
20    var that = this;
21    var delta = 200 - Math.random() * 100;
22    if (this.isDeleting) {
23        delta /= 2;
24    }
25    if (!this.isDeleting && this.txt === fullTxt) {
26        delta = this.period;
27        this.isDeleting = !0;
28    } else if (this.isDeleting && this.txt === "") {
29        this.isDeleting = !1;
30        this.loopNum++;
31        delta = 500;
32    }
33    setTimeout(function () {
34        that.tick();
35    }, delta);
36};
37window.onload = function () {
38    var elements = document.getElementsByClassName("typewrite");
39    for (var i = 0; i < elements.length; i++) {
40        var toRotate = elements[i].getAttribute("data-type");
41        var period = elements[i].getAttribute("data-period");
42        if (toRotate) {
43            new TxtType(elements[i], JSON.parse(toRotate), period);
44        }
45    }
46    var css = document.createElement("style");
47    css.type = "text/css";
48    css.innerHTML = ".typewrite > .wrap { border-right: 0.08em solid #fff}";
49    document.body.appendChild(css);
50};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.