PageSourceSearch

https://kbwinteriors.com/wp-content/themes/KarenWolfInteriors2020/js/main.js?ver=1.0.0

js kbwinteriors.com collected 2026-10-04 22:24:07 UTC 4,192 bytes, 175 lines download raw bytes

1jQuery('.hidden-text dt').click(function(){
2	jQuery(this).toggleClass('opened');
3	jQuery(this).next().slideToggle();
4});
5
6jQuery(window).resize(function(){
7	jQuery('.category-inner-hover').matchHeight({
8		byRow: false
9	});
10});
11
12jQuery(window).on("load", function() {
13	jQuery('.post-content.match').matchHeight({
14		byRow: false
15	});
16
17	jQuery('.post.match').matchHeight({
18		byRow: false
19	});
20
21	jQuery('.category-inner-hover').matchHeight({
22		byRow: false
23	});
24
25	$topHeight = jQuery("#fixed-nav").outerHeight();
26
27  jQuery('main').css({
28    marginTop: $topHeight,
29		opacity: "1.0"
30  });
31
32
33	jQuery('.home main').css({
34	opacity: "1.0"
35	});
36
37	jQuery('.blog main').css({
38	opacity: "1.0"
39	});
40});
41
42
43jQuery(document).ready(function(){
44	  jQuery('.main-slider').slick({
45		infinite: true,
46		fade: true,
47		autoplay: true,
48		autoplaySpeed: 8000,
49		slidesToShow: 1,
50		slidesToScroll: 1,
51		arrows: false,
52		dots: true,
53	  });
54	  if(window.innerWidth < 893){
55		jQuery(".acclaimed-design-section .flex-container").slick({
56			infinite: true,
57			fade: true,
58			autoplay: true,
59			autoplaySpeed: 8000,
60			slidesToShow: 1,
61			slidesToScroll: 1,
62			arrows: true,
63			nextArrow: "<a class='slick-next-main slick-arrow-main'></a>",
64			prevArrow: "<a class='slick-prev-main slick-arrow-main'></a>"
65		  });
66	  }
67
68	jQuery('.post-content.match').matchHeight({
69		byRow: false
70	});
71
72	jQuery('.post.match').matchHeight({
73		byRow: false
74	});
75
76	jQuery('.category-inner-hover').matchHeight({
77		byRow: false
78	});
79
80	$topHeight = jQuery("#fixed-nav").outerHeight();
81
82  jQuery('main').css({
83    marginTop: $topHeight
84  });
85
86
87});
88
89// mobile menu
90 jQuery('#mobile-nav').click(function(){
91 	jQuery(this).toggleClass('open');
92	jQuery('#navigation').slideToggle();
93});
94
95jQuery(window).scroll(function () {
96  if(!jQuery('#mobile-nav').hasClass('open')){
97	  	$topHeight = jQuery("#fixed-nav").outerHeight();
98
99    jQuery('#fixed-nav .flex-container').toggleClass('scrolled', jQuery(document).scrollTop() >= $topHeight);
100  }
101});
102
103
104jQuery('#top-nav .menu-item-has-children').click(function(){
105	if(jQuery(window).width() < 893){
106		jQuery(this).toggleClass("open");
107		jQuery('#design-resources').slideToggle();
108	}
109});
110
111jQuery.noConflict();
112jQuery(function($) {
113
114	// When to show the scroll link
115	// higher number = scroll link appears further down the page
116	var upperLimit = 100;
117
118	// Our scroll link element
119	var scrollElem = $('a#scroll-to-top');
120
121	// Scroll Speed. Change the number to change the speed
122	var scrollSpeed = 600;
123
124	// Choose your easing effect http://jqueryui.com/resources/demos/effect/easing.html
125	var scrollStyle = 'swing';
126
127/****************************************************
128 *                                                  *
129 *      JUMP TO ANCHOR LINK SCRIPT START            *
130 *                                                  *
131 ****************************************************/
132
133	// Show and hide the scroll to top link based on scroll position
134	scrollElem.hide();
135	$(window).scroll(function () {
136		var scrollTop = $(document).scrollTop();
137		if ( scrollTop > upperLimit ) {
138			$(scrollElem).stop().fadeTo(300, 1); // fade back in
139		}else{
140			$(scrollElem).stop().fadeTo(300, 0); // fade out
141		}
142	});
143
144	// Scroll to top animation on click
145	$(scrollElem).click(function(){
146		$('html, body').animate({scrollTop:0}, scrollSpeed, scrollStyle ); return false;
147	});
148
149/****************************************************
150 *                                                  *
151 *      JUMP TO ANCHOR LINK SCRIPT START            *
152 *                                                  *
153 ****************************************************/
154
155  $('a[href*="#"]:not([href="#"]):not([href^="#tab"])').click(function()
156  {
157    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
158        || location.hostname == this.hostname)
159    {
160
161      var target = $(this.hash),
162      $headerHeight = jQuery("#fixed-nav").outerHeight();
163
164      target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
165
166      if (target.length)
167      {
168        $('html,body').animate({ scrollTop: target.offset().top - $headerHeight }, scrollSpeed, scrollStyle );
169        return false;
170      }
171    }
172  });
173
174});
175

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.