PageSourceSearch

https://barkleyconsultinggroup.com/wp-content/themes/barkleyconsult/js/scripts.js

js barkleyconsultinggroup.com collected 2026-10-04 22:05:07 UTC 3,746 bytes, 176 lines download raw bytes

1jQuery(document).ready(function( $ ) {
2 
3//stickyheader
4
5$(window).scroll(function() {
6  if( $(this).scrollTop() > 0 ) {
7    $('header').addClass('sticky');
8  } else {
9    $('header').removeClass('sticky');
10  }
11});
12
13
14
15
16// RWD MENU
17
18var ww = document.body.clientWidth;
19
20$(document).ready(function() {
21  $(".nav li a").each(function() {
22    if ($(this).next().length > 0) {
23      $(this).addClass("parent");
24    };
25  })
26  
27  $(".toggleMenu").click(function(e) {
28    e.preventDefault();
29    $(this).toggleClass("active");
30    $(".nav").toggle();
31  });
32  adjustMenu();
33})
34
35$(window).bind('resize orientationchange', function() {
36  ww = document.body.clientWidth;
37  adjustMenu();
38});
39
40var adjustMenu = function() {
41  if (ww < 820) {
42    // if "more" link not in DOM, add it
43
44    $(".toggleMenu").css("display", "inline-block");
45    if (!$(".toggleMenu").hasClass("active")) {
46      $(".nav").hide();
47    } else {
48      $(".nav").show();
49    }
50    $(".nav li").unbind('mouseenter mouseleave');
51    $(".nav li a.parent").unbind('click');
52    $(".nav li .more").unbind('click').bind('click', function() {
53      
54      $(this).parent("li").toggleClass("hover");
55    });
56  } 
57  else if (ww >= 820) {
58    // remove .more link in desktop view
59    $('.more').remove(); 
60    $(".toggleMenu").css("display", "none");
61    $(".nav").show();
62    $(".nav li").removeClass("hover");
63    $(".nav li a").unbind('click');
64    $(".nav li").unbind('mouseenter mouseleave').bind('mouseenter mouseleave', function() {
65      // must be attached to li so that mouseleave is not triggered when hover over submenu
66      $(this).toggleClass('hover');
67    });
68  }
69}
70
71
72
73var navButton = document.querySelector(".nav-button");
74navButton.addEventListener("click", function (e) {
75e.preventDefault();
76document.body.classList.toggle("nav-visible");
77});
78
79var navButton = document.querySelector(".nav-buttons");
80navButton.addEventListener("click", function (e) {
81e.preventDefault();
82document.body.classList.toggle("nav-visible");
83});
84
85$(document).ready(function ($) {
86    $(".side-item .parent").click(function () {
87        $("ul", this).slideToggle();
88        $(".side-item .parent").toggleClass("minus");
89    });
90});
91
92
93//animate
94//$('.news-wrapper').waypoint(function() {
95//$( ".news-wrapper").addClass( "fadeInLeft" );
96//}, { offset: 800 });
97
98//$('.home-grid').waypoint(function() {
99//$( ".home-grid").addClass( "fadeInUp" );
100//}, { offset: 700 });
101
102//$('.three-grid').waypoint(function() {
103//$( ".three-grid").addClass( "fadeInUp" );
104//}, { offset: 600 });
105
106//$('.main-team').waypoint(function() {
107//$( ".main-team").addClass( "fadeInUp" );
108//}, { offset: 600 });
109
110//$('.second-team').waypoint(function() {
111//$( ".second-team").addClass( "fadeInUp" );
112//}, { offset: 600 });
113
114//accordion
115
116$(document).ready(function() {
117    $(".accordian").click(function() {
118        $(this).nextAll(".content:first").slideToggle("fast");
119        $(this).toggleClass("less");
120    });
121});
122
123
124//dark
125
126function darkmode(){
127    $('body').addClass('lm');
128    localStorage.setItem("mode", "light");
129    }
130
131
132
133function nodark(){
134        $('body').removeClass('lm');
135        localStorage.setItem("mode", "dark");
136        }
137
138  if(localStorage.getItem("mode")=="light")
139        darkmode();
140  else
141    nodark();
142
143$('#mode').change(function(){   
144
145    if ($(this).prop('checked'))
146    {
147        darkmode();
148    }
149    else
150    {
151        nodark();
152    }
153
154});
155
156
157    // function
158
159    $.fn.equalHeights = function(){
160    let maxHeight = 0;
161    $(this).each(function(){
162    maxHeight = Math.max($(this).height(), maxHeight);
163    });
164    $(this).each(function(){
165    $(this).height(maxHeight);
166    });
167    };
168
169     
170
171    // usage
172    $('.equal').each(function() {
173    $(this).find('.equal-row').equalHeights()
174
175    })
176	});

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.