PageSourceSearch

https://ea2cw.eus/contador.js

js ea2cw.eus collected 2026-10-06 13:14:59 UTC 927 bytes, 24 lines download raw bytes

1(() => {
2    document.addEventListener("DOMContentLoaded", async () => {
3        try {
4            // Preferiblemente debería ser la URL absoluta
5            // Ejemplo: http://localhost/contador_visitas_php_avanzado/contador/registrar_visita.php
6            // const url = "./contador/registrar_visita.php";
7            const url = "https://www.ea2cw.eus/contador/registrar_visita.php";
8            const payload = {
9                pagina: document.title,
10                url: window.location.href,
11            };
12            const respuestaRaw = await fetch(url, {
13                method: "POST",
14                body: JSON.stringify(payload),
15            });
16            const respuesta = await respuestaRaw.json();
17            if (!respuesta) {
18                console.log("Error registrando visita");
19            }
20        } catch (e) {
21            console.log("Error registrando visita: " + e);
22        }
23    });
24})();

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.