PageSourceSearch

https://oudzuylenutrecht.nl/wp-content/themes/savona/assets/js/cus…?ver=5121c7fe81a9e25666c6a0ac1c0ec7e7

js oudzuylenutrecht.nl collected 2026-10-03 00:34:24 UTC 4,483 bytes, 186 lines download raw bytes

1jQuery(document).ready(function( $ ) {
2	"use strict";
3
4/*
5** Main Navigation =====
6*/
7	// Navigation Hover 
8	$('#top-menu,#main-menu').find('li').hover(function () {
9	    $(this).children('.sub-menu').stop().fadeToggle( 200 );
10	}, function() {
11		$(this).children('.sub-menu').stop().fadeToggle( 200 );
12	});
13
14	// Mobile Menu
15	$('.mobile-menu-btn').on( 'click', function() {
16		$('.mobile-menu-container').slideToggle();
17	});
18
19	// Responsive Menu 
20	$( '#mobile-menu .menu-item-has-children' ).prepend( '<div class="sub-menu-btn"></div>' );
21	$( '#mobile-menu .sub-menu' ).before( '<span class="sub-menu-btn-icon"><i class="fa fa-sort-desc"></i></span>' );
22
23	// Responsive sub-menu btn
24	$('.sub-menu-btn').click(function(){
25		$(this).closest('li').children('.sub-menu').slideToggle();
26		$(this).closest('li').children('.sub-menu-btn-icon').children('i').toggleClass( 'fa-rotate-270' );
27	});
28
29	$( window ).on( 'resize', function() {
30		if ( $('.main-menu-container').css('display') === 'block' ) {
31			$( '.mobile-menu-container' ).css({ 'display' : 'none' });
32		}
33	});
34
35	// Search Form
36	$('.main-nav-icons').after($('.main-nav-search #searchform').remove());
37	var mainNavSearch = $('#main-nav #searchform');
38	
39	mainNavSearch.find('#s').attr( 'placeholder', mainNavSearch.find('#s').data('placeholder') );
40
41	$('.main-nav-search').click(function() {
42		if ( mainNavSearch.css('display') === 'none' ) {
43			mainNavSearch.fadeIn();
44			$('.main-nav-search i:last-of-type').show();
45			$('.main-nav-search i:first-of-type').hide();
46		} else {
47			mainNavSearch.fadeOut();
48			$('.main-nav-search i:last-of-type').hide();
49			$('.main-nav-search i:first-of-type').show();
50		}
51	});
52
53
54/*
55** Featured Slider =====
56*/
57	var RTL = false;
58	if( $('html').attr('dir') == 'rtl' ) {
59	RTL = true;
60	}
61
62	$('#featured-slider').slick({
63		prevArrow: '<span class="prev-arrow icon-left-open-big"></span>',
64		nextArrow: '<span class="next-arrow icon-right-open-big"></span>',
65		dotsClass: 'slider-dots',
66		adaptiveHeight: true,
67		rtl: RTL,
68		speed: 700,
69  		customPaging: function(slider, i) {
70            return '';
71        }
72	});
73
74
75/*
76** Single Navigation =====
77*/
78
79	var singleNav 	 = $('.single-navigation'),
80		headerHeight = $('#page-header').outerHeight();
81
82	$(window).scroll(function() {
83		if ( $(this).scrollTop() > headerHeight ) {
84			singleNav.fadeIn();
85		} else {
86			singleNav.fadeOut();
87		}
88	});
89
90
91/*
92** Sidebars =====
93*/
94
95	// Sticky Sidebar
96	function stickySidebar() {
97		if ( $( '.main-content' ).data('sidebar-sticky') === 1 ) {		
98			var SidebarOffset = 0;
99
100			if ( $("#main-nav").attr( 'data-fixed' ) === '1' ) {
101				SidebarOffset = 40;
102			}
103
104			$('.sidebar-left,.sidebar-right').stick_in_parent({
105				parent: ".main-content",
106				offset_top: SidebarOffset,
107				spacer: '.sidebar-left-wrap,.sidebar-right-wrap'
108			});
109
110			if ( $('.main-menu-container').css('display') === 'none' ) {
111				$('.sidebar-left,.sidebar-right').trigger("sticky_kit:detach");
112			}
113		}
114	}
115
116	// on Window Resize
117	$( window ).on( 'resize', function() {
118		stickySidebar();
119	});
120
121	// on Load
122	$( window ).on( 'load', function() {
123		stickySidebar();
124	});
125
126	// Sidebar Alt Scroll
127	$('.sidebar-alt').perfectScrollbar({
128		suppressScrollX : true,
129		includePadding : true,
130		wheelSpeed: 3.5
131	});
132
133	// Sidebar Alt
134	$('.main-nav-sidebar').on('click', function () {
135		$('.sidebar-alt').css( 'left','0' );
136		$('.sidebar-alt-close').fadeIn( 500 );
137	});
138
139	// Sidebar Alt Close
140	$('.sidebar-alt-close, .sidebar-alt-close-btn').on('click', function () {
141		$('.sidebar-alt').css( 'left','-'+ $( ".sidebar-alt" ).outerWidth() +'px' );
142		$('.sidebar-alt-close').fadeOut( 500 );
143	});
144
145
146/*
147** Scroll Top Button =====
148*/
149
150	$('.scrolltop').on( 'click', function() {
151		$('html, body').animate( { scrollTop : 0 }, 800 );
152		return false;
153	});
154
155	$( window ).on( 'scroll', function() {
156		if ($(this).scrollTop() >= 800 ) {
157			$('.scrolltop').fadeIn(350);
158		} else {
159			$('.scrolltop').fadeOut(350);
160		}
161	});
162
163
164/*
165** Preloader =====
166*/
167	if ( $('.savona-preloader-wrap').length ) {
168
169		$( window ).on( 'load', function() {
170			setTimeout(function(){
171				$('.savona-preloader-wrap > div').fadeOut( 600 );
172				$('.savona-preloader-wrap').fadeOut( 1500 );
173			}, 300);
174		});
175
176	}
177
178
179/*
180** Run Functions =====
181*/
182	// FitVids
183	$('.slider-item, .post-media').fitVids();
184
185
186}); // end dom ready

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.