PageSourceSearch

https://kalamint.io/js/custom.js

js kalamint.io collected 2026-10-01 13:03:48 UTC 11,234 bytes, 353 lines download raw bytes

1;(function($){
2    "use strict"
3    var nav_offset_top = $('.header_area').height()+50; 
4    /*-------------------------------------------------------------------------------
5	  Navbar 
6	-------------------------------------------------------------------------------*/
7
8	//* Navbar Fixed  
9    function navbarFixed(){
10        if ( $('.header_area').length ){ 
11            $(window).scroll(function() {
12                var scroll = $(window).scrollTop();   
13                if (scroll >= nav_offset_top ) {
14                    $(".header_area").addClass("navbar_fixed");
15                } else {
16                    $(".header_area").removeClass("navbar_fixed");
17                }
18            });
19        };
20    };
21    navbarFixed();
22
23    document.addEventListener('DOMContentLoaded', function () {
24        const isMobile = () => window.innerWidth < 992;
25
26        document.querySelectorAll('.navbar .dropdown').forEach(function (dropdown) {
27            const menu = dropdown.querySelector('.dropdown-menu');
28            const arrow = dropdown.querySelector('.dropdown-toggle-arrow');
29
30            dropdown.addEventListener('mouseenter', function () {
31                if (!isMobile()) {
32                    dropdown.classList.add('show');
33                    menu.classList.add('show');
34                }
35            });
36
37            dropdown.addEventListener('mouseleave', function () {
38                if (!isMobile()) {
39                    dropdown.classList.remove('show');
40                    menu.classList.remove('show');
41                }
42            });
43
44            if (arrow) {
45                arrow.addEventListener('click', function (e) {
46                    e.stopPropagation();
47                    e.preventDefault();
48                    dropdown.classList.toggle('show');
49                    menu.classList.toggle('show');
50                });
51            }
52        });
53
54        document.addEventListener('click', function (e) {
55            document.querySelectorAll('.navbar .dropdown').forEach(function (dropdown) {
56                if (!dropdown.contains(e.target)) {
57                    dropdown.classList.remove('show');
58                    const menu = dropdown.querySelector('.dropdown-menu');
59                    if (menu) menu.classList.remove('show');
60                }
61            });
62        });
63    });
64    
65    function testimonialSlider(){
66        if ( $('.testimonial_slider').length ){
67            $('.testimonial_slider').owlCarousel({
68                loop:true,
69                margin: 30,
70                items: 2,
71                nav:false,
72                autoplay: true,
73                dots: true,
74                smartSpeed: 1500,
75                responsiveClass: true,
76                responsive: {
77                    0: {
78                        items: 1,
79                    },
80                    768: {
81                        items: 2,
82                    },
83                }
84            })
85        }
86    }
87    testimonialSlider();
88    
89    //------- Mailchimp js --------//  
90
91    function mailChimp(){
92        $('#mc_embed_signup').find('form').ajaxChimp();
93    }
94    mailChimp();
95    
96    /* ===== Parallax Effect===== */
97	
98	function parallaxEffect() {
99    	$('.bg-parallax').parallax();
100	}
101	parallaxEffect();
102    
103    
104    $('select').niceSelect();
105    $('#datetimepicker11,#datetimepicker1').datetimepicker({
106        daysOfWeekDisabled: [0, 6]
107    });
108    
109     /*---------gallery isotope js-----------*/
110    function galleryMasonry(){
111        if ( $('#gallery').length ){
112            $('#gallery').imagesLoaded( function() {
113              // images have loaded
114                // Activate isotope in container
115                $("#gallery").isotope({
116                    itemSelector: ".gallery_item",
117                    layoutMode: 'masonry',
118                    animationOptions: {
119                        duration: 750,
120                        easing: 'linear'
121                    }
122                });
123            })
124        }
125    }
126    galleryMasonry();
127	
128	/*----------------------------------------------------*/
129    /*  Simple LightBox js
130    /*----------------------------------------------------*/
131    $('.imageGallery1 .light').simpleLightbox();
132    
133    /*----------------------------------------------------*/
134    /*  Google map js
135    /*----------------------------------------------------*/
136    
137    if ( $('#mapBox').length ){
138        var $lat = $('#mapBox').data('lat');
139        var $lon = $('#mapBox').data('lon');
140        var $zoom = $('#mapBox').data('zoom');
141        var $marker = $('#mapBox').data('marker');
142        var $info = $('#mapBox').data('info');
143        var $markerLat = $('#mapBox').data('mlat');
144        var $markerLon = $('#mapBox').data('mlon');
145        var map = new GMaps({
146        el: '#mapBox',
147        lat: $lat,
148        lng: $lon,
149        scrollwheel: false,
150        scaleControl: true,
151        streetViewControl: false,
152        panControl: true,
153        disableDoubleClickZoom: true,
154        mapTypeControl: false,
155        zoom: $zoom,
156            styles: [
157                {
158                    "featureType": "water",
159                    "elementType": "geometry.fill",
160                    "stylers": [
161                        {
162                            "color": "#dcdfe6"
163                        }
164                    ]
165                },
166                {
167                    "featureType": "transit",
168                    "stylers": [
169                        {
170                            "color": "#808080"
171                        },
172                        {
173                            "visibility": "off"
174                        }
175                    ]
176                },
177                {
178                    "featureType": "road.highway",
179                    "elementType": "geometry.stroke",
180                    "stylers": [
181                        {
182                            "visibility": "on"
183                        },
184                        {
185                            "color": "#dcdfe6"
186                        }
187                    ]
188                },
189                {
190                    "featureType": "road.highway",
191                    "elementType": "geometry.fill",
192                    "stylers": [
193                        {
194                            "color": "#ffffff"
195                        }
196                    ]
197                },
198                {
199                    "featureType": "road.local",
200                    "elementType": "geometry.fill",
201                    "stylers": [
202                        {
203                            "visibility": "on"
204                        },
205                        {
206                            "color": "#ffffff"
207                        },
208                        {
209                            "weight": 1.8
210                        }
211                    ]
212                },
213                {
214                    "featureType": "road.local",
215                    "elementType": "geometry.stroke",
216                    "stylers": [
217                        {
218                            "color": "#d7d7d7"
219                        }
220                    ]
221                },
222                {
223                    "featureType": "poi",
224                    "elementType": "geometry.fill",
225                    "stylers": [
226                        {
227                            "visibility": "on"
228                        },
229                        {
230                            "color": "#ebebeb"
231                        }
232                    ]
233                },
234                {
235                    "featureType": "administrative",
236                    "elementType": "geometry",
237                    "stylers": [
238                        {
239                            "color": "#a7a7a7"
240                        }
241                    ]
242                },
243                {
244                    "featureType": "road.arterial",
245                    "elementType": "geometry.fill",
246                    "stylers": [
247                        {
248                            "color": "#ffffff"
249                        }
250                    ]
251                },
252                {
253                    "featureType": "road.arterial",
254                    "elementType": "geometry.fill",
255                    "stylers": [
256                        {
257                            "color": "#ffffff"
258                        }
259                    ]
260                },
261                {
262                    "featureType": "landscape",
263                    "elementType": "geometry.fill",
264                    "stylers": [
265                        {
266                            "visibility": "on"
267                        },
268                        {
269                            "color": "#efefef"
270                        }
271                    ]
272                },
273                {
274                    "featureType": "road",
275                    "elementType": "labels.text.fill",
276                    "stylers": [
277                        {
278                            "color": "#696969"
279                        }
280                    ]
281                },
282                {
283                    "featureType": "administrative",
284                    "elementType": "labels.text.fill",
285                    "stylers": [
286                        {
287                            "visibility": "on"
288                        },
289                        {
290                            "color": "#737373"
291                        }
292                    ]
293                },
294                {
295                    "featureType": "poi",
296                    "elementType": "labels.icon",
297                    "stylers": [
298                        {
299                            "visibility": "off"
300                        }
301                    ]
302                },
303                {
304                    "featureType": "poi",
305                    "elementType": "labels",
306                    "stylers": [
307                        {
308                            "visibility": "off"
309                        }
310                    ]
311                },
312                {
313                    "featureType": "road.arterial",
314                    "elementType": "geometry.stroke",
315                    "stylers": [
316                        {
317                            "color": "#d6d6d6"
318                        }
319                    ]
320                },
321                {
322                    "featureType": "road",
323                    "elementType": "labels.icon",
324                    "stylers": [
325                        {
326                            "visibility": "off"
327                        }
328                    ]
329                },
330                {},
331                {
332                    "featureType": "poi",
333                    "elementType": "geometry.fill",
334                    "stylers": [
335                        {
336                            "color": "#dadada"
337                        }
338                    ]
339                }
340            ]
341        });
342    }
343
344     $(document).on('click', 'a[href^="#"]', function (e) {
345    var id = $(this).attr('href');
346    var $id = $(id);
347    var padding = 110;
348    e.preventDefault();
349    var pos = $id.offset().top - padding;
350    $('body, html').scrollTop(pos);
351    });
352
353})(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.