PageSourceSearch

https://www.acmispa.it/wp-content/themes/acmi/static/js/cross.js?v…&h=9ac4cbf75ffc198090ccce1b0deaff20

js acmispa.it collected 2026-10-08 18:54:36 UTC 5,639 bytes, 218 lines download raw bytes

1// JavaScript Document
2$(window).load(function(){
3  //openSub
4  $(".openSub").on("click", function(){
5    $(this).toggleClass("sel");
6    $(this).next(".subMenu").toggleClass("opened");
7  });
8
9  $(".scrollAnchor").click(function() {
10    var thisSection = $(this).attr('href');
11    $('html, body').animate({
12      scrollTop: $(thisSection).offset().top
13    }, 800);
14  });
15
16  try{
17    $.scrollify({
18      section : ".fullHsection",
19      //sectionName : false,
20      //easing: "easeOutExpo",
21      scrollSpeed: 800,
22      //offset : 0,
23      scrollbars: false,
24      //interstitialSection: "footer",
25      standardScrollElements: ".scrollIn h3, .menuOverlay, .supertop, .menuOpened footer",
26      setHeights: false,
27      //overflowScroll: true,
28      updateHash: false,
29      //touchScroll:true
30    });
31  } catch(e) {};
32  distroyScrollify();
33
34  moveTitleSottopagina();
35
36
37});
38
39$(document).ready(function(){
40
41//Menu principale
42$(".menuTreeEl li").on("click",function(){
43  
44  if(!($(this).hasClass("secMenuAgg")) && !($(this).hasClass("newTree"))){
45    
46    var thisEl = $(this).attr("data-name");
47    $(this).parent().find(".sel").removeClass("sel");
48    $(this).closest(".menuTreeEl").next(".menuTreeEl").find(".sel").removeClass("sel");
49    $(this).addClass("sel");
50    $(".menuTreeEl").removeClass("activeTree").addClass("disableTree");
51    $(this).closest(".menuTreeEl").next(".menuTreeEl").toggleClass("activeTree disableTree");
52    $(this).closest(".menuTreeEl").next(".menuTreeEl").find("ul").removeClass("visible");
53    $(".menuTreeEl.menuTree3").find("ul").removeClass("visible");
54    $(".menuTreeEl ul[data-name='" + thisEl + "']").addClass("visible");
55  }
56  
57});
58$(".menuTreeEl .backBtn").on("click",function(){
59  $(".menuTreeEl").removeClass("activeTree").addClass("disableTree");
60  $(this).closest(".menuTreeEl").prev(".menuTreeEl").find(".sel").removeClass("sel");
61  $(this).closest(".menuTreeEl").prev(".menuTreeEl").toggleClass("activeTree disableTree");
62});
63//FINE Menu principale
64
65 openCloseFormMobile();
66
67$(".openMenu").on("click",function(){
68  $("html").addClass("menuOpened");
69});
70$(".closeMenu").on("click",function(){
71  $("html").removeClass("menuOpened");
72});
73$(".doCloseMenu").on("click",function(){
74  $("html").removeClass("menuOpened");
75});
76
77  //scroll orizzontale con mouse
78  $('.gallerySlider').mousewheel(function(e, delta) {
79      // multiplying by 40 is the sensitivity, 
80      // increase to scroll faster.
81      this.scrollLeft -= (delta * 40);
82      e.preventDefault();
83    });
84
85//file upload
86$(".formGroup.uploadFile span").on("click",function(){
87  $(this).next("input").click();
88});
89
90//slick
91$('.fullWSlider').slick({
92  infinite: true,
93  dots: true,
94  arrows:false,
95  autoplay: true,
96  autoplaySpeed: 3000,
97  fade: true,
98  cssEase: 'linear',
99  responsive: [
100  {
101    breakpoint: 768,
102    settings: {
103     fade:false,
104   }
105 }]
106});
107$('.sliderDotsArrow').slick({
108  infinite: true,
109  dots: true,
110  slidesToShow:1,
111  arrows:true,
112  autoplay: true,
113  autoplaySpeed: 3000,
114  fade: true,
115  cssEase: 'linear',
116  responsive: [
117  {
118    breakpoint: 768,
119    settings: {
120     fade:false,
121   }
122 }]
123});
124
125
126  $('.animateEl').scrolla({//animate scrolla
127    mobile: false,
128    once: true
129  });
130
131
132    //Layerpopup
133    $(".openLayerPop").on("click", function(){ 
134      var idEl =        $(this).attr("lpID");
135      $(".LayerPopOverlay").removeClass("hidden");
136      $(".LayerPopMsg."+idEl).fadeIn(300);
137      if( $(".LayerPopMsg."+idEl).hasClass("LayerPopMsgAutoHide") ){
138        setTimeout(closeLayerPop, 3000)
139      }
140    });
141    $(".closeBtn").on("click", function(){ 
142      closeLayerPop();
143    });
144    function closeLayerPop(){
145      $(".LayerPopOverlay").addClass("hidden");
146      $(".LayerPopMsg").fadeOut(300);
147    };
148    $(document).mouseup(function(e) {
149      var container = $(".LayerPopMsg");
150      if (!container.is(e.target) && container.has(e.target).length === 0) 
151      {
152       closeLayerPop();
153     }
154   });
155  //FINE Layerpopup
156
157});
158
159
160
161function moveTitleSottopagina(){
162  if ($(window).width() <= 768) {
163    $(".fullHsection .textArea h2").each(function() {
164      var thisParentArea = $(this).parent().next(".asMenu");
165      $( this ).prependTo(thisParentArea);
166    });
167  }
168  else{
169    $(".fullHsection .textArea h2").each(function() {
170      var thisRestore = $(this).parent().prev(".mainText");
171      $( this ).prependTo(thisRestore);
172    });
173  }
174}
175
176function distroyScrollify(){
177  if ($(window).width() <= 768) {
178    try{
179      $.scrollify.disable();
180    }  catch(e) {};
181  } 
182};
183
184//window resize
185$(window).resize(function() {
186  if(this.resizeTO) clearTimeout(this.resizeTO);
187  this.resizeTO = setTimeout(function() {
188    $(this).trigger('resizeEnd');
189  }, 500);
190});
191$(window).bind('resizeEnd', function() {
192  distroyScrollify();
193  moveTitleSottopagina();
194  openCloseFormMobile();
195});
196
197//form mobile
198function openCloseFormMobile(){
199  if ($(window).width() <= 1024) {
200    $(".supertop .supertopTool form").not(".mobileTopFormOpened .supertopTool form").on("click",function(){
201      $("html").addClass("mobileTopFormOpened")
202    });
203  }
204  else{
205     $("html").removeClass("mobileTopFormOpened")
206  };
207  function closeFormMobile(){
208   $("html").removeClass("mobileTopFormOpened")
209 }
210 $(document).mouseup(function(e) {
211  var container = $(".supertop .supertopTool form");
212  if (!container.is(e.target) && container.has(e.target).length === 0) 
213  {
214   closeFormMobile();
215 }
216});
217}
218//FINE form mobile

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.