PageSourceSearch

https://namescan.io/js/helpers/progress.js

js namescan.io collected 2026-10-02 11:46:23 UTC 1,261 bytes, 38 lines download raw bytes

1class progress {
2  static reference = 0;
3  static show(data) {
4    if ($(".divProgress").length == 0) {
5      this.reference = 1;
6      let divP = document.createElement('div');
7      divP.className = "divProgress";
8      let divCnt = document.createElement('div');
9      divCnt.className = "divProgressContent";
10      divP.appendChild(divCnt);
11
12      if (data && data.message) {
13        let divTxt = document.createElement('div');
14        divTxt.className = "divProgressMessage";
15        divTxt.innerHTML = data.message;
16        divCnt.appendChild(divTxt);
17      }
18      if (data && data.containerId) {
19        $(divCnt).css('margin-top', ($(`#${data.containerId}`).height() / 2 - 50) + 'px');
20        $(`#${data.containerId}`).prepend(divP);
21      }
22      else {
23        if ($('#slider')) {
24          $(divP).height($('#slider').outerHeight() + $('#content').outerHeight());
25          $(divP).offset({ top: -1 * $('#slider').outerHeight(), left: 0 });
26        }
27        $(divCnt).css('margin-top', (window.scrollY + $(window).height() / 2 - 200) + 'px');
28        $('.content-wrap').prepend(divP);
29      }
30    }
31    else
32      ++this.reference;
33  }
34  static hide() {
35    if (--this.reference <= 0)
36      $('.divProgress[data-manual!="manual"]').remove();
37  }
38}

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.