PageSourceSearch

https://f2h.io/js/counter.js

js f2h.io collected 2026-10-10 00:51:25 UTC 1,132 bytes, 39 lines download raw bytes

1$(function () {
2    function isScrolledIntoView($elem) {
3        var docViewTop = $(window).scrollTop();
4        var docViewBottom = docViewTop + $(window).height();
5        var elemTop = $elem.offset().top;
6        var elemBottom = elemTop + $elem.height();
7        return ((elemBottom <= docViewBottom) && (elemTop >= docViewTop));
8    }
9
10    function count($this) {
11        var current = parseInt($this.html(), 10);
12        if (isScrolledIntoView($this) && !$this.data("isCounting") && current < $this.data('count')) {
13            $this.html(++current);
14            $this.data("isCounting", true);
15            setTimeout(function () {
16                $this.data("isCounting", false);
17                count($this);
18            }, 50);
19        }
20    }
21
22    $(".count").each(function () {
23        $(this).data('count', parseInt($(this).html(), 10));
24        $(this).html('0');
25        $(this).data("isCounting", false);
26    });
27
28    function startCount() {
29        $(".count").each(function () {
30            count($(this));
31        });
32    };
33
34    $(window).scroll(function () {
35        startCount();
36    });
37
38    startCount();
39});

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.