PageSourceSearch

https://best-bet-bonus.info/assets/js/main.js

js best-bet-bonus.info collected 2026-10-04 21:13:25 UTC 1,127 bytes, 27 lines download raw bytes

1document.addEventListener('DOMContentLoaded', function () {
2  const now = new Date();
3  const monthYear = now.toLocaleString('en-US', { month: 'long', year: 'numeric' });
4  const monthOnly = now.toLocaleString('en-US', { month: 'long' });
5  const yearOnly = now.getFullYear();
6
7  document.querySelectorAll('[data-month-year]').forEach(el => el.textContent = monthYear);
8  document.querySelectorAll('[data-month]').forEach(el => el.textContent = monthOnly);
9  document.querySelectorAll('[data-year]').forEach(el => el.textContent = yearOnly);
10
11  const toggle = document.querySelector('.mobile-toggle');
12  const nav = document.querySelector('.nav');
13  if (toggle && nav) {
14    toggle.addEventListener('click', () => nav.classList.toggle('nav-open'));
15  }
16
17  document.querySelectorAll('.code-copy').forEach(btn => {
18    btn.addEventListener('click', () => {
19      const code = btn.getAttribute('data-code');
20      navigator.clipboard.writeText(code).then(() => {
21        const original = btn.textContent;
22        btn.textContent = 'Copied!';
23        setTimeout(() => btn.textContent = original, 1500);
24      });
25    });
26  });
27});

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.