PageSourceSearch

https://promasters.store/wp-content/themes/gadgethub/assets/js/theme-skin.js?ver=1.0.6

js promasters.store collected 2026-10-10 00:19:42 UTC 1,127 bytes, 42 lines download raw bytes

1/**
2 * Theme Skin Js
3 */
4
5(function () {
6
7
8    // Bottom To Top Scroll.
9    function gadgethub_to_top_scroll() {
10
11        const toTopBtn = document.querySelector(".op-scroll-to-top");
12        let scrollPos = document.documentElement.scrollTop;
13        const progressColor = "var(--wp--preset--color--primary)";
14
15        let scrollHeight = document.documentElement.scrollHeight;
16        let clientHeight = document.documentElement.clientHeight;
17
18        let scrollCalc = scrollHeight - clientHeight;
19
20        let scrollValue = Math.round((scrollPos * 100) / scrollCalc);
21
22        if (scrollPos > 300) {
23            toTopBtn.classList.add("show-to-top-btn");
24        } else {
25            toTopBtn.classList.remove("show-to-top-btn");
26        }
27
28        toTopBtn.addEventListener("click", () => {
29            document.documentElement.scrollTop = 0;
30        });
31
32        toTopBtn.style.background = `conic-gradient(${progressColor} ${scrollValue}%, transparent ${scrollValue}%)`;
33
34
35    }
36
37    window.addEventListener('scroll', function () {
38        gadgethub_to_top_scroll()
39    });
40
41
42})();

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.