PageSourceSearch

https://northlakebh.org/wp-content/themes/northlake/assets/js/custom.js?ver=1790318385

js northlakebh.org collected 2026-09-25 06:40:15 UTC 4,074 bytes, 149 lines download raw bytes

1$(function() {
2		
3	$('.navbar-toggler').click(function() {
4		if (  $(this).attr('aria-expanded') == 'true'  ) {
5			$('body').removeClass('hamburger-open');
6		} else {
7			$('body').addClass('hamburger-open');
8		}
9	});
10});
11
12
13$(function() {
14	// Schedule assessment floating action
15	$(".action-click").click(function() {
16		if ($(".action-click").attr("data-open") == "false") {
17			// Closed currently
18			$(".floating-action").addClass("opened");
19			$(".action-click").attr("data-open", "true");
20		} else {
21			$(".floating-action").removeClass("opened");
22			$(".action-click").attr("data-open", "false");
23		}
24	});
25});
26
27// sticky header start
28$(function () {
29    $(window).on("scroll", function () {
30        if ($(window).width() > 768) {
31            if ($(window).scrollTop() > 150) {
32                $("header").addClass("fixed-top");
33            } else {
34
35                $("header").removeClass("fixed-top");
36            }
37        }
38    });
39});
40// sticky header end
41
42// Smooth scroll start
43$(function() {
44    $('section.common-content a').click(function() {
45    if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
46      var target = $(this.hash);
47      target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
48      if (target.length) {
49        $('html,body').animate({
50          scrollTop: target.offset().top - 105
51        }, 1000);
52        return false;
53      }
54    }
55  });
56});
57// Smooth scroll end
58
59// owl carousel start
60$(document).ready(function() {
61    var owl = $('#patient-slide');
62    owl.owlCarousel({
63        items:1,
64        loop:true,
65        dots: true,
66        nav: true,
67        margin:15,
68        autoplay:false,
69        autoplayTimeout:7000,
70        autoplayHoverPause:false
71    });
72});
73
74// owl carousel start
75
76//
77$(document).ready(function() {
78    $('.navbar-toggle').on('click', function (event) {
79        $(this).toggleClass('open');
80        $('#navbarSupportedContent').slideToggle(400);
81    });
82    
83    /*$('.navbar-nav>li').slice(-1).addClass('last-elements');*/
84    
85    $('li.has-submenu:before').on('click', function (e) {
86        if ($(window).width() < 1199) {
87            e.preventDefault();
88            $(this).parent('li').toggleClass('open').find('.sub-menu:first').toggleClass('open');
89        }
90    });
91    
92    $(".navbar-nav a").each(function () {
93        if (this.href == window.location.href) {
94            var parent = $(this).parent();
95            parent.addClass("active");
96            parent.parent().parent().addClass("active"); 
97            parent.parent().parent().parent().parent().addClass("active"); 
98        }
99    });
100
101    // Clickable Menu
102    $(".has-submenu a, .has-submenu:before").on('click', function() {
103        if(window.innerWidth < 1199){
104            var parent = $(this).parent();
105            var siblings = $(this).siblings('.sub-menu');
106
107            if(parent.hasClass('open')){
108                siblings.removeClass('open');
109                parent.removeClass('open');
110            } else {
111                siblings.addClass('open');
112                parent.addClass('open');
113            }
114        }
115    });
116});
117
118// back-to-top start
119$(document).ready(function() {
120    $("#back-top").hide();
121    $(function () {
122        $(window).scroll(function () {
123            if ($(this).scrollTop() > 500) {
124                $('#back-top').fadeIn();
125            } else {
126                $('#back-top').fadeOut();
127      
128            }
129        });
130        $('a#back-top').click(function () {
131            $('body,html').animate({
132                scrollTop: 0
133            }, 800);
134            return false;
135        });
136    });
137});
138// back-to-top end
139
140$(function() {
141  $(".lightgallery1 .item").slice(0, 6).show(); // select the first ten
142  $("#load").click(function(e) { // click event for load more
143    e.preventDefault();
144    $(".item:hidden").slice(0, 3).show(); // select next 10 hidden divs and show them
145    if ($(".item:hidden").length == 0) { // check if any hidden divs still exist
146       $("#load").css("display","none");
147    }
148  });
149});

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.