PageSourceSearch

http://www.ristorantelossidiana.it/js/main.js

js ristorantelossidiana.it collected 2026-10-05 23:16:07 UTC 7,266 bytes, 288 lines download raw bytes

1/*
2
3Template:  Resta resturant template
4Template URI: http://hastech.company/
5Description: This is html5 template
6Author: Hastech
7Author URI: http://hastech.company/
8Version: 1.0
9
10*/
11/*================================================
12[  Table of contents  ]
13================================================
14	01. jQuery MeanMenu
15	02. Searchbar active
16    03. stickey menu
17    04. Nivo slider activation
18    05. Isotope activation
19    0.6 MagnificPopup activation
20    08.  Counter Up
21    0.9 Accordion
22    10. slick carousel 
23    11. You tube video active
24    12. Parallax active
25    13. wow js active
26    14. scrollUp jquery active
27    15. Preloader
28======================================
29[ End table content ]
30======================================*/
31
32
33(function($) {
34    "use strict";
35
36   /*-------------------------------------------
37    	01. jQuery MeanMenu
38    --------------------------------------------- */
39    jQuery('nav#dropdown').meanmenu();
40	
41	/* ------------------
42       02. Searchbar active
43    ---------------- */
44	$('.search-inner a').on('click', function(){
45		$('.search-inside').fadeIn();
46	});
47	$('.search-close').on('click', function(){
48		$('.search-inside').fadeOut();
49	});	
50	
51    /*----------------------------
52       03. stickey menu
53    ----------------------------*/
54    $(window).on('scroll',function() {    
55	   var scroll = $(window).scrollTop();
56	   if (scroll < 265) {
57		$(".sticky-header").removeClass("sticky");
58	   }else{
59		$(".sticky-header").addClass("sticky");
60	   }
61	});
62    
63	/*----------------------
64		04. Nivo slider activation
65	----------------------*/
66	$('#mainSlider').nivoSlider({
67        directionNav: false,
68        animSpeed: 2000,
69        slices: 18,
70        pauseTime: 5000,
71        pauseOnHover: false,
72        controlNav: true,
73        manualAdvance: true,
74        prevText: '<i class="fa fa-chevron-left nivo-prev-icon"></i>',
75        nextText: '<i class="fa fa-chevron-right nivo-next-icon"></i>'
76    });
77
78	/*----------------------
79		05. Isotope activation
80	----------------------*/
81    $(window).on('load',function(){
82
83        // Activate isotope in container
84        $(".gallery-item-box").isotope({
85           itemSelector:'.gallery-item'
86        });
87
88        //add isotope click function
89        $('.gallery-menu li').on('click',function(){
90           $(".gallery-menu li").removeClass("active");
91           $(this).addClass("active");
92
93           var selector = $(this).attr("data-filter");
94         $(".gallery-item-box").isotope({
95             filter: selector,
96             animationOptions:{
97                 duration:750,
98                 easing:'linear',
99                 queue: false
100             }
101         });
102         return false;
103        });
104
105    });
106
107    /*---------------
108        0.6 MagnificPopup activation
109     -------------------*/
110    $('.single-item-gallery a,.member-overlay').magnificPopup({
111            type: 'image',
112            gallery:{enabled:true}
113    });	
114	
115    $('.single-gallery-img a').magnificPopup({
116            type: 'image',
117            gallery:{enabled:true},
118            zoom: {
119                 enabled: true,
120                 duration: 300,
121            }
122    });	
123	$('.blog-hover a, .viedo--play a,.widget-video-overlay a').magnificPopup({
124            disableOn: 0,
125            type: 'iframe',
126            mainClass: 'mfp-fade',
127            removalDelay: 160,
128            preloader: true,
129
130            fixedContentPos: false
131    });
132    
133    /*--------------------------
134      08.  Counter Up
135    ---------------------------- */	
136    $('.counter').counterUp({
137        delay: 70,
138        time: 5000
139    }); 
140    /*--------------------
141      0.9 Accordion
142    -------------------------*/
143    $(".widget-categories").collapse({
144		accordion:true,
145	  open: function() {
146		this.slideDown(550);
147	  },
148	  close: function() {
149		this.slideUp(550);
150	  }		
151	});	
152    $(".accordion-active").collapse({
153		accordion:true,
154	  open: function() {
155		this.slideDown(550);
156	  },
157	  close: function() {
158		this.slideUp(550);
159	  }		
160	});	
161    
162	/*-------------------------------------------
163    	10. slick carousel 
164    --------------------------------------------- */
165    $('.dises-list').slick({
166    	   arrows: false,
167		   slidesToShow: 1,
168		   dots: true,
169		   customPaging: function(slider, i) {
170                return '<a href="javascript:void(0)">' + (i + 1) + '</a>';
171            },
172		   responsive: [
173            {
174			  breakpoint: 350,
175			  settings: {
176				centerPadding: '20px',
177			  }
178			}
179		  ]
180  	});
181   $('.testimonial-text-slider').slick({
182        slidesToShow: 1,
183        arrows: false,
184        dots: true,
185        customPaging: function(slider, i) {
186            return '<a href="javascript:void(0)">' + (i + 1) + '</a>';
187        },
188        draggable: false,
189        fade: true,
190        asNavFor: '.testimonial-image-slider'
191    });
192    $('.testimonial-image-slider').slick({
193        slidesToShow: 3,
194        slidesToScroll: 1,
195        asNavFor: '.testimonial-text-slider',
196        dots: false,
197        arrows: false,
198        centerMode: true,
199        focusOnSelect: true,
200        centerPadding: '0',
201        responsive: [
202            
203            {
204              breakpoint: 767,
205              settings: {
206                autoplay: true,
207                dots: false,
208                slidesToShow: 2,
209                centerMode: false,
210                }
211            },
212            {
213              breakpoint: 480,
214              settings: {
215                autoplay: true,
216                dots: false,
217                slidesToShow: 1,
218                centerMode: false,
219                }
220            }
221        ]
222    });
223    
224    $('.team-list').slick({
225      arrows: false,
226      slidesToShow: 5,
227      slidesToScroll: 1,
228      responsive: [
229        {
230          breakpoint: 991,
231          settings: {
232            slidesToShow: 3,
233          }
234        },
235        {
236          breakpoint: 600,
237          settings: {
238            slidesToShow: 2,
239          }
240        },
241        {
242          breakpoint: 400,
243          settings: {
244            slidesToShow: 2,
245          }
246        }
247      ]
248    });
249    
250  /*--------------------
251       11. You tube video active
252    -------------------------*/
253    $(".youtube-bg").YTPlayer({
254        videoURL:"https://youtu.be/fJRhdDIJqs0",
255        containment:'.youtube-bg',
256        mute:true,
257        loop:true,
258        showControls: true
259        
260    });
261    
262    /*--------------------------
263		12. Parallax active
264	----------------------*/
265	$('.parallax').parallax("50%", 0.3);
266
267   /*------------------
268    	13. wow js active
269    ---------------- */
270    new WOW().init();
271   /*------------
272    	14. scrollUp jquery active
273    ------------- */
274    $.scrollUp({
275        scrollText: '<i class="fa fa-angle-up"></i>',
276        easingType: 'linear',
277        scrollSpeed: 900,
278        animation: 'fade'
279    });
280    /*---------
281	   15. Preloader
282	------------------------*/
283		$(window).on('load', function() {
284			$(".preloader").fadeOut("slow");;
285		});
286
287})(jQuery);
288

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.