PageSourceSearch

https://content.p300.it/wp-content/themes/p300it/js/language_header_v2.js

js p300.it collected 2026-10-02 04:10:51 UTC 1,124 bytes, 28 lines download raw bytes

1  setTimeout(() => {
2    const lang = localStorage.getItem('userLanguage') || 'it';
3    const flags = {
4      it: ['icon-it.png.webp', 'Italiano'],
5      en: ['icon-gb.png.webp', 'Inglese'],
6      fr: ['icon-fr.png.webp', 'Francese'],
7      de: ['icon-de.png.webp', 'Tedesco'],
8      es: ['icon-es.png.webp', 'Spagnolo'],
9      pt: ['icon-pt.png.webp', 'Portoghese']
10    };
11
12    const [filename, langName] = flags[lang] || flags.en;
13    const text = `Stai visualizzando P300.it in ${langName}. Clicca per cambiare.`;
14
15    const img = document.createElement('img');
16    if (window.innerWidth < 676) {
17      img.style.cssText = 'float:right; cursor:pointer; border-bottom:none;padding: 0px 20px 0px 0px !important;';
18    } else {
19      img.style.cssText = 'float:right; cursor:pointer; border-bottom:none;padding: 12px 20px 0px 0px !important;';
20    }
21    img.src = 'https://content.p300.it/wp-content/uploads/2025/04/' + filename;
22    img.alt = text;
23    img.width = 32;
24    img.height = 32;
25    img.title = text;
26    img.onclick = () => p300openmenu();
27    document.getElementById('lang-flag').appendChild(img);
28  }, 300); 

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.