PageSourceSearch

https://amvjvoetbal.nl/wp-content/themes/amvj/assets/js/scripts.js?ver=6.1.2

js amvjvoetbal.nl collected 2026-10-03 01:04:21 UTC 7,988 bytes, 286 lines download raw bytes

1jQuery(function ($) {
2
3	// Add sticky header class
4	function stickyHeader(scroll) {
5		var header = $('.header');
6
7		if (scroll >= 40) header.addClass('sticky');
8		else {
9			header.removeClass('sticky');
10		}
11	}
12
13    // add submenu to main menu on mobile
14    function MobileMenu() {
15        var width = $(window).width();
16        var topmenu = $('.top-menu').html();
17
18        if(width < 1024) {
19            $('.menu-main-menu-container > ul:first-of-type').append(topmenu);
20        }
21    }
22    MobileMenu();
23
24    // Toggle mobile menu
25	$(".mobile_menu").click(function() {
26		$('.navigation, .mobile_menu').toggleClass('active');
27	});
28
29	// Vacature button
30	$(".solleciteren").click(function() {
31		$('.apply_form').toggleClass('active');
32	});
33
34	// Toggle Search bar
35	$(".search_icon").click(function() {
36		$('.search_bar').toggleClass('active');
37	});
38
39	// Change tabs on 'Wedstrijden' page
40	$(".switch_menu li span").click(function() {
41		var link = $(this).data('link');
42
43		$('.tabs .tab, .switch_menu li span').removeClass('active');
44		$('#'+ link).addClass('active');
45		$(this).addClass('active');
46	});
47
48	// Contact
49	$(".contact_options article").click(function() {
50		$('.contact_options article').removeClass('active');
51		$(this).addClass('active');
52	});
53
54    // Contact add type to invisible field
55    $(".btn--contact").click(function() {
56        var $type = $(this).data('type');
57
58        $(".gform_wrapper input, .gform_wrapper textarea").prop('required',true);
59        $('#field_1_6 input').val($type);
60    });
61
62    // Show news caroussel on home
63    $('.hero__slides').slick({
64        slidesToShow: 1,
65        slidesToScroll: 1,
66        arrows: true,
67        autoplay: true,
68        nextArrow: '<i class="ion-chevron-left"></i>',
69        prevArrow: '<i class="ion-chevron-right"></i>',
70    });
71
72	// Show logo's on home
73	$('.slider .items').slick({
74		slidesToShow: 5,
75		slidesToScroll: 5,
76		arrows: false,
77        autoplay: true,
78		speed: 5000,
79		nextArrow: '<i class="ion-chevron-right"></i>',
80		prevArrow: '<i class="ion-chevron-left"></i>',
81		responsive: [
82			{
83				breakpoint: 1024,
84				settings: {
85					slidesToShow: 3,
86					slidesToScroll: 3,
87					infinite: true
88				}
89			},
90			{
91				breakpoint: 600,
92				settings: {
93					slidesToShow: 2,
94					slidesToScroll: 2
95				}
96			},
97			{
98				breakpoint: 480,
99				settings: {
100					slidesToShow: 1,
101					slidesToScroll: 1
102				}
103			}
104		]
105	});
106
107	// Show video's on home
108	$('.video_slider').slick({
109		slidesToShow: 5,
110		slidesToScroll: 1,
111		arrows: true,
112        autoplay: false,
113		centerPadding:'80px',
114		nextArrow: '<i class="ion-chevron-right"></i>',
115		prevArrow: '<i class="ion-chevron-left"></i>',
116		responsive: [
117			{
118				breakpoint: 1024,
119				settings: {
120					slidesToShow: 3,
121					infinite: true
122				}
123			},
124			{
125				breakpoint: 600,
126				settings: {
127					slidesToShow: 2,
128				}
129			},
130			{
131				breakpoint: 480,
132				settings: {
133					slidesToShow: 1,
134				}
135			}
136		]
137	});
138
139	// Show logo's on home
140    $('.support .items').slick({
141        slidesToShow: 4,
142        slidesToScroll: 1,
143        arrows: true,
144        autoplay: true,
145        nextArrow: '<i class="ion-chevron-left"></i>',
146        prevArrow: '<i class="ion-chevron-right"></i>',
147        responsive: [
148            {
149                breakpoint: 1024,
150                settings: {
151                    slidesToShow: 3,
152                    slidesToScroll: 3,
153                    infinite: true
154                }
155            },
156            {
157                breakpoint: 600,
158                settings: {
159                    slidesToShow: 2,
160                    slidesToScroll: 2
161                }
162            },
163            {
164                breakpoint: 480,
165                settings: {
166                    slidesToShow: 1,
167                    slidesToScroll: 1
168                }
169            }
170        ]
171    });
172
173	// Add pakket keuze to form
174	$(".pakketten .btn").click(function() {
175		$('#input_7_6').val($(this).data('title'));
176	});
177
178	// Get schedule for first team
179	function GetProgrammAMVJ($param) {
180
181		$.getJSON('https://data.sportlink.com/programma?client_id=StqD2oGFP8&teamcode=114581&aantalregels=1', function(data) {
182			$('.first_team.next .date').html(data[0].datum + ' '+data[0].aanvangstijd);
183			$('.first_team.next .location').html(data[0].accommodatie);
184			$('.first_team.next .klasse').html(data[0].klasse);
185			$('.first_team.next .game .holder:first-child img').attr('src', 'https://sassets.knvb.nl/sites/voetbal.nl/files/knvblogos/'+data[0].thuisteamclubrelatiecode+'.png');
186			$('.first_team.next .game .holder:nth-child(3) img').attr('src', 'https://sassets.knvb.nl/sites/voetbal.nl/files/knvblogos/'+data[0].uitteamclubrelatiecode+'.png');
187			$('.first_team.next a').attr('href', '/wedstrijd/'+data[0].wedstrijdcode+'');
188		});
189
190		$.getJSON('https://data.sportlink.com/uitslagen?client_id=StqD2oGFP8&teamcode=114581&aantalregels=1', function(data) {
191			$('.first_team.last .date').html(data[0].datumopgemaakt);
192			$('.first_team.last .location').html(data[0].accommodatie);
193			$('.first_team.last .klasse').html(data[0].accommodatie);
194			$('.first_team.last .score_1').html(data[0].uitslag);
195			$('.first_team.last .game .holder:nth-child(2) img').attr('src', 'https://sassets.knvb.nl/sites/voetbal.nl/files/knvblogos/'+data[0].thuisteamclubrelatiecode+'.png');
196			$('.first_team.last .game .holder:nth-child(4) img').attr('src', 'https://sassets.knvb.nl/sites/voetbal.nl/files/knvblogos/'+data[0].uitteamclubrelatiecode+'.png');
197			$('.first_team.last a').attr('href', '/wedstrijd/'+data[0].wedstrijdcode+'');
198		});
199	}
200
201	if ( $('body').hasClass( 'home' )) {
202		GetProgrammAMVJ();
203	}
204
205	if( $("#aanmeldformulier").length >= 1 ){
206
207		$('.required input').focusout(function() {
208			if($(this).val().length != 0){
209				$(this).addClass('filled');
210			} else {
211				$(this).removeClass('filled');
212			}
213		});
214
215		$("#aanmeldformulier").on( 'submit', function( event ) {
216			$('.wait').show();
217
218			event.preventDefault();
219
220			$.ajax({
221				type: 'POST',
222				url: 'https://data.sportlink.com/aanmeldenaspirantlid?client_id=StqD2oGFP8',
223				cache: false,
224				data: $(this).serialize(),
225				async:false,
226				success: function (data) {
227					$('.wait').hide();
228                    window.location.href = 'https://amvjvoetbal.nl/welkom';
229				},
230				error: function (textStatus, errorThrown) {
231					alert('De captcha is onjuist, probeer het nog eens');
232				}
233			});
234
235		});
236	}
237
238	if ('serviceWorker' in navigator) {
239		navigator.serviceWorker.register('/sw.js')
240			.then(function(reg){
241			}).catch(function(err) {
242			});
243	}
244
245
246	$(".hero_blocks a").click(function() {
247		$('html, body').animate({
248			scrollTop: $(".match_bar").offset().top
249		}, 2000);
250	});
251
252    $(".vacancies .categories li").click(function() {
253        var currentElement = $(this).data('type');
254
255        $('.vacancies .categories li').removeClass('active');
256        $(this).addClass('active');
257
258        $('.vacancies .items').removeClass('active');
259        $('.vacancies .items').addClass('active');
260
261        $('.vacancies .items article').removeClass('active');
262        $('.vacancies .items article[type ='+currentElement+']').addClass('active');
263    });
264
265    $(".calendar li span").click(function() {
266        var currentElement = $(this).data('type');
267
268        $('.calendar li span').removeClass('active');
269        $(this).addClass('active');
270
271        if(currentElement == 'all') {
272            $('.calendar .item').addClass('active');
273        } else {
274            $('.calendar .item').removeClass('active');
275            $('.calendar .items article[type=' + currentElement + ']').addClass('active');
276        }
277    });
278
279    $(window).scroll(function() {
280
281        var scroll = $(window).scrollTop();
282
283        stickyHeader(scroll);
284    });
285
286});

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.