PageSourceSearch

https://www.one27hop.com/script.js

js one27hop.com collected 2026-10-09 23:35:26 UTC 869 bytes, 31 lines download raw bytes

1// Smooth scroll for navigation
2document.querySelectorAll('a[href^="#"]').forEach(anchor => {
3  anchor.addEventListener('click', function (e) {
4    e.preventDefault();
5    const target = document.querySelector(this.getAttribute('href'));
6    if (target) {
7      target.scrollIntoView({ behavior: 'smooth' });
8    }
9  });
10});
11
12// FAQ open/close logging
13document.querySelectorAll('.faq details').forEach(detail => {
14  detail.addEventListener('toggle', () => {
15    if (detail.open) {
16      console.log(`Opened: ${detail.querySelector('summary').textContent}`);
17    }
18  });
19});
20
21//Faqs
22document.querySelectorAll('.faq details').forEach(detail => {
23  detail.addEventListener('toggle', () => {
24    const icon = detail.querySelector('summary i');
25    if (detail.open) {
26      icon.classList.add('rotated');
27    } else {
28      icon.classList.remove('rotated');
29    }
30  });
31});

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.