PageSourceSearch

https://difesa.it/assets/js/notizia.js

js difesa.it collected 2026-10-02 02:25:19 UTC 4,452 bytes, 74 lines download raw bytes

1$(document).ready(function () {
2    var currentUrl = window.location.href.toLowerCase();
3    
4    if ((currentUrl.includes("/smd") || currentUrl.includes("/operazionimilitari")) && !currentUrl.includes("/smd/index.html")) {
5        var newDiv = `
6        <div class="row mt-5 marginBottom20">
7            <div class="col-lg">
8            <a href="/smd/index.html"><img class="dimensionLogoSMD" alt="Logo SMD" src="/assets/img/mdd/smd/Logo_SMD.png"></a>
9            </div>
10  
11            <div class="col-lg d-flex justify-content-between text-center my-5 my-lg-0">
12                <a href="https://www.esercito.difesa.it/" target="_blank"><img height="70" src="/assets/img/mdd/hp/esercito_logo_smd.png" title="Esercito" alt="Esercito"></a>
13                <a href="https://www.marina.difesa.it/Pagine/default.aspx" target="_blank"><img height="70" src="/assets/img/mdd/hp/marina_logo_smd.png" title=" Marina" alt=" Marina"></a>
14                <a href="https://www.aeronautica.difesa.it/" target="_blank"><img height="70" src="/assets/img/mdd/hp/aeronautica_logo_smd.png" title="Aeronautica" alt="Aeronautica"></a>
15                <a href="https://www.carabinieri.it/" target="_blank"><img height="70" src="/assets/img/mdd/hp/carabinieri_logo_smd.png" title="Carabinieri" alt="Carabinieri"></a>
16            </div>
17  
18            <div class="col-lg d-flex marginSocialSMD nopaddingMobileRight50 flex-sm-row-reverse mt-sm-2" style="flex-direction: row-reverse !important;">
19                <a class="backgroundSocialIconSMD" title="LinkedIn" href="https://www.linkedin.com/company/stato-maggiore-difesa/"
20                    aria-label="LinkedIn" target="_blank">
21                    <svg class="icon icon-white icon-xs icon25 noMarginLeft">
22                        <use href="/assets/bootstrap-italia/dist/svg/sprites.svg#it-linkedin"></use>
23                    </svg>
24                </a>
25                <a class="backgroundSocialIconSMD" title="Twitter" target="_blank" href="https://twitter.com/sm_difesa"
26                    aria-label="Twitter">
27                    <img alt="Logo X" src="/assets/img/icon_x_white.png" height="20">
28                </a>
29                <a class="backgroundSocialIconSMD" title="Facebook" href="https://www.facebook.com/StatoMaggioreDifesaOfficial/"
30                    aria-label="Facebook" target="_blank">
31                    <svg class="icon icon-white icon-xs icon25 noMarginLeft">
32                        <use href="/assets/bootstrap-italia/dist/svg/sprites.svg#it-facebook"></use>
33                    </svg>
34                </a>
35            
36            <a class="backgroundSocialIconSMD" title="Instagram" href="https://www.instagram.com/stato_maggiore_difesa"
37                aria-label="Facebook" target="_blank">
38                <svg class="icon icon-white icon-xs icon25 noMarginLeft">
39                    <use href="/assets/bootstrap-italia/dist/svg/sprites.svg#it-instagram"></use>
40                </svg>
41            </a>
42            </div>
43        </div>`;
44        
45        // Aggiunta del nuovo div sopra al template della notizia
46        $("#seotags").before(newDiv);
47    }
48
49    if ((currentUrl.includes("/fra/") || currentUrl.includes("/eng/"))) {
50        //Aggiornamento Form Ricerca per pagine elenco
51        if (currentUrl.includes("/fra/")) {
52            $("#spanSearchTitle").html("ENTREZ LES PARAM&Eacute;TRES DE RECHERCHE"); 
53            $("#lblSearchByTitle").text("Recherche par titre");
54            $("#lblSearchByYear").html("Ann&eacute;e");
55            $("#lblSearchByMonth").text("Mois");
56            $("#btnsearchinpage").text("Recherche");
57            $('select[id=cbsearchmonth] > option:first-child').text('Choisissez le mois');
58            $('select[id=cbsearchyear] > option:first-child').html("Choisissez l&#39;ann&eacute;e");
59            $('#edsearchinpage').attr("placeholder", "Titre");
60        }
61
62        if (currentUrl.includes("/eng/")) {
63            $("#spanSearchTitle").html("ENTER THE SEARCH PARAMETERS");
64            $("#lblSearchByTitle").text("Search by title");
65            $("#lblSearchByYear").html("Year");
66            $("#lblSearchByMonth").text("Month");
67            $("#btnsearchinpage").text("Search");
68            $('select[id=cbsearchmonth] > option:first-child').text('Choose month');
69            $('select[id=cbsearchyear] > option:first-child').html("Choose Year");
70            $('#edsearchinpage').attr("placeholder", "Title");
71        }
72    }
73  });
74

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.