PageSourceSearch

https://itszhen.com/site.js

js itszhen.com collected 2026-10-03 23:19:03 UTC 885 bytes, 19 lines download raw bytes

1(() => {
2  const links = [...document.querySelectorAll('.nav-links a')];
3  if ('IntersectionObserver' in window) {
4    const observer = new IntersectionObserver(entries => {
5      for (const entry of entries) if (entry.isIntersecting) {
6        links.forEach(link => {
7          if (link.hash === '#' + entry.target.id) link.setAttribute('aria-current', 'location');
8          else link.removeAttribute('aria-current');
9        });
10      }
11    }, {rootMargin: '-15% 0px -65% 0px'});
12    document.querySelectorAll('main > section[id]').forEach(section => observer.observe(section));
13  }
14  if (['127.0.0.1', 'localhost', '[::1]'].includes(location.hostname)) {
15    fetch('api/session').then(response => {
16      if (response.ok && response.headers.get('content-type')?.includes('application/json')) document.getElementById('manage-link').hidden = false;
17    }).catch(() => {});
18  }
19})();

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.