PageSourceSearch

https://forestadaptation2008.net/wp-content/themes/vw-logistics-shipping/assets/js/custom.js?ver=7.0.4

js forestadaptation2008.net collected 2026-10-03 18:50:43 UTC 4,776 bytes, 154 lines download raw bytes

1function vw_logistics_shipping_menu_open_nav() {
2	window.vw_logistics_shipping_responsiveMenu=true;
3	jQuery(".sidenav").addClass('show');
4}
5function vw_logistics_shipping_menu_close_nav() {
6	window.vw_logistics_shipping_responsiveMenu=false;
7 	jQuery(".sidenav").removeClass('show');
8}
9
10jQuery(function($){
11 	"use strict";
12 	jQuery('.main-menu > ul').superfish({
13		delay: 500,
14		animation: {opacity:'show',height:'show'},
15		speed: 'fast'
16 	});
17	$(window).scroll(function(){
18		var sticky = $('.header-sticky'),
19			scroll = $(window).scrollTop();
20
21		if (scroll >= 100) sticky.addClass('header-fixed');
22		else sticky.removeClass('header-fixed');
23	});
24    
25	/*sticky sidebar*/
26window.addEventListener('scroll', function() {
27  var sticky = document.querySelector('.sidebar-sticky');
28  if (!sticky) return;
29
30  var scrollTop = window.scrollY || document.documentElement.scrollTop;
31  var windowHeight = window.innerHeight;
32  var documentHeight = document.documentElement.scrollHeight;
33
34  var isBottom = scrollTop + windowHeight >= documentHeight-100;
35
36  if (scrollTop >= 100 && !isBottom) {
37    sticky.classList.add('sidebar-fixed');
38  } else {
39    sticky.classList.remove('sidebar-fixed');
40  }
41});
42
43	// Sticky Copyright
44	  $(window).scroll(function(){
45	    var sticky = $('.copyright-sticky'),
46	      scroll = $(window).scrollTop();
47
48	    if (scroll >= 100) sticky.addClass('copyright-fixed');
49	    else sticky.removeClass('copyright-fixed');
50	  });
51});
52
53jQuery(document).ready(function () {
54	window.vw_logistics_shipping_currentfocus=null;
55  	vw_logistics_shipping_checkfocusdElement();
56	var vw_logistics_shipping_body = document.querySelector('body');
57	vw_logistics_shipping_body.addEventListener('keyup', vw_logistics_shipping_check_tab_press);
58	var vw_logistics_shipping_gotoHome = false;
59	var vw_logistics_shipping_gotoClose = false;
60	window.vw_logistics_shipping_responsiveMenu=false;
61 	function vw_logistics_shipping_checkfocusdElement(){
62	 	if(window.vw_logistics_shipping_currentfocus=document.activeElement.className){
63		 	window.vw_logistics_shipping_currentfocus=document.activeElement.className;
64	 	}
65 	}
66 	function vw_logistics_shipping_check_tab_press(e) {
67		"use strict";
68		// pick passed event or global event object if passed one is empty
69		e = e || event;
70		var activeElement;
71
72		if(window.innerWidth < 999){
73		if (e.keyCode == 9) {
74			if(window.vw_logistics_shipping_responsiveMenu){
75			if (!e.shiftKey) {
76				if(vw_logistics_shipping_gotoHome) {
77					jQuery( ".main-menu ul:first li:first a:first-child" ).focus();
78				}
79			}
80			if (jQuery("a.closebtn.mobile-menu").is(":focus")) {
81				vw_logistics_shipping_gotoHome = true;
82			} else {
83				vw_logistics_shipping_gotoHome = false;
84			}
85
86		}else{
87
88			if(window.vw_logistics_shipping_currentfocus=="responsivetoggle"){
89				jQuery( "" ).focus();
90			}}}
91		}
92		if (e.shiftKey && e.keyCode == 9) {
93		if(window.innerWidth < 999){
94			if(window.vw_logistics_shipping_currentfocus=="header-search"){
95				jQuery(".responsivetoggle").focus();
96			}else{
97				if(window.vw_logistics_shipping_responsiveMenu){
98				if(vw_logistics_shipping_gotoClose){
99					jQuery("a.closebtn.mobile-menu").focus();
100				}
101				if (jQuery( ".main-menu ul:first li:first a:first-child" ).is(":focus")) {
102					vw_logistics_shipping_gotoClose = true;
103				} else {
104					vw_logistics_shipping_gotoClose = false;
105				}
106
107			}else{
108
109			if(window.vw_logistics_shipping_responsiveMenu){
110			}}}}
111		}
112	 	vw_logistics_shipping_checkfocusdElement();
113	}
114});
115
116jQuery('document').ready(function($){
117  setTimeout(function () {
118		jQuery("#preloader").fadeOut("slow");
119  },1000);
120});
121
122jQuery(document).ready(function () {
123	jQuery(window).scroll(function () {
124    if (jQuery(this).scrollTop() > 100) {
125      jQuery('.scrollup i').fadeIn();
126    } else {
127      jQuery('.scrollup i').fadeOut();
128    }
129	});
130	jQuery('.scrollup i').click(function () {
131    jQuery("html, body").animate({
132      scrollTop: 0
133    }, 600);
134    return false;
135	});
136});
137
138/* Progress Bar */
139document.addEventListener("DOMContentLoaded", function () {
140    const vw_logistics_shipping_progressBar =
141        document.getElementById("vw_logistics_shipping_elemento_progress_bar");
142    if (!vw_logistics_shipping_progressBar) return;
143    window.addEventListener("scroll", function () {
144        const vw_logistics_shipping_scrollTop =
145            document.documentElement.scrollTop || document.body.scrollTop;
146        const vw_logistics_shipping_height =
147            document.documentElement.scrollHeight -
148            document.documentElement.clientHeight;
149        const vw_logistics_shipping_scrolled =
150            (vw_logistics_shipping_scrollTop / vw_logistics_shipping_height) * 100;
151        vw_logistics_shipping_progressBar.style.width =
152            vw_logistics_shipping_scrolled + "%";
153    });
154});

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.