PageSourceSearch

https://carrentalanchorage.com/wp-content/themes/wp_adventures_theme/assets/js/themekit.js?ver=1.2.10

js carrentalanchorage.com collected 2026-10-04 03:13:23 UTC 6,478 bytes, 200 lines download raw bytes

1jQuery.noConflict();
2
3/** Responsive Menu - part 1 **/
4var resp_menu_on = false;
5
6//In windows and in Opera this can cause an issue
7var scroll_bounce = (window.chrome !== null && typeof window.chrome !== "undefined") || typeof window.opr !== "undefined";
8
9function vikShowResponsiveMenu() {
10	jQuery(".nav-menu-active").toggle();
11	jQuery(".vikwp-body").toggleClass("e4j-body-fixed e4j-body-shifted");
12	if(jQuery(".vikwp-body").hasClass("e4j-body-shifted")) {
13		resp_menu_on = true;
14	}else {
15		resp_menu_on = false;
16	}
17}
18
19/*
20 * @since v1.0.4
21 * Changed the class application based on the number of widget inside the sidebar, removed from the functions.php. 
22 * We build the class by using jQuery instead of PHP to avoid compatibility problems with multi-language plugins that needs 
23 * to have every widget for each language displayed. 
24 */
25function add_class_numb_widgets(element) {
26
27	var build_element = element + ' .widget';
28	var destination_class = element + ' .cnt-flex';
29	var number_widgt = jQuery(build_element).length;
30	var class_module = '';
31
32	if (number_widgt == 1) {
33		class_module = 'nwidg-one';
34	} else if (number_widgt == 2) {
35		class_module = 'nwidg-two';
36	} else if (number_widgt == 3) {
37		class_module = 'nwidg-three';
38	} else if (number_widgt == 4) {
39		class_module = 'nwidg-four';
40	}
41	jQuery(destination_class).addClass(class_module);
42
43}
44
45jQuery(document).ready(function() {
46	
47	/** Dismiss System Messages on double click ***/
48	jQuery(".notice.is-dismissible").dblclick(function() {
49		jQuery(this).fadeOut(400, function() {
50			jQuery(this).remove();
51		});
52	});
53
54	//Manage submenu panel
55	var login_blocked = false;
56	jQuery(".mainmenu li.menu-item-has-children, .upmenu-content li.menu-item-has-children").hover(function() {
57		jQuery(this).addClass("parent-open");
58	}, function() {
59		jQuery(this).removeClass("parent-open");
60	});
61
62	var menu_selector = jQuery(".headfixed");
63	var container_sticky = jQuery('.fixedmenu');
64	var change_to_sticky = true;
65	var lim_pos = 90;
66	if(menu_selector.length) {
67		lim_pos = menu_selector.height();
68	}
69	jQuery(window).scroll(function() {
70		var scrollpos = jQuery(window).scrollTop();
71		if (scrollpos > lim_pos) {
72			if (change_to_sticky === true) {
73
74				container_sticky.toggleClass("fx-menu-slide");
75				change_to_sticky = false;
76              	
77              	//In windows and in Opera this can cause an issue
78				/*if(scroll_bounce) {
79					jQuery(window).scrollTop(jQuery(window).scrollTop() + (lim_pos + 1));
80				}*/
81				
82			}
83		} else {
84			if ((change_to_sticky === false) && (scrollpos == 0) ) {
85				container_sticky.toggleClass("fx-menu-slide");
86				change_to_sticky = true;
87               
88               	//In windows and in Opera this can cause an issue
89				/*if(scroll_bounce) {
90					jQuery(window).scrollTop(jQuery(window).scrollTop() - (lim_pos + 1));
91				}*/
92			}
93		}
94	});
95
96
97	/** Responsive Menu - part 2 **/
98	var screen = jQuery(window).width();
99	if (screen <= 1280) {
100		jQuery("#nav-menu-devices").addClass("nav-menu-active");
101	}
102	jQuery(window).resize(function() {
103		var width = jQuery(window).width();
104		if (width <= 1280) {
105			jQuery("#nav-menu-devices").addClass("nav-menu-active");
106		} else {
107			jQuery("#nav-menu-devices").removeClass("nav-menu-active").removeAttr("style");
108		}
109	});
110
111	jQuery(document).mouseup(function (e) {
112		var resp_menu_cont = jQuery("#nav-menu-devices");
113		var resp_menu_button = jQuery("#menumob-btn-ico");
114		if(resp_menu_on && !resp_menu_cont.is(e.target) && resp_menu_cont.has(e.target).length === 0  && !resp_menu_button.is(e.target) && resp_menu_button.has(e.target).length === 0) {
115			resp_menu_on = false;
116			jQuery(".nav-menu-active").hide();
117			jQuery(".vikwp-body").removeClass("e4j-body-fixed e4j-body-shifted");
118			jQuery("#menumob-btn-ico").removeClass("open");
119		}
120	});
121
122	jQuery('#menumob-btn-ico').click(function(){
123		jQuery(this).toggleClass('open');
124	});
125
126
127	/* Blog List - set the abstract text height to the featured background image */
128	var addStyleBlog = function() {
129		var blogTextHeight = jQuery('.blog-cnt-text').outerHeight(true);
130		jQuery('.bloglist-featured-img').css('height', blogTextHeight);
131	}
132
133	if(screen > 768) {
134		setTimeout(addStyleBlog, 300);
135	} else {
136		jQuery('.bloglist-featured-img').css('height', '');
137	}
138
139	jQuery(window).resize(function() {
140		var widthResize = jQuery(window).width();
141		if(widthResize > 768) {
142			setTimeout(addStyleBlog, 300);
143		} else {
144			jQuery('.bloglist-featured-img').css('height', '');
145		}
146	});
147
148	/* Responsive Menu - on click open the submenu */
149
150	/* @wp add the responsive arrow to every parent elements */
151
152	var parent_el = jQuery('.nav-devices-list .menu .menu-item-has-children > div').append('<i class="fas submenu-arrow fa-caret-down"></i>');
153
154	var first_submenu_arrow = jQuery('.nav-devices-list .menu >.menu-item-has-children > div > .submenu-arrow');
155	var internal_submenu_arrow = jQuery('.nav-devices-list .nav-child > div > .menu-item-has-children > div > .submenu-arrow');
156	var submenu_main_li = jQuery('.nav-devices-list .menu > .menu-item-has-children');
157	var submenu_child_li = jQuery('.nav-devices-list .nav-child > div > .menu-item-has-children');
158
159	first_submenu_arrow.on('click', function() {
160		if(jQuery(this).closest(submenu_main_li).hasClass('submenu-open')) {
161			jQuery(this).closest(submenu_main_li).removeClass('submenu-open');
162			submenu_main_li.find('li').removeClass('submenu-open');
163			internal_submenu_arrow.addClass('fa-caret-up');
164			internal_submenu_arrow.removeClass('fa-caret-down');
165		} else {
166			jQuery(this).parents('li').addClass('submenu-open');
167		}
168
169		if(jQuery(this).hasClass('fa-caret-down')) {
170			jQuery(this).removeClass('fa-caret-down');
171			jQuery(this).addClass('fa-caret-up');
172		} else {
173			jQuery(this).addClass('fa-caret-down');
174			jQuery(this).removeClass('fa-caret-up');
175		}		
176	});
177
178	internal_submenu_arrow.click(function() {
179		jQuery(this).parents('.nav-child li').toggleClass('submenu-open');
180
181		if(jQuery(this).hasClass('fa-caret-down')) {
182			jQuery(this).removeClass('fa-caret-down');
183			jQuery(this).addClass('fa-caret-up');
184		} else {
185			jQuery(this).addClass('fa-caret-down');
186			jQuery(this).removeClass('fa-caret-up');
187		}		
188	});
189
190
191	/*
192	 * @since v1.0.4
193	 * Select all the containers that will have the custom classes based on the number of the widgets on the sidebar. 
194	 */
195	add_class_numb_widgets('#modulebox-contact');
196	add_class_numb_widgets('#module-box-01');
197	add_class_numb_widgets('#module-box-02');
198	add_class_numb_widgets('#sidebar-footer');
199
200});

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.