PageSourceSearch

https://www.delta-singapore.com/js/products_fix_hash_scroll.js

js delta-singapore.com collected 2026-09-29 09:37:05 UTC 680 bytes, 25 lines download raw bytes

1window.addEventListener('DOMContentLoaded', () => {
2  let hash = window.location.hash.split('#')[1]
3  if (hash) {
4    var start = null;
5    var element = document.getElementById(hash);
6    if (!element){
7      hash = hash.charAt(0).toUpperCase() + hash.slice(1)
8    }
9    if (element) {
10      function step(timestamp) {
11        if (!start) start = timestamp;
12        var progress = timestamp - start;
13        window.scrollTo(0, 0);
14        if (progress < 2000) {
15          window.requestAnimationFrame(step);
16        } else {
17          element.scrollIntoView({
18            behavior: "instant"
19          });
20        }
21      }
22      window.requestAnimationFrame(step);
23    }
24  }
25});

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.