PageSourceSearch

https://krakow.wiki/wp-content/themes/wikilogy/include/assets/js/wikilogy.js?ver=7.1.2

js krakow.wiki collected 2026-10-02 11:42:03 UTC 7,118 bytes, 275 lines download raw bytes

1/*======
2*
3* Wikilogy Scripts
4*
5======*/
6(function($){
7	'use strict';
8
9	/*====== Admin Bar ======*/
10	$(function(){
11		var controlwpadminbar = $("#wpadminbar").is("div");
12		if(controlwpadminbar == "") {
13		} else {
14			var controlwpadminbarh = $("#wpadminbar").height();
15
16			var headerHeight = $(".header").height();
17			$(".header").css('top',controlwpadminbarh + 'px');
18		}
19	});
20
21
22
23	/*====== Loader ======*/
24	setTimeout(function(){
25		$('body').addClass('loaded');
26	}, 2000);
27
28
29
30	/*====== Header Hover Elements ======*/
31	$(function () {
32		$('.header .elements .item.hover-item .icon').each(function() {
33			$(this).on('click', 'i', function(){
34				$(this).parent().parent().addClass('open').siblings().removeClass('open');
35			});
36		});
37
38		$('.header .elements .item.hover-item .icon').each(function() {
39			$(this).on('click', '.close-icon', function(){
40				$(this).parent().parent().removeClass('open');
41			});
42		});
43	});
44
45
46
47	/*====== Header Sidebar ======*/
48	$(document).on('click', '.header .elements .header-sidebar .content .close-button, .header .elements .header-sidebar.open .overlay', function(){
49		$('.header .elements .item.hover-item.header-sidebar').removeClass('open');
50	});
51
52	$(function() {
53		if($('.header-sidebar li.dropdown .dropdown-menu').length){
54			$('.header-sidebar li.dropdown').append('<i class="fas fa-chevron-down"></i>');
55			$('.header-sidebar li.dropdown .fa-chevron-down').on('click', function() {
56				$(this).prev('.dropdown-menu').slideToggle(500);
57			});
58		}
59
60		$('.header-sidebar .content-wrapper').scrollbar();
61	});
62
63
64
65	/*====== Mobile Header ======*/
66	$(document).on('click', '.mobile-menu-icon', function(){
67		$('.mobile-header-sidebar').addClass('open');
68	});
69
70	$(document).on('click', '.mobile-header-sidebar.header-sidebar.open .overlay, .mobile-header-sidebar.header-sidebar .content .close-button', function(){
71		$('.mobile-header-sidebar').removeClass('open');
72	});
73
74
75
76	/*====== Toolbar ======*/
77	$(function() {
78		$('.wikilogy-toolbar .comments').click(function() {
79			var target = $("#comments");
80			$('html,body').animate({
81				scrollTop: target.offset().top
82			}, 1000);
83			return false;
84		});
85
86		var toolbarHeight = $('.wikilogy-toolbar ul').height();
87		$('.wikilogy-toolbar').css('height', toolbarHeight + 'px');
88
89		$('.wikilogy-toolbar .print').click(function() {
90			window.print();
91			return false;
92		});
93
94		$('.wikilogy-toolbar ul li .icon .plus').on('click', function () {
95			$('.single-content .post-content').animate({'font-size': '+=1'});
96		});
97
98		$('.wikilogy-toolbar ul li .icon .minus').on('click', function () {
99			$('.single-content .post-content').animate({'font-size': '-=1'});
100		});
101	});
102
103
104
105	/*====== Title ======*/
106	$(function () {
107		$('.wikilogy-title.style-1,.wikilogy-title.style-2,.wikilogy-title.style-3').each(function() {
108			var shadowHeight = $(this).find(".shadow-title").height();
109			$(this).css('min-height', shadowHeight + 'px');
110		});
111	});
112
113
114
115	/*====== CS Select ======*/
116	$(document).ready(function(){
117		(function() {
118			[].slice.call( document.querySelectorAll( 'select.cs-select' ) ).forEach( function(el) {	
119				new SelectFx(el);
120			} );
121		})();
122	});
123
124
125
126	/*====== Custom Slick ======*/
127	function wikilogySlider() {
128		$('.wikilogy-slider').each( function() {
129			var slick = $(this),
130				autoplay = $(this).data('autoplay'),
131				autospeed = $(this).data('autospeed'),
132				arrows = $(this).data('arrows'),
133				fade = $(this).data('fade'),
134				centeritem = $(this).data('centeritem'),
135				centerpad = $(this).data('centerpad')+'px',
136				dots = $(this).data('dots'),
137				item = $(this).data('item'),
138				slidetoitem = $(this).data('slidetoitem'),
139				speed = $(this).data('speed'),
140				asNavFor = $(this).data('asNavFor'),
141				focusselect = $(this).data('focusselect'),
142				rtl = $(this).data('rtl'),
143				prevarrow = $(this).data('prevarrow'),
144				nextarrow = $(this).data('nextarrow'),
145				infinite = $(this).data('infinite');
146
147			slick.slick({
148				autoplay: autoplay,
149				autoplaySpeed: autospeed,
150				arrows: arrows,
151				dots: dots,
152				fade: fade,
153				centerMode: centeritem,
154				centerPadding: centerpad,
155				slidesToShow: item,
156				slidesToScroll: slidetoitem,
157				speed: speed,
158				asNavFor: asNavFor,
159				focusOnSelect: focusselect,
160				rtl: rtl,
161				infinite: infinite,
162				prevArrow: prevarrow,
163				nextArrow: nextarrow,
164				responsive: [
165					{
166						breakpoint: 1280,
167						settings: {
168							slidesToShow: item < 5 ? item: 4,
169						}
170					},
171					{
172						breakpoint: 1198,
173						settings: {
174							slidesToShow: item < 4 ? item: 3,
175						}
176					},
177					{
178						breakpoint: 991,
179						settings: {
180							slidesToShow: item < 3 ? item: 2,
181						}
182					},
183					{
184						breakpoint: 767,
185						settings: {
186							slidesToShow: item < 2 ? item: 1,
187						}
188					}
189				]
190			});
191		});
192	}
193	wikilogySlider();
194
195
196
197	/*====== Tooltip ======*/
198	$(function () {
199		$('[data-toggle="tooltip"]').tooltip();
200	});
201
202
203
204	/*====== Scroll Link ======*/
205	$(function () {
206		$('a.gt-ref-tooltip[href*="#"]:not([href="#"]), .content-index ul li a').click(function() {
207			if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
208				var target = $(this.hash);
209				target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
210				if (target.length) {
211					$('html, body').animate({
212						scrollTop: target.offset().top
213					}, 1000);
214					return false;
215				}
216			}
217		});
218	});
219
220
221
222	/*====== Search Form ======*/
223	$(function(){
224		$(window).resize(function(){
225			var windowy = $(window).height();
226			$('.wikilogy-search-form.style-3 .wikilogy-slider .item').css('height',windowy + 'px');
227			$('.wikilogy-search-form.style-3').css('height',windowy + 'px');
228		}).resize();
229	});
230
231
232
233	/*====== Blog Tabs ======*/
234	$('.blog-tabs .tab-content .tab-pane:first-child').addClass('active show');
235	$('.blog-tabs ul.tab-list li:nth-child(2) > a').addClass('active show');
236
237
238
239	/*====== Content Table ======*/
240	$(function () {
241		$(document).on('click', '.content-index .close-button', function(){
242			$('.content-index').addClass('closed');
243		});
244	
245		$(document).on('click', '.closed .close-button', function(){
246			$('.content-index').removeClass('closed');
247		});
248
249		if ($(window).height() < 450) {
250			var contentIndexHeight = 150 + 55 + 20 + 40;
251			$('.content-index').css('height', contentIndexHeight + 'px');
252		} else {
253			var contentIndexHeight = $('.content-index ul').height() + 55 + 20 + 40;
254			$('.content-index').css('height', contentIndexHeight + 'px');
255		}
256
257		$('.content-index ul').scrollbar();
258	});
259
260
261
262	/*====== Toolbar ======*/
263	$(function () {
264		$(document).on('click', '.wikilogy-toolbar .close-button', function(){
265			$('.wikilogy-toolbar').addClass('closed');
266		});
267	
268		$(document).on('click', '.wikilogy-toolbar.closed .close-button', function(){
269			$('.wikilogy-toolbar').removeClass('closed');
270		});
271	});
272
273
274
275} )( 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.