PageSourceSearch

https://andrulspy.com/common/js/script_counter.js

js andrulspy.com collected 2026-10-05 01:23:05 UTC 468 bytes, 15 lines download raw bytes

1let valueDisplays = document.querySelectorAll(".num");
2let interval = 4000;
3
4valueDisplays.forEach((valueDisplay) => {
5  let startValue = 0;
6  let endValue = parseInt(valueDisplay.getAttribute("data-val"));
7  let duration = Math.floor(interval / endValue);
8  let counter = setInterval(function () {
9    startValue += 1;
10    valueDisplay.textContent = startValue;
11    if (startValue == endValue) {
12      clearInterval(counter);
13    }
14  }, duration);
15});

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.