PageSourceSearch

https://www.ajktours.com/wp-content/themes/ajktours/assets/js/script.js?ver=1

js ajktours.com collected 2026-10-02 19:30:24 UTC 5,843 bytes, 221 lines download raw bytes

1jQuery(function($) {
2    'use strict';
3
4    // Preloader
5    $(window).on('load', function(e) {
6        $('#loading')
7        .delay(400)
8        .queue(function() {
9            $(this).remove();
10        });
11    });
12
13    // Mean Menu
14    $('.mean-menu').meanmenu({
15        meanScreenWidth: '1199',
16    });
17    $('#navigation-main .menu-item a').addClass('nav-link');
18    if($('#navigation-main .menu-item').hasClass('current-menu-item')){
19        $('#navigation-main .current-menu-item > a').addClass('active'); 
20    }
21
22    // Sticky Nav
23    $(window).on('scroll', function() {
24        $(window).scrollTop() >= 200 ?
25        $('.main-navbar-area').addClass('stickyadd') :
26        $('.main-navbar-area').removeClass('stickyadd');
27    });
28
29    // Language Popup
30    $('#languageButton').on('click', function(e) {
31        $('.language > .menu').toggle();
32        e.preventDefault();
33    });
34
35    // Destination Filter
36    $('#control li').on('click', function () {
37        $(this).addClass('active').siblings().removeClass('active');
38    });
39
40    // Popup Gallery
41    $('.gallery, .detail-content').magnificPopup({
42        delegate: 'a',
43        type: 'image',
44        gallery: {
45          enabled:true
46        }
47    });
48    
49
50    // Popup Video
51    $('.youtube-popup').magnificPopup({
52        disableOn: 320,
53		type: 'iframe',
54		mainClass: 'mfp-fade',
55		removalDelay: 160,
56		preloader: false,
57		fixedContentPos: false
58    });
59
60    // Search Popup
61    $('#searchButton').magnificPopup({
62        removalDelay: 500,
63        callbacks: {
64            beforeOpen: function() {
65            this.st.mainClass = this.st.el.attr('data-effect');
66            }
67        },
68        midClick: true
69    });
70
71    // Home Slider
72    $('.banner-slider').owlCarousel({
73        loop: true,
74        margin: 0,
75        items: 1,
76        dots: false,
77        dotsContainer: '#owl-custom-dots',
78        nav: true,
79        navText: [
80            "<i class='bx bxs-chevron-left'></i>",
81            "<i class='bx bxs-chevron-right'></i>"
82        ],
83        autoplay: true,
84        autoplayHoverPause: true,
85        autoplayTimeout: 8500,
86        smartSpeed: 450,
87    });
88    var bannerSlider = $('.banner-slider');
89    $('.owl-dot').click(function () {
90        bannerSlider.trigger('to.owl.carousel', [$(this).index(), 300]);
91    });
92
93    // Home Slider Two
94    $('.banner-slider-two').owlCarousel({
95        loop: true,
96        margin: 0,
97        items: 1,
98        dots: false,
99        nav: true,
100        navText: [
101            "<i class='bx bxs-chevron-left'></i>",
102            "<i class='bx bxs-chevron-right'></i>"
103        ],
104        autoplay: true,
105        autoplayHoverPause: true,
106        autoplayTimeout: 8500,
107        smartSpeed: 1000
108    });
109
110    // Home Slider Three
111    $('.banner-slider-three').owlCarousel({
112        loop: true,
113        margin: 0,
114        items: 1,
115        dots: false,
116        nav: true,
117        navText: [
118            "<i class='bx bxs-chevron-left'></i>",
119            "<i class='bx bxs-chevron-right'></i>"
120        ],
121        autoplay: true,
122        autoplayHoverPause: true,
123        autoplayTimeout: 8500,
124        smartSpeed: 1000
125    });
126
127    // Testimonial Slider
128    $('.testimonial-slider').owlCarousel({
129        loop: true,
130        nav: true,
131        navText: [
132            "<i class='bx bx-left-arrow-alt'></i>",
133            "<i class='bx bx-right-arrow-alt'></i>"
134        ],
135        dots: false,
136        autoplay: true,
137        autoplayHoverPause: true,
138        autoplayTimeout: 8500,
139        smartSpeed: 450,
140        items: 1
141    })
142
143    // Tour Slider
144    $('.tours-slider').owlCarousel({
145        loop: true,
146        margin: 20,
147        nav: true,
148        navText: [
149            "<i class='bx bxs-chevron-left'></i>",
150            "<i class='bx bxs-chevron-right'></i>"
151        ],
152        dots: false,
153        autoplay: true,
154        autoplayHoverPause: true,
155        autoplayTimeout: 8500,
156        smartSpeed: 450,
157        responsiveClass: true,
158        responsive: {
159            0: {
160                items: 1,
161                margin: 10
162            },
163
164            768: {
165                items: 2,
166            },
167
168            991: {
169                items: 3,
170            },
171        }
172    })
173
174    // Back To Top
175    $('body').append("<div class='go-top'><i class='bx bx-up-arrow-alt'></i></div>");
176    $(window).on('scroll', function() {
177        var scrolled = $(window).scrollTop();
178        if (scrolled > 600) $('.go-top').addClass('active');
179        if (scrolled < 600) $('.go-top').removeClass('active');
180    });
181    $('.go-top').on('click', function() {
182        $('html, body').animate({
183            scrollTop: '0',
184        }, 500 );
185    });
186
187    // Count Time 
188    function makeTimer() {
189        var endTime = new Date('September 20, 2021 17:00:00 PDT');
190        var endTime = (Date.parse(endTime)) / 1000;
191        var now = new Date();
192        var now = (Date.parse(now) / 1000);
193        var timeLeft = endTime - now;
194        var days = Math.floor(timeLeft / 86400);
195        var hours = Math.floor((timeLeft - (days * 86400)) / 3600);
196        var minutes = Math.floor((timeLeft - (days * 86400) - (hours * 3600)) / 60);
197        var seconds = Math.floor((timeLeft - (days * 86400) - (hours * 3600) - (minutes * 60)));
198        if (hours < '10') {
199            hours = '0' + hours;
200        }
201        if (minutes < '10') {
202            minutes = '0' + minutes;
203        }
204        if (seconds < '10') {
205            seconds = '0' + seconds;
206        }
207        $('#days').html(days + '<span>Days</span>');
208        $('#hours').html(hours + '<span>Hours</span>');
209        $('#minutes').html(minutes + '<span>Minutes</span>');
210        $('#seconds').html(seconds + '<span>Seconds</span>');
211    }
212    setInterval(function() {
213        makeTimer();
214    }, 0);
215
216    // The Filterizr
217    // $('.filtr-container').filterizr();
218
219    
220
221}(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.