PageSourceSearch

https://www.moncoyote.com/js/shortcuts.js

js moncoyote.com collected 2026-09-24 10:26:49 UTC 1,774 bytes, 48 lines download raw bytes

1/**
2 * Listener
3 */
4if (window.addEventListener) {
5    let VKeys = [], vroum = "66,65,66,69,76"; // BABEL
6    window.addEventListener("keydown", function(e) {
7        VKeys.push(e.keyCode);
8        if (VKeys.toString().indexOf(vroum) >= 0) {
9            ajaxTranslation();
10            VKeys = [];
11        }
12    }, true);
13}
14
15function ajaxTranslation() {
16    const xhr = new XMLHttpRequest();
17    xhr.open('GET', document.location.origin + '/tracking/index/display-tracking', true);
18    xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
19    xhr.onload = function() {
20        if (xhr.status >= 200 && xhr.status < 400) {
21            // Supprime l'ancien bloc de traduction s'il existe
22            const oldBlock = document.querySelector('.trackingTranslateBlock');
23            if (oldBlock) {
24                oldBlock.remove();
25            }
26            // Ajoute le contenu reçu
27            const body = document.querySelector('body');
28            body.insertAdjacentHTML('beforeend', xhr.responseText);
29
30            console.log('Ajout des scripts');
31            const newScript = document.createElement('script');
32            newScript.src = '/js/jquery.dataTables.min.js';
33            document.body.appendChild(newScript);
34
35            const newScript2 = document.createElement('script');
36            newScript2.src = '/js/jquery.dataTables.min.js';
37            document.body.appendChild(newScript2);
38
39            const newScript3 = document.createElement('script');
40            newScript3.src = '/js/babel.js';
41            document.body.appendChild(newScript3);
42        }
43    };
44    xhr.onerror = function() {
45        console.error('Erreur lors de la requête Ajax pour les traductions');
46    };
47    xhr.send();
48}

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.