PageSourceSearch

https://arviks.ru/local/templates/aspro_max/js/hash_location.js

js arviks.ru collected 2026-10-05 04:02:11 UTC 995 bytes, 28 lines download raw bytes

1
2if ("onhashchange" in window) {
3    $(window).bind("hashchange", function () {
4        const hash = location.hash;
5        if (hash == "#delayed") {
6            if ($("#basket_toolbar_button_delayed").length) $("#basket_toolbar_button_delayed").trigger("click");
7            } else {
8            if ($("#basket_toolbar_button").length) $("#basket_toolbar_button").trigger("click");
9            }
10      
11        if (hash) {
12            if ("scrollRestoration" in history) {
13                history.scrollRestoration = "manual";
14            }
15        const dataHash = $('[data-hash]');
16        if (dataHash.length) {
17            const tab = dataHash.find('.tabs');
18            const tabHref = tab.find('.nav a[href="' + hash + '"]');
19            if (tabHref.length) {
20                tabHref.trigger("click");
21                const content_offset = tab.offset();
22                $("html, body").animate({ scrollTop: content_offset.top - 90 }, 400);
23            }
24        } 
25        }
26    });
27}
28  

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.