PageSourceSearch

https://echoes-tokyo.com/noindex/ajax.js

js echoes-tokyo.com collected 2026-10-08 11:32:41 UTC 1,929 bytes, 67 lines download raw bytes

1(function () {
2  'use strict';
3
4  function loadHTML(selector, url, label, cacheBust) {
5    const el = document.querySelector(selector);
6    if (!el) {
7      if (window.console && console.error) {
8        console.error('Element "' + selector + '" not found for ' + (label || url));
9      }
10      return;
11    }
12
13    var finalUrl = url;
14    if (cacheBust) {
15      finalUrl += (url.indexOf('?') === -1 ? '?' : '&') + 'v=' + (new Date().getTime());
16    }
17
18    var xhr = new XMLHttpRequest();
19    try {
20      xhr.open('GET', finalUrl, true);
21    } catch (e) {
22      if (window.console && console.error) {
23        console.error('Error opening ' + (label || url) + ':', e);
24      }
25      return;
26    }
27
28    xhr.onreadystatechange = function () {
29      if (xhr.readyState === 4) {
30        var ok = (xhr.status >= 200 && xhr.status < 300) ||
31                 xhr.status === 304 ||
32                 (xhr.status === 0 && xhr.responseText);
33
34        if (ok) {
35          el.innerHTML = xhr.responseText;
36        } else if (window.console && console.error) {
37          console.error('Error loading ' + (label || url) + ': ' + xhr.status + ' ' + xhr.statusText);
38        }
39      }
40    };
41
42    try {
43      xhr.send(null);
44    } catch (e) {
45      if (window.console && console.error) {
46        console.error('Error sending request for ' + (label || url) + ':', e);
47      }
48    }
49  }
50
51  function onReady(fn) {
52    if (document.readyState === 'complete' || document.readyState === 'interactive') {
53      fn();
54    } else if (document.addEventListener) {
55      document.addEventListener('DOMContentLoaded', fn, false);
56    } else {
57      document.attachEvent('onreadystatechange', function () {
58        if (document.readyState === 'complete') fn();
59      });
60    }
61  }
62
63  onReady(function () {
64    loadHTML('#panel', './noindex/panel.html.js', 'panel.html.js');
65    loadHTML('#block_big', './noindex/gameBig.html.js', 'gameBig.html.js');
66  });
67})();

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.