PageSourceSearch

https://conniescott.com/wp-content/themes/vw-church/assets/js/custom.js?ver=7.1.3

js conniescott.com collected 2026-10-09 22:10:39 UTC 5,439 bytes, 194 lines download raw bytes

1function vw_church_menu_open_nav() {
2	window.vw_church_responsiveMenu=true;
3	jQuery(".sidenav").addClass('show');
4}
5function vw_church_menu_close_nav() {
6	window.vw_church_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
18	new WOW().init();
19});
20
21jQuery(document).ready(function () {
22	window.vw_church_currentfocus=null;
23  	vw_church_checkfocusdElement();
24	var vw_church_body = document.querySelector('body');
25	vw_church_body.addEventListener('keyup', vw_church_check_tab_press);
26	var vw_church_gotoHome = false;
27	var vw_church_gotoClose = false;
28	window.vw_church_responsiveMenu=false;
29 	function vw_church_checkfocusdElement(){
30	 	if(window.vw_church_currentfocus=document.activeElement.className){
31		 	window.vw_church_currentfocus=document.activeElement.className;
32	 	}
33 	}
34 	function vw_church_check_tab_press(e) {
35		"use strict";
36		// pick passed event or global event object if passed one is empty
37		e = e || event;
38		var activeElement;
39
40		if(window.innerWidth < 999){
41		if (e.keyCode == 9) {
42			if(window.vw_church_responsiveMenu){
43			if (!e.shiftKey) {
44				if(vw_church_gotoHome) {
45					jQuery( ".main-menu ul:first li:first a:first-child" ).focus();
46				}
47			}
48			if (jQuery("a.closebtn.mobile-menu").is(":focus")) {
49				vw_church_gotoHome = true;
50			} else {
51				vw_church_gotoHome = false;
52			}
53
54		}else{
55
56			if(window.vw_church_currentfocus=="responsivetoggle"){
57				jQuery( "" ).focus();
58			}}}
59		}
60		if (e.shiftKey && e.keyCode == 9) {
61		if(window.innerWidth < 999){
62			if(window.vw_church_currentfocus=="header-search"){
63				jQuery(".responsivetoggle").focus();
64			}else{
65				if(window.vw_church_responsiveMenu){
66				if(vw_church_gotoClose){
67					jQuery("a.closebtn.mobile-menu").focus();
68				}
69				if (jQuery( ".main-menu ul:first li:first a:first-child" ).is(":focus")) {
70					vw_church_gotoClose = true;
71				} else {
72					vw_church_gotoClose = false;
73				}
74			
75			}else{
76
77			if(window.vw_church_responsiveMenu){
78			}}}}
79		}
80	 	vw_church_checkfocusdElement();
81	}
82});
83
84jQuery('document').ready(function($){
85
86	$(window).scroll(function(){
87		var sticky = $('.header-sticky'),
88			scroll = $(window).scrollTop();
89
90		if (scroll >= 100) sticky.addClass('header-fixed');
91		else sticky.removeClass('header-fixed');
92	});
93  setTimeout(function () {
94		jQuery("#preloader").fadeOut("slow");
95  },1000);
96
97  /*sticky sidebar*/
98window.addEventListener('scroll', function() {
99  var sticky = document.querySelector('.sidebar-sticky');
100  if (!sticky) return;
101
102  var scrollTop = window.scrollY || document.documentElement.scrollTop;
103  var windowHeight = window.innerHeight;
104  var documentHeight = document.documentElement.scrollHeight;
105
106  var isBottom = scrollTop + windowHeight >= documentHeight-100;
107
108  if (scrollTop >= 100 && !isBottom) {
109    sticky.classList.add('sidebar-fixed');
110  } else {
111    sticky.classList.remove('sidebar-fixed');
112  }
113});
114
115  // Sticky Copyright
116  $(window).scroll(function(){
117    var sticky = $('.copyright-sticky'),
118      scroll = $(window).scrollTop();
119
120    if (scroll >= 100) sticky.addClass('copyright-fixed');
121    else sticky.removeClass('copyright-fixed');
122  });
123});
124
125jQuery(document).ready(function () {
126	jQuery(window).scroll(function () {
127    if (jQuery(this).scrollTop() > 100) {
128      jQuery('.scrollup i').fadeIn();
129    } else {
130      jQuery('.scrollup i').fadeOut();
131    }
132	});
133	jQuery('.scrollup i').click(function () {
134    jQuery("html, body").animate({
135      scrollTop: 0
136    }, 600);
137    return false;
138	});
139});
140
141jQuery(document).ready(function () {
142	function vw_church_search_loop_focus(element) {
143		var vw_church_focus = element.find('select, input, textarea, button, a[href]');
144		var vw_church_firstFocus = vw_church_focus[0];  
145		var vw_church_lastFocus = vw_church_focus[vw_church_focus.length - 1];
146		var KEYCODE_TAB = 9;
147
148		element.on('keydown', function vw_church_search_loop_focus(e) {
149			var isTabPressed = (e.key === 'Tab' || e.keyCode === KEYCODE_TAB);
150
151			if (!isTabPressed) { 
152			  return; 
153			}
154
155			if ( e.shiftKey ) /* shift + tab */ {
156			  if (document.activeElement === vw_church_firstFocus) {
157		    vw_church_lastFocus.focus();
158		      e.preventDefault();
159		    }
160		  } else /* tab */ {
161		  	if (document.activeElement === vw_church_lastFocus) {
162		    	vw_church_firstFocus.focus();
163		      e.preventDefault();
164		    }
165		  }
166		});
167	}
168	
169	jQuery('.search-box a.search-open').click(function(){
170    jQuery(".serach_outer").slideDown(1000);
171  	vw_church_search_loop_focus(jQuery('.serach_outer'));
172  });
173
174  jQuery('.closepop a').click(function(){
175    jQuery(".serach_outer").slideUp(1000);
176  });
177});
178/* Progress Bar */
179document.addEventListener("DOMContentLoaded", function () {
180    const vw_church_progressBar =
181        document.getElementById("vw_church_elemento_progress_bar");
182    if (!vw_church_progressBar) return;
183    window.addEventListener("scroll", function () {
184        const vw_church_scrollTop =
185            document.documentElement.scrollTop || document.body.scrollTop;
186        const vw_church_height =
187            document.documentElement.scrollHeight -
188            document.documentElement.clientHeight;
189        const vw_church_scrolled =
190            (vw_church_scrollTop / vw_church_height) * 100;
191        vw_church_progressBar.style.width =
192            vw_church_scrolled + "%";
193    });
194});

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.