PageSourceSearch

https://www.xlphoto.nl/wp-content/themes/yoo_glass_wp/js/template.js

js xlphoto.nl collected 2026-10-06 13:17:10 UTC 2,853 bytes, 81 lines download raw bytes

1/* Copyright (C) YOOtheme GmbH, YOOtheme Proprietary Use License (http://www.yootheme.com/license) */
2
3(function($){
4
5	$(document).ready(function() {
6
7		var config = $('body').data('config') || {};
8		
9		// Accordion menu
10		$('.menu-sidebar').accordionMenu({ mode:'slide' });
11
12		// Dropdown menu
13		$('#menu').dropdownMenu({ mode: 'slide', dropdownSelector: 'div.dropdown'});
14
15		// Smoothscroller
16		$('a[href="#page"]').smoothScroller({ duration: 500 });
17
18		// Social buttons
19		$('article[data-permalink]').socialButtons(config);
20
21	});
22
23	$.onMediaQuery('(min-width: 960px)', {
24		init: function() {
25			if (!this.supported) this.matches = true;
26		},
27		valid: function() {
28			$.matchWidth('grid-block', '.grid-block', '.grid-h').match();
29			$.matchHeight('main', '#maininner, #sidebar-a, #sidebar-b').match();
30			$.matchHeight('top-a', '#top-a .grid-h', '.deepest').match();
31			$.matchHeight('top-b', '#top-b .grid-h', '.deepest').match();
32			$.matchHeight('bottom-a', '#bottom-a .grid-h', '.deepest').match();
33			$.matchHeight('bottom-b', '#bottom-b .grid-h', '.deepest').match();
34			$.matchHeight('innertop', '#innertop .grid-h', '.deepest').match();
35			$.matchHeight('innerbottom', '#innerbottom .grid-h', '.deepest').match();
36		},
37		invalid: function() {
38			$.matchWidth('grid-block').remove();
39			$.matchHeight('main').remove();
40			$.matchHeight('top-a').remove();
41			$.matchHeight('top-b').remove();
42			$.matchHeight('bottom-a').remove();
43			$.matchHeight('bottom-b').remove();
44			$.matchHeight('innertop').remove();
45			$.matchHeight('innerbottom').remove();
46		}
47	});
48
49	var pairs = [];
50
51	$.onMediaQuery('(min-width: 480px) and (max-width: 959px)', {
52		valid: function() {
53			$.matchHeight('sidebars', '.sidebars-2 #sidebar-a, .sidebars-2 #sidebar-b').match();
54			pairs = [];
55			$.each(['.sidebars-1 #sidebar-a > .grid-box', '.sidebars-1 #sidebar-b > .grid-box', '#top-a .grid-h', '#top-b .grid-h', '#bottom-a .grid-h', '#bottom-b .grid-h', '#innertop .grid-h', '#innerbottom .grid-h'], function(i, selector) {
56				for (var i = 0, elms = $(selector), len = parseInt(elms.length / 2); i < len; i++) {
57					var id = 'pair-' + pairs.length;
58					$.matchHeight(id, [elms.get(i * 2), elms.get(i * 2 + 1)], '.deepest').match();
59					pairs.push(id);
60				}
61			});
62		},
63		invalid: function() {
64			$.matchHeight('sidebars').remove();
65			$.each(pairs, function() { $.matchHeight(this).remove(); });
66		}
67	});
68
69	$.onMediaQuery('(max-width: 767px)', {
70		valid: function() {
71			var header = $('#header-responsive');
72			if (!header.length) {
73				header = $('<div id="header-responsive"/>').prependTo('#header');
74				$('#logo').clone().removeAttr('id').addClass('logo').appendTo(header);
75				$('.searchbox').first().clone().removeAttr('id').appendTo(header);
76				$('#menu').responsiveMenu().next().addClass('menu-responsive').appendTo(header);
77			}
78		}
79	});
80
81})(jQuery);

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.