PageSourceSearch

https://booksrus.fr/local/templates/aspro_max/js/custom.js

js booksrus.fr collected 2026-09-30 02:37:35 UTC 1,354 bytes, 52 lines download raw bytes

1document.addEventListener("DOMContentLoaded", () => {
2  const latinInputFunc = () => {
3    const selectors = "" +
4      "#altProperty, " +
5      "#soa-property-1, " +
6      "#soa-property-7, " +
7      "#soa-property-21, " +
8      "#soa-property-5, " +
9      "#soa-property-20, " +
10      "#soa-property-8, " +
11      "#soa-property-9, " +
12      "#soa-property-12, " +
13      "#soa-property-23," +
14      "#soa-property-17, " +
15      "#soa-property-19, " +
16      "#input_NAME, " +
17      "[name=NAME], " +
18      "#bx-soa-region input.bx-ui-sls-fake";
19
20    const inputList = document.querySelectorAll(selectors);
21    inputList.forEach((input) => {
22      input.addEventListener("input", () => {
23        input.value = input.value.replace(/[А-Яа-я]/, '');
24      });
25    });
26  }
27
28  const onlyNumbersFunc = () => {
29    const inputList = document.querySelectorAll("input[type=tel]");
30    inputList.forEach((input) => {
31
32      input.oninput = () => {
33        input.value = input.value.replace(/[^0-9\+\-\(\)\s]/, '');
34      }
35    });
36  }
37
38  latinInputFunc();
39  onlyNumbersFunc();
40
41  const observerProp = new MutationObserver((mutationsList, observer) => {
42    latinInputFunc();
43    onlyNumbersFunc();
44  });
45
46  observerProp.observe(
47    document.querySelector("#bx-soa-properties"), {
48      attributes: true,
49      childList: true,
50      subtree: true,
51    });
52});

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.