PageSourceSearch

https://www.adventura.in/assets/themes/adventura/js/main.js

js adventura.in collected 2026-10-03 18:46:28 UTC 3,081 bytes, 142 lines download raw bytes

1/*--------------------------------------------------------------
2 Custom js
3 --------------------------------------------------------------*/
4jQuery(document).ready(function ($) {
5  'use strict';
6
7  //setup parallax
8  $.stellar({
9    horizontalScrolling: false,
10    scrollProperty: 'scroll',
11    positionProperty: 'position'
12  });
13
14  $('.gallery,.single-featured').magnificPopup({
15    delegate: 'a', // child items selector, by clicking on it popup will open
16    type: 'image',
17    removalDelay: 300,
18    mainClass: 'mfp-fade',
19    gallery:{
20      enabled:true
21    }
22  });
23
24  $('.popup-youtube, .popup-vimeo, .popup-gmaps').magnificPopup({
25    disableOn: 700,
26    type: 'iframe',
27    mainClass: 'mfp-fade',
28    removalDelay: 160,
29    preloader: false,
30    fixedContentPos: false
31  });
32
33  //owl carousel
34  $(".wpb_row .client").owlCarousel(
35    {
36      nav:true,
37      dots: false,
38      loop:true,
39      autoplay:true,
40      autoplayHoverPause:true,
41      autoplayTimeout: 3000,
42      autoHeight: true,
43      margin: 20,
44      responsive:{
45        0:{
46          items:2
47        },
48        768:{
49          items:3
50        },
51        1024:{
52          items:6
53        }
54      }
55    }
56  );
57  $(".single-project .gallery").owlCarousel(
58    {
59      nav:false,
60      dots: false,
61      loop:true,
62      autoplay:true,
63      autoplayHoverPause:true,
64      autoplayTimeout: 3000,
65      margin: 20,
66      responsive:{
67        0:{
68          items:2
69        },
70        768:{
71          items:3
72        },
73        1024:{
74          items:6
75        }
76      }
77    }
78  );
79
80  $(".wpb_row .testimonials-list").owlCarousel(
81    {
82      items : 1,
83      navigation: false,
84      loop:true,
85      autoplay:true,
86      autoplayHoverPause:true,
87      autoHeight: true
88    }
89  );
90
91  //menu setup
92  var $menu = $('.navigation'),
93      $menulink = $('.menu-link');
94
95  $menulink.click(function() {
96    $menulink.toggleClass('active');
97    $menu.toggleClass('active');
98    return false;
99  })
100
101  $('.navigation').find('.sub-menu-toggle').on('click', function(e){
102    var subMenu = $(this).parent().find('ul').first();
103    var thisLi = $(this).parent();
104    if ( subMenu.css('display') != 'block' ) {
105      subMenu.css('display','block');
106      thisLi.addClass('is-open');
107    } else {
108      subMenu.css('display','none');
109      thisLi.removeClass('is-open');
110    }
111    e.stopPropagation();
112  });
113
114  // mini-cart
115  var $mini_cart = $('.mini-cart');
116  $mini_cart.on('click', function(e) {
117    $(this).addClass('open');
118  });
119
120  $(document).on('click', function(e){
121    if($(e.target).closest($mini_cart).length == 0) {
122      $mini_cart.removeClass('open');
123    }
124  });
125
126  // search in menu
127  var $search_btn = $('.search-box > i'),
128      $search_form = $('form.search-form');
129
130  $search_btn.on('click', function () {
131    $search_form.toggleClass('open');
132  });
133
134  $(document).on('click', function(e){
135    if($(e.target).closest($search_btn).length == 0
136      && $(e.target).closest('input.search-field').length == 0
137      && $search_form.hasClass('open')) {
138      $search_form.removeClass('open');
139    }
140  });
141
142});

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.