PageSourceSearch

https://www.easyputz.de/bundles/easyputzbasic/js/utilties/cursor.js?v=d3157768

js easyputz.de collected 2026-10-07 03:51:45 UTC 1,117 bytes, 37 lines download raw bytes

1function initCursor() {
2    const cursor = document.querySelector(".cursor__overlay");
3    const interactiveItems = document.querySelectorAll(".cursor__interact");
4    document.querySelector('#top').classList.add('cursor__initialized');
5
6    let attached = false;
7
8    const trackCursor = function(e) {
9        window.requestAnimationFrame(() => {
10            cursor.style.top = `${e.clientY - 20}px`;
11            cursor.style.left = `${e.clientX - 20}px`;
12        });
13    }
14
15    const hideCursor = function() {
16        cursor.style.display = 'none';
17    }
18    const showCursor = function() {
19        cursor.style.display = 'block';
20    }
21
22    document.addEventListener("mouseenter", showCursor);
23    document.addEventListener("mousemove", trackCursor);
24    document.addEventListener("mouseleave", hideCursor);
25
26    interactiveItems.forEach((el) => {
27        el.addEventListener("mouseover", function () {
28            cursor.style.transform = "scale(1.4)";
29        });
30
31        el.addEventListener("mouseleave", function () {
32            cursor.style.transform = "scale(0.3)";
33        });
34    });
35}
36
37load(initCursor);

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.