PageSourceSearch

https://www.laserhairremovaldelhi.com/assets/js/main.js

js laserhairremovaldelhi.com collected 2026-09-26 18:40:44 UTC 6,696 bytes, 193 lines download raw bytes

1/**
2 * Template Name: BizLand - v1.1.1
3 * Template URL: https://bootstrapmade.com/bizland-bootstrap-business-template/
4 * Author: BootstrapMade.com
5 * License: https://bootstrapmade.com/license/
6 */
7!(function($) {
8    "use strict";
9
10    // Smooth scroll for the navigation menu and links with .scrollto classes
11    var scrolltoOffset = $('#header').outerHeight() - 21;
12    if (window.matchMedia("(max-width: 991px)").matches) {
13        scrolltoOffset += 20;
14    }
15    $(document).on('click', '.nav-menu a, .mobile-nav a, .scrollto', function(e) {
16        if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
17            var target = $(this.hash);
18            if (target.length) {
19                e.preventDefault();
20
21                var scrollto = target.offset().top - scrolltoOffset;
22
23                if ($(this).attr("href") == '#header') {
24                    scrollto = 0;
25                }
26
27                $('html, body').animate({
28                    scrollTop: scrollto
29                }, 1500, 'easeInOutExpo');
30
31                if ($(this).parents('.nav-menu, .mobile-nav').length) {
32                    $('.nav-menu .active, .mobile-nav .active').removeClass('active');
33                    $(this).closest('li').addClass('active');
34                }
35
36                if ($('body').hasClass('mobile-nav-active')) {
37                    $('body').removeClass('mobile-nav-active');
38                    $('.mobile-nav-toggle i').toggleClass('fa-bars fa-times');
39                    $('.mobile-nav-overly').fadeOut();
40                }
41                return false;
42            }
43        }
44    });
45
46    // Activate smooth scroll on page load with hash links in the url
47    $(document).ready(function() {
48        if (window.location.hash) {
49            var initial_nav = window.location.hash;
50            if ($(initial_nav).length) {
51                var scrollto = $(initial_nav).offset().top - scrolltoOffset;
52                $('html, body').animate({
53                    scrollTop: scrollto
54                }, 1500, 'easeInOutExpo');
55            }
56        }
57
58
59//  $("body" ).each(function() {
60//     alert();
61//   // $(".modal" ).on( "click", function() {
62//   //   alert("hi");
63//   //    $('iframe').attr('src', $('iframe').attr('src'));
64//   // });
65// });
66
67    });
68
69$('body').on("click" , function() {
70     $('.modal-pop iframe').attr('src', $('.modal-pop iframe').attr('src'));
71});
72
73 
74 $( ".modal-backdrop" ).on( "click", function() {
75event.stopPropagation();
76});
77    
78
79
80
81    // Navigation active state on scroll
82    var nav_sections = $('section');
83    var main_nav = $('.nav-menu, .mobile-nav');
84
85    $(window).on('scroll', function() {
86        var cur_pos = $(this).scrollTop() + 200;
87
88        nav_sections.each(function() {
89            var top = $(this).offset().top,
90                bottom = top + $(this).outerHeight();
91
92            if (cur_pos >= top && cur_pos <= bottom) {
93                if (cur_pos <= bottom) {
94                    main_nav.find('li').removeClass('active');
95                }
96                main_nav.find('a[href="#' + $(this).attr('id') + '"]').parent('li').addClass('active');
97            }
98            if (cur_pos < 300) {
99                $(".nav-menu ul:first li:first, .mobile-menu ul:first li:first").addClass('active');
100            }
101        });
102    });
103
104    // Mobile Navigation
105    if ($('.nav-menu').length) {
106        var $mobile_nav = $('.nav-menu').clone().prop({
107            class: 'mobile-nav d-lg-none'
108        });
109        $('body').append($mobile_nav);
110        $('body').prepend('<button type="button" class="mobile-nav-toggle d-lg-none"><i class="fa-bars"></i></button>');
111        $('body').append('<div class="mobile-nav-overly"></div>');
112
113        $(document).on('click', '.mobile-nav-toggle', function(e) {
114            $('body').toggleClass('mobile-nav-active');
115            $('.mobile-nav-toggle i').toggleClass('fa-bars fa-times');
116            $('.mobile-nav-overly').toggle();
117        });
118
119        $(document).on('click', '.mobile-nav .drop-down > a', function(e) {
120            e.preventDefault();
121            $(this).next().slideToggle(300);
122            $(this).parent().toggleClass('active');
123        });
124
125        $(document).click(function(e) {
126            var container = $(".mobile-nav, .mobile-nav-toggle");
127            if (!container.is(e.target) && container.has(e.target).length === 0) {
128                if ($('body').hasClass('mobile-nav-active')) {
129                    $('body').removeClass('mobile-nav-active');
130                    $('.mobile-nav-toggle i').toggleClass('fa-bars fa-times');
131                    $('.mobile-nav-overly').fadeOut();
132                }
133            }
134        });
135    } else if ($(".mobile-nav, .mobile-nav-toggle").length) {
136        $(".mobile-nav, .mobile-nav-toggle").hide();
137    }
138
139    // Toggle .header-scrolled class to #header when page is scrolled
140    $(window).scroll(function() {
141        if ($(this).scrollTop() > 100) {
142            $('#header').addClass('header-scrolled');
143            $('.topbar').addClass('topbar-scrolled');
144        } else {
145            $('#header').removeClass('header-scrolled');
146            $('.topbar').removeClass('topbar-scrolled');
147        }
148    });
149
150    if ($(window).scrollTop() > 100) {
151        $('#header').addClass('header-scrolled');
152        $('.topbar').addClass('topbar-scrolled');
153    }
154
155    // Back to top button
156    $(window).scroll(function() {
157        if ($(this).scrollTop() >= 500) { // If page is scrolled more than 50px
158            $('#return-to-top').fadeIn(200); // Fade in the arrow
159        } else {
160            $('#return-to-top').fadeOut(200); // Else fade out the arrow
161        }
162    });
163    $('#return-to-top').click(function() { // When arrow is clicked
164        $('body,html').animate({
165            scrollTop: 0 // Scroll to top of body
166        }, 500);
167    });
168
169    // Start of Galley script
170    $(window).on('load', function() {
171
172        // Initiate venobox (lightbox feature used in portofilo)
173        $(document).ready(function() {
174            $('.venobox').venobox();
175        });
176    });
177
178    // Start of datepicker
179    $('.dateselect').datepicker({
180        format: 'dd/mm/yyyy',
181        // minDate: moment(),
182        // minDate:new Date(),
183
184        startDate: '-0m',
185        autoclose: true,
186        todayHighlight: true,
187        daysOfWeekDisabled: [0]
188    });
189
190})(jQuery);
191function setVideo(val){   
192            document.getElementById("myFrame").src = val;
193        }

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.