PageSourceSearch

https://risepediatrictherapiesfl.org/wp-content/themes/twg-material-child/assets/js/custom.js?ver=7.1.3

js risepediatrictherapiesfl.org collected 2026-10-09 22:39:55 UTC 2,797 bytes, 93 lines download raw bytes

1if (/iPhone/i.test(navigator.userAgent)) {
2  document.querySelector("html").classList.add("iphone");
3}
4
5jQuery("document").ready(function () {
6  jQuery(".navbar-toggler").click(function () {
7    jQuery("#navbarNavDropdown").toggleClass("menu-active");
8    jQuery("body").toggleClass("open-menu-active");
9  });
10
11  jQuery(".toggle-close").click(function () {
12    jQuery("#navbarNavDropdown").removeClass("menu-active");
13    jQuery("body").removeClass("open-menu-active");
14    jQuery("#sidenav-overlay").remove();
15  });
16
17  const $menu = jQuery("#navbarNavDropdown");
18  jQuery(document).mouseup((e) => {
19    if (
20      !$menu.is(e.target) && // if the target of the click isn't the container...
21      $menu.has(e.target).length === 0
22    ) {
23      // ... nor a descendant of the container
24      $menu.removeClass("menu-active");
25      jQuery("body").removeClass("menu-active");
26      jQuery("body").removeClass("open-menu-active");
27    }
28  });
29
30  jQuery("#navbarNavDropdown").on("click", () => {
31    $menu.toggleClass("open-menu-active");
32  });
33
34  jQuery(".tabbable .nav-tabs .nav-item a").click(function () {
35    jQuery(".tabbable .nav-tabs .nav-item").removeClass("tab-active");
36    jQuery(this).parent().addClass("tab-active");
37  });
38});
39
40// Add Classes in Hamburger menu
41/*if (jQuery(window).width() > 991) {*/
42jQuery("body").append("<div class='overlay-box'></div>");
43jQuery(function () {
44  jQuery(".desk-navbar-toggler").on("click", function (a) {
45    jQuery("#mainSidenavbar").addClass("active");
46    jQuery("body").addClass("active");
47    a.stopPropagation();
48  });
49  jQuery(document).on("click", function (a) {
50    if (jQuery(a.target).is("#mainSidenavbar") === false) {
51      jQuery("#mainSidenavbar").removeClass("active");
52      jQuery("body").removeClass("active");
53    }
54  });
55});
56/*}*/
57
58// Add Active class in Sub menu
59jQuery(document).ready(function () {
60  var path = window.location.pathname;
61  jQuery("li.menu-item-has-children .waves-effect").each(function () {
62    var test = jQuery(this).attr("href");
63    var pathArray = test.split("/");
64    pathArray[3] = "/" + pathArray[3] + "/";
65    if (pathArray[3] == path) {
66      jQuery(this).addClass("active");
67    }
68  });
69});
70
71jQuery(document).ready(function () {
72  /* add Globally sticky header class  */
73  jQuery(window).scroll(function () {
74    var sticky = jQuery(".site-header"),
75      scroll = jQuery(window).scrollTop();
76
77    if (scroll >= 10) {
78      sticky.addClass("sticky-nav");
79    } else {
80      sticky.removeClass("sticky-nav");
81    }
82  });
83
84  jQuery(".carousel").carousel();
85});
86
87
88
89document.addEventListener('DOMContentLoaded', function() {
90    document.querySelectorAll('.gform_next_button').forEach(function(btn, index){
91        btn.setAttribute('aria-label', 'Next step in the form, page ' + (index + 1));
92    });
93});

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.