PageSourceSearch

https://www.inail.it/etc.clientlibs/alma-inail-hub-foundation/clie…-8946685df3d9ae693acdcb2801dd7d37-lc.min.js

js inail.it collected 2026-09-24 08:29:52 UTC 4,050 bytes, 109 lines download raw bytes

1$(document).ready(function () {
2
3    // rimuove il tag section intorno al componente situato all'interno di un accordion
4    //$(".cmp-accordion__item").find("section").contents().unwrap();
5
6    /* rimuove il tag section intorno al componente ( esempio: text o accordion ) quando è situato all'interno di una section
7    di conseguenza rimuoviamo anche il container-fluid quando ne abbiamo già uno esterno */
8    $("section").find("section").contents().unwrap();
9    $(".container-fluid").find(".container-fluid").contents().unwrap();
10
11    // rimuoviamo i p vuoti e aggiungiamo la classe ai p con testo per i p (rich text) nell'accordion
12    // document.querySelectorAll("p:empty:not([class*='note'])").forEach((x)=>{x.remove()});
13    $("p:empty").not("[class*='note']").remove();
14    $(".cmp-accordion").find("p").addClass("text-20");
15
16
17    // aggiunta classe sui p nel componente text in pagine di dettaglio
18    $(".text").find("p").addClass("text-20");
19    $(".pageDetail").find("p").addClass("text-20");
20    $(".pageDetail").find("div.text").addClass("text-20");
21
22    // rimozione classe sui p nel carousel in pagine di dettaglio
23    $(".pageDetail").find(".splide").find("p:not(.galleryText)").removeClass("text-20");
24
25    //$("div.row").find("div.cmp-container").contents().unwrap();
26    //rimuove il div del container di AEM dalle col di bootstrap
27    $("div.row").find('[class^="col-"]').find("div.cmp-container").contents().unwrap();
28
29    //romozione text-20 aggiornamento e condivisione pagine dettaglio
30    $("#aggiornamentoCondivisione").find("p").removeClass("text-20");
31    // controlliamo se un tag (in questo caso la section con id alert-secondario) è vuoto
32    // se vuoto elimniamo la section
33    function isEmpty( el ){
34        return !$.trim(el.html())
35    }
36    if (isEmpty($('#alert-secondario'))) {
37        $("#alert-secondario").remove();
38    }
39
40
41    // Validazione solo numeri per date con input text
42    $('.date').keypress(function (e) {    
43        var charCode = (e.which) ? e.which : event.keyCode    
44        if (String.fromCharCode(charCode).match(/[^0-9/\s-]/g))    
45            return false;                        
46    }); 
47
48
49    
50    // let elements = document.querySelectorAll('[href*="/dettaglio-regione."]')
51    let elements = $("[href*='/dettaglio-regione.']").toArray();
52    elements.forEach(element => {
53        let href = element.href;
54        let hrefSplit = decodeURI(href.split('dettaglio-regione.')[1])
55        element.href =href.split('dettaglio-regione.')[0]+ 'dettaglio-regione.' + hrefSplit ;
56        element.removeAttribute('class');
57        element.removeAttribute('target');
58    });
59});
60$(document).ready(function(){
61    $("#tab-vertical-4").children().children().children().removeAttr("tabindex")
62    $("#tab-vertical-4").children().eq(2).children().removeAttr("tabindex")
63})
64
65
66
67//Gestione tooltip stampa
68$(document).ready(function(){
69
70	
71    const tooltip = $("#tooltipStampa");
72
73    tooltip.on('mouseover', function() {
74        $('#popupStampa').removeClass("hide--alert");
75        $('#popupStampa').addClass("show--alert");
76    });
77
78    tooltip.on('mouseout', function() {
79        $('#popupStampa').removeClass("show--alert")
80        $('#popupStampa').addClass("hide--alert");
81    });
82
83    tooltip.on('focus', function() {
84        $('#popupStampa').removeClass("hide--alert");
85        $('#popupStampa').addClass("show--alert");
86    });
87
88    tooltip.on('blur', function() {
89        $('#popupStampa').removeClass("show--alert")
90        $('#popupStampa').addClass("hide--alert");
91    });
92
93    $(document).on('keydown', function(e) {
94        if (e.keyCode === 27) {
95            $('#popupStampa').removeClass("show--alert")
96            $('#popupStampa').addClass("hide--alert");
97        }
98    });
99})
100$(document).ready(function(){
101    const currentPath = window.location.pathname;
102    const lastPath = sessionStorage.getItem("lastPath");
103
104    if (lastPath && lastPath !== currentPath) {
105        sessionStorage.removeItem("searched");
106    }
107
108    sessionStorage.setItem("lastPath", currentPath);
109})

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.