PageSourceSearch

https://terrazasabatini.com/wp-content/themes/caverta/js/init.js

js terrazasabatini.com collected 2026-09-26 07:18:41 UTC 2,377 bytes, 123 lines download raw bytes

1/*
2 * Author: matchthemes.com
3 *
4 */
5 
6(function($) {
7    "use strict";
8	
9	 $(window).on('load', function(){
10	
11	// home slider
12	$('.home-slider, .testimonial-slider').owlCarousel({
13    items:1,
14    loop:true,
15	autoplay:true,
16	autoplayTimeout:3000,
17	animateOut: 'fadeOut',
18	margin: -1
19});
20
21}); //end window load
22	
23	
24//mobile menu
25$('.nav-button').on('click', function(e){
26	
27	e.preventDefault();
28	
29    $('.mobile-menu-holder, .menu-mask').addClass('is-active');
30	$('body').addClass('has-active-menu');
31
32});
33
34$('.exit-mobile, .menu-mask').on('click', function(e){
35	
36	e.preventDefault();
37
38    $('.mobile-menu-holder, .menu-mask').removeClass('is-active');
39	$('body').removeClass('has-active-menu');
40
41});
42
43$('.menu-mobile > li.menu-item-has-children > a').on('click', function(e){
44			
45			e.preventDefault();
46			e.stopPropagation();
47			
48			if ( $(this).parent().hasClass('menu-open') )
49			
50			$(this).parent().removeClass('menu-open');
51			
52			else {
53			
54			$(this).parent().addClass('menu-open');
55			
56			}
57																  
58			});
59	
60	// end mobile menu
61
62// menu edge screen turn left
63
64$(".menu-nav li").on('mouseenter mouseleave', function (e) {
65        if ($('ul', this).length) {
66            var elm = $('.sub-menu', this);
67            var off = elm.offset();
68            var l = off.left;
69            var w = elm.width();
70            var docW = $(window).width();
71
72            var isEntirelyVisible = (l + w <= docW);
73
74            if (!isEntirelyVisible) {
75                $(this).addClass('edge');
76            } else {
77                $(this).removeClass('edge');
78            }
79        }
80    });	
81	
82
83//gallery
84   
85  $('.gallery-post a').magnificPopup({
86  type: 'image',
87  gallery:{
88    enabled:true
89  }
90});	
91	
92// faq
93
94$('h4.faq-title').on('click',function(){
95
96  if( $(this).next().is(':hidden') ) {
97
98$(this).toggleClass('active').next().slideDown();
99  } else {
100   $(this).removeClass('active').next().slideUp();
101 }
102  return false; 
103 });	
104	
105 //scroll up button
106 
107  $(".scrollup").hide();
108     $(window).on('scroll', function() {
109         if ($(this).scrollTop() > 400) {
110             $('.scrollup').fadeIn();
111         } else {
112             $('.scrollup').fadeOut();
113         }
114     });
115
116$("a.scrolltop[href^='#']").on('click', function(e) {
117   e.preventDefault();
118   var hash = this.hash;
119   $('html, body').stop().animate({scrollTop:0}, 1000, 'easeOutExpo');
120
121});
122  
123})(jQuery);

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.