PageSourceSearch

https://www.pic-piestany.sk/typo3conf/ext/kios_layoutpic/js/main.js?1638215936

js pic-piestany.sk collected 2026-10-02 11:26:11 UTC 11,494 bytes, 434 lines download raw bytes

1var KIOS =  KIOS || {};
2
3$(document).ready(function() {
4	
5	$('#content-tab-wrap').tabs('.content-pane', { tabs: '.content-tab' });
6
7	if($.cookieBar){
8		$.cookieBar({fixed: true});
9	}
10	
11	KIOS.masonry_home();
12	KIOS.masonry_list_dk();
13	KIOS.mobile();	
14	KIOS.dropDownMenu();
15	
16	KIOS.backToTop();
17	
18	$(window).load(function() {
19    	$('.kc-gallery').each(function( index ) {
20			var wraperHeight = $('.gal-box').outerHeight( true ) + $(this).children('.cl-h3').outerHeight( true ) + 20;	
21			KIOS.acordeon($(this), wraperHeight, 'kc-gallery');
22		});
23		if ($('.exp-box .kc-col-b').length > 0) {
24			$('.expand-box').css({ 'border-top' : '1px solid #e6e9e2'});
25	//		var wraperHeight = $('.gal-box').outerHeight( true ) + $(this).children('.cl-h3').outerHeight( true );	
26			KIOS.acordeon($('.exp-box'), 110, 'exp-box');		
27		}
28	});
29
30	$(window).scroll(function (event) {
31		
32		var scroll = $(window).scrollTop();
33		var heightHeader = $('#header').height() - $('.main-menu').height();
34		if(scroll > heightHeader) {
35			$(".home-legend").addClass('s-fix').removeClass('n-fix');
36		} else {
37			$(".home-legend").removeClass('s-fix').addClass('n-fix');
38		}
39	});
40
41	
42	KIOS.responsiveSlider($('#content-our-projects'));
43
44	$('.v-menu-combo select, .custSelect, #kc-year').customSelect();			
45
46	var lastItems = $(".list-wraper-pod li");
47	lastItems.slice(lastItems.length -2).addClass("pod-last");
48	
49	
50	$(".fajax").fancybox({
51		'width' : 983,
52		'height' : 700,
53		'autoScale' : false,
54		'transitionIn' : 'none',
55		'transitionOut' : 'none',
56		'type' : 'iframe'        
57	});	
58	
59	
60	$(".fancybox").fancybox({
61			'onStart' : function(){
62console.log('start');		
63            $("#fancybox-title-over").hide();
64        },
65		'onComplete' : function(){
66console.log('complete');		
67            $("#fancybox-title-over").hide();
68        },
69	});	
70	
71	//loader pre clanky
72	$("#element").introLoader({
73        animation: {
74            name: 'gifLoader',
75            options: {
76                ease: "easeInOutCirc",
77                style: 'light',
78                delayBefore: 500,
79                exitTime: 300
80            }
81        }
82    });
83
84});
85
86
87KIOS.backToTop = function() {
88	var offset = 300,
89		//browser window scroll (in pixels) after which the "back to top" link opacity is reduced
90		offset_opacity = 1200,
91		//duration of the top scrolling animation (in ms)
92		scroll_top_duration = 700,
93		//grab the "back to top" link
94		$back_to_top = $('.cd-top');
95
96	//hide or show the "back to top" link
97	$(window).scroll(function(){
98		( $(this).scrollTop() > offset ) ? $back_to_top.addClass('cd-is-visible') : $back_to_top.removeClass('cd-is-visible cd-fade-out');
99		if( $(this).scrollTop() > offset_opacity ) {
100			$back_to_top.addClass('cd-fade-out');
101		}
102	});
103
104	//smooth scroll to top
105	$back_to_top.on('click', function(event){
106		event.preventDefault();
107		$('body,html').animate({
108			scrollTop: 0 ,
109		 	}, scroll_top_duration
110		);
111	});
112}
113
114
115
116KIOS.dropDownMenu = function() {
117	
118	$( ".click-dropdown" ).click(function() { 
119		var tt = $(this).next();	
120			    
121	    if($(this).next().is(':visible')) {
122	        tt.hide();
123	    } else {
124	    	$( ".own-dropdown .dropdown-menu" ).hide();	
125	        tt.show();  	         
126	    } 
127	    return false;     
128	});
129	
130	$( "#searchform .btnSearch" ).click(function() {
131  		$( ".own-dropdown .dropdown-menu" ).hide();
132	});
133	
134	$('.cd-main-content, .banner').click(function() {
135		$( ".own-dropdown .dropdown-menu" ).hide();
136	});
137	
138	/*
139	$( ".click-dropdown" ).click(function() {
140console.log('dd');
141	  $(this).parent().find('ul').show();
142	});
143	
144
145	
146
147	
148	*/
149	/*
150	$( ".own-dropdown:first" ).toggle(function() {
151	  $('ul', this).stop(true,true).slideDown(100, 'linear');
152	}, function() {
153	  $('ul', this).stop().slideUp(100, 'linear');
154	});
155*/
156	/*
157	//hover
158	$('.own-dropdown').mouseenter(function() {
159		$('ul', this).stop(true,true).slideDown(100, 'linear');
160	}).mouseleave(function() {
161		$('ul', this).stop().slideUp(100, 'linear');
162	});
163	*/
164}	
165
166
167var iter = 1;
168KIOS.acordeon = function(obj, minHeight, objClass) {
169	
170	var el = obj;
171	var textheight = el.height();
172	var minheight = minHeight;
173
174	if (textheight > minHeight ) {
175		el.after('<div class="clear"></div><div class="btn-acordeon iter'+iter+'"><span class="fa fa-angle-up fa-angle-down"></span><span class="btn-acord-text">
175Zobraziť viac</span></div>');
176		el.css({ 'overflow':'hidden' });
177	} 
178
179	el.height(minheight);
180    $('.iter'+iter+'').click(function() {
181	    
182	    var btnAc = $(this);
183    
184	    //pozicia expand-bloku po kliknuti 
185	    var scrollPosition = el.position();
186	    var scrollMargin = parseInt( el.css("marginTop") );   
187	    var headerHeight = $('#header').outerHeight( true );
188	    if ($('#header-mobile').is(":visible")) {
189		    var headerHeight = $('#header-mobile').outerHeight( true );
190
191	    }
192	    
193	    
194	//	$(window).scrollTop(scrollPosition.top + 150);    
195		$("html, body").animate({ scrollTop: scrollPosition.top + headerHeight  + scrollMargin}, 'slow');
196		
197		if ($(this).hasClass('acord-show')) {
198			var aa = $(this).parent().parent();			
199            obj.animate({	            
200				height: minheight + 'px'
201			}, 500, function() {				
202				btnAc.removeClass('acord-show');
203                btnAc.find('span.fa').addClass('fa-angle-down');
204                btnAc.find('span.btn-acord-text').text('Zobraziť viac');
205			});
206		} else {
207			obj.animate({
208				height: textheight + 'px'
209			}, 500, function() {				
210				btnAc.addClass('acord-show');
211                btnAc.find('span.fa').removeClass('fa-angle-down');
212                btnAc.find('span.btn-acord-text').text('Zobraziť menej');
213			});
214		}
215	});
216	iter++;
217	
218}
219
220
221KIOS.masonry_home = function() {
222	var $container = $('.box-wraper');
223	var gutter = 30;
224	var min_width = 300;
225	$container.imagesLoaded( function(){
226		$container.masonry({
227			itemSelector : '.boxes',
228			gutterWidth: gutter,
229			isAnimated: true,
230			columnWidth: function( containerWidth ) {
231				var box_width = (((containerWidth - 2*gutter)/3) | 0) ;
232
233				if (box_width < min_width) {
234				box_width = (((containerWidth - gutter)/2) | 0);
235				}
236
237				if (box_width < min_width) {
238				box_width = containerWidth;
239				}
240
241				$('.boxes').width(box_width);
242
243				return box_width;
244			}
245		});
246	});
247}
248
249KIOS.masonry_list_dk = function() {
250	var $container = $('.list-wraper-dk');
251	var gutter = 25;
252	var min_width = 200;
253	$container.imagesLoaded( function(){
254		$container.masonry({
255			itemSelector : '.k-box',
256			gutterWidth: gutter,
257			isAnimated: true,
258			columnWidth: function( containerWidth ) {
259				var box_width = (((containerWidth - 3*gutter)/4) | 0) ;
260				if (box_width < min_width) {
261					box_width = (((containerWidth - 2*gutter)/3) | 0);
262				}
263				if (box_width < min_width) {
264					box_width = (((containerWidth - gutter)/2) | 0);
265				}
266				if (box_width < min_width) {
267					box_width = containerWidth;
268				}
269				$('.k-box').width(box_width);
270				return box_width;
271			}
272		});
273	});
274}
275
276KIOS.masonry_list_pod = function() {
277	var $container = $('.list-wraper-pod');
278	var gutter = 25;
279	var min_width = 300;
280
281	$container.imagesLoaded( function(){
282		$container.masonry({
283			itemSelector : '.pod-n',
284			gutterWidth: gutter,
285			isAnimated: true,
286			columnWidth: function( containerWidth ) {
287				var box_width = (((containerWidth - 3*gutter)/4) | 0) ;
288				if (box_width < min_width) {
289					box_width = (((containerWidth - 2*gutter)/3) | 0);
290				}
291				if (box_width < min_width) {
292					box_width = (((containerWidth - gutter)/2) | 0);
293				}
294				if (box_width < min_width) {
295					box_width = containerWidth;
296				}
297				$('.pod-n').width(box_width);
298				return box_width;
299			}
300		});
301	});
302}
303
304
305KIOS.responsiveSlider = function(obj) {
306	obj.slick({
307		dots: true,
308		infinite: true,
309		speed: 1000,
310		autoplay: true,
311		autoplaySpeed: 40000,
312		slidesToShow: 3,
313		slidesToScroll: 3,
314		prevArrow: '<button type="button" data-role="none" class="slick-prev"><img src="typo3conf/ext/kios_layoutpic/img/sliderArrowLeft.png" class="img-responsive" alt="left"></button>',
315		nextArrow: '<button type="button" data-role="none" class="slick-next"><img src="typo3conf/ext/kios_layoutpic/img/sliderArrowRight.png" class="img-responsive" alt="right"></button>',
316		responsive: [
317			{
318				breakpoint: 1024,
319				settings: {
320					slidesToShow: 3,
321					slidesToScroll: 3,
322					infinite: true,
323					dots: true
324				}
325			},
326			{
327				breakpoint: 600,
328				settings: {
329					slidesToShow: 2,
330					slidesToScroll: 2
331				}
332			},
333			{
334				breakpoint: 480,
335				settings: {
336					slidesToShow: 1,
337					slidesToScroll: 1
338				}
339			}
340		]
341	});
342}
343
344
345KIOS.mobile = function() {
346	var $lateral_menu_trigger = $('#cd-menu-trigger'),
347		$content_wrapper = $('.cd-main-content'),
348		$navigation = $('#header-mobile');
349
350	//open-close lateral menu clicking on the menu icon
351	$lateral_menu_trigger.on('click', function(event){
352		event.preventDefault();
353
354		$lateral_menu_trigger.toggleClass('is-clicked');
355		$navigation.toggleClass('lateral-menu-is-open');
356		$content_wrapper.toggleClass('lateral-menu-is-open').one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend', function(){
357			// firefox transitions break when parent overflow is changed, so we need to wait for the end of the trasition to give the body an overflow hidden
358			$('body').toggleClass('overflow-hidden');
359		});
360		$('#cd-lateral-nav').toggleClass('lateral-menu-is-open');
361
362		//check if transitions are not supported - i.e. in IE9
363		if($('html').hasClass('no-csstransitions')) {
364			$('body').toggleClass('overflow-hidden');
365		}
366	});
367
368	//close lateral menu clicking outside the menu itself
369	$content_wrapper.on('click', function(event){
370		if( !$(event.target).is('#cd-menu-trigger, #cd-menu-trigger span') ) {
371			$lateral_menu_trigger.removeClass('is-clicked');
372			$navigation.removeClass('lateral-menu-is-open');
373			$content_wrapper.removeClass('lateral-menu-is-open').one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend', function(){
374				$('body').removeClass('overflow-hidden');
375			});
376			$('#cd-lateral-nav').removeClass('lateral-menu-is-open');
377			//check if transitions are not supported
378			if($('html').hasClass('no-csstransitions')) {
379				$('body').removeClass('overflow-hidden');
380			}
381
382		}
383	});
384
385	//open (or close) submenu items in the lateral menu. Close all the other open submenu items.
386	$('.item-has-children').children('a').on('click', function(event){
387		event.preventDefault();
388		$(this).toggleClass('submenu-open').next('.sub-menu').slideToggle(200).end().parent('.item-has-children').siblings('.item-has-children').children('a').removeClass('submenu-open').next('.sub-menu').slideUp(200);
389	});
390
391	//ak je aktivna poloyka submenu necha otvorene submenu
392	if ($('.cur').length > 0) {
393		$('.cur').parent().parent().prev().toggleClass('submenu-open').next('.sub-menu').slideToggle(200).end().parent('.item-has-children').siblings('.item-has-children').children('a').removeClass('submenu-open').next('.sub-menu').slideUp(200);
394	}
395};
396
397
398
399/*
400$(document).ready(function() {
401	if ($(document.body).hasClass('uvod')) {
402		setTimeout(function() {
403			Shadowbox.open({
404				content:    'http://www.youtube.com/v/EmO-glWpLbI?autoplay=1&rel=0',
405				player:     "iframe",
406				title:      "",
407				height:     390,
408				width:      640
409			});
410		}, 1000);
411	}
412});
413*/
414
415
416
417
418
419/*
420window.addEvent('domready', function() {
421  if ($('popup-wrap')) {
422    (function(){
423		$('popup-wrap').destroy()
424		$('popup').destroy();
425	 }).delay(10000);
426  }
427});
428
429KIOS.closePopup = function(obj,obj2) {
430	$(obj).setStyle('display', 'none');
431	$(obj2).setStyle('display', 'none');
432	return false;
433}
434 */

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.