PageSourceSearch

https://www.heritagechristianschools.org/pro/themes/_common/js/countup_ticker.js

js heritagechristianschools.org collected 2026-10-08 20:05:19 UTC 986 bytes, 21 lines download raw bytes

1const els = $('.counter-item');
2const util = UIkit.util;
3
4$.each(els, function(index,item){
5    const countMax = item.dataset.countupTarget || item.dataset.target || item.innerHTML;
6    // NOTE: absent data attributes intentionally fall back to legacy behavior - components that
7    // emit none (westbend, sutherland) must keep getting the hardcoded comma and integer ticks
8    const separator = item.dataset.countupSeparator !== undefined ? item.dataset.countupSeparator : ',';
9    const decimalPlaces = item.dataset.countupDecimals !== undefined ? (parseInt(item.dataset.countupDecimals, 10) || 0) : 0;
10    const stat = util.$(item);
11    var textIndex = 0;
12    UIkit.scrollspy(stat, {repeat: true, delay: 100});
13    util.on(stat,'inview', function (){
14        const numAnim = new countUp.CountUp(stat, countMax,{separator: separator, decimalPlaces: decimalPlaces});
15        numAnim.start();
16    });
17    util.on(stat, 'outview', function(){
18        stat.textContent = 0;
19    });
20});
21

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.