PageSourceSearch

https://www.mapcon.com/js/scroll-helper.js

js mapcon.com collected 2026-09-24 11:32:43 UTC 727 bytes, 26 lines download raw bytes

1// Scroll Helper for Blazor SPA
2// Ensures scroll position is reset on page navigation
3
4window.scrollHelper = {
5    // Scroll to top of page
6    scrollToTop: function() {
7        window.scrollTo({
8            top: 0,
9            left: 0,
10            behavior: 'instant' // Use 'instant' for immediate scroll, 'smooth' for animated
11        });
12    },
13    
14    // Get current scroll position
15    getScrollPosition: function() {
16        return {
17            x: window.scrollX || window.pageXOffset,
18            y: window.scrollY || window.pageYOffset
19        };
20    },
21    
22    // Check if page is scrolled
23    isScrolled: function() {
24        return (window.scrollY || window.pageYOffset) > 0;
25    }
26};

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.