PageSourceSearch

https://www.cdi.cz/assets/javascripts/main.js?time=2409262109

js cdi.cz collected 2026-09-24 19:07:25 UTC 21,114 bytes, 3 lines download raw bytes

1"use strict";(function($){var lastSendedForm;$.nette.ext("snippetsReady",{before:function(xhr,settings){if(!settings.nette){return true}var question=settings.nette.el.data("confirm");if(question){return confirm(question)}},start:function(xhr,settings){lastSendedForm=settings.nette?settings.nette.form:null;$("body").css("cursor","wait")},complete:function(){$("body").css("cursor","auto")},success:function(response){$("body").css("cursor","auto");if(response.jajax){}if(response.closeModal){$("div.modal").modal("hide")}if(response.callAjaxLink){$.nette.ajax({url:response.callAjaxLink})}var snippets=[];for(var x in response.snippets){snippets.push(x)}},error:function(){}})})($);function openModal(title,href,closeModalCallback){var $modal=$('		<div class="modal" role="dialog">			<div class="modal-dialog modal-lg" style="width:100%" role="document">				<div class="modal-content">					<div class="modal-header">						<button type="button" tabindex="-1" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>						<h4 class="modal-title">'+title+'</h4>					</div>					<div class="modal-body">						<iframe class="embed-responsive-item" frameborder=0 src="'+href+'" style="width:100%;height:75vh;display:block;"/>					</div>				</div>			</div>		</div>		').on("hidden.bs.modal",closeModalCallback);$("body").append($modal);$modal.modal();return $modal}$(document).on("click","a.iframe",function(event){event.preventDefault();var $this=$(this);var title=$this.data("title")||$this.html();var href=this.href,closeHandler=$this.data("close-handler");var $modal;function _closeModal(){$modal.remove();if(closeHandler){$.nette.ajax({url:closeHandler})}}$modal=openModal(title,href,_closeModal);return false});$(function(){function initializePopovers(){$('[data-toggle="popover"]').popover({trigger:"click",placement:"top"}).on("shown.bs.popover",function(){$('[data-toggle="popover"]').not(this).popover("hide")})}initializePopovers();function hidePopovers(e){var target=e.target;if(!$(target).closest(".popover").length&&!$(target).closest('[data-toggle="popover"]').length){$('[data-toggle="popover"]').popover("hide")}}$(document).on("click touchstart",hidePopovers);$(document).ajaxComplete(function(){initializePopovers();$('[data-toggle="popover"]').popover("hide");$(".popover").hide()})});$(function(){$.nette.init();$("body").addClass("js")});$(function(){$(".zoom").hover(function(){$(this).addClass("transition")},function(){$(this).removeClass("transition")})});$.fn.enterKey=function(fnc){return this.each(function(){$(this).on("keypress",function(ev){var keycode=(ev.keyCode?ev.keyCode:ev.which);if(keycode==13){fnc.call(this,ev)}})})};$(window).scroll(function(){var scrollTop=$(window).scrollTop();if(scrollTop!==undefined&&scrollTop>1){$(".page-header").addClass("is-sticky")}else{$(".page-header").removeClass("is-sticky")}});(function(){window.fillRecaptchaV3=function(event,siteKey,byAjax){var _a;event.preventDefault();var target=event.target;var $form=$(target).closest("form");if($form.length){(_a=window.grecaptcha)===null||_a===void 0?void 0:_a.ready(function(){var _a;(_a=window.grecaptcha)===null||_a===void 0?void 0:_a.execute(siteKey,{action:"submit"}).then(function(token){var tokenInput=$form.find("input[name=token]");if(tokenInput.length){tokenInput.val(token);if(window.Nette&&window.Nette.validateForm(target)){var formType=$form.find('input[name="type"]').val()||"unknown";window.dataLayer=window.dataLayer||[];window.dataLayer.push({event:"formSubmission",formType:formType,formPosition:"Footer"});if(byAjax){if($form.netteAjax){$form.netteAjax(event)}else{console.warn("netteAjax is not defined on $form")}}else{$form.submit()}}}})})}}});$(function(){$(document).on("click",".openModal",function(e){e.preventDefault();$("#myModal").fadeIn();$("#myModal").find("form").show();$("#myModal").find(".sent-hide").show();$("#myModal").find(".alert").hide()});$(document).on("click",".close",function(){$("#myModal").fadeOut()});$(document).on("click",function(e){if($(e.target).is("#myModal")){$("#myModal").fadeOut()}});$(document).ajaxComplete(function(event,xhr,settings){if(xhr.responseText.includes("contactForm")){$("#myModal").fadeIn();$("#myModal").find("form").hide();$("#myModal").find(".sent-hide").hide()}})});$(function(){$(".row").on("click","h3",function(){$(this).next("p").slideToggle()})});function toggleBackIconClass(){var back_icon=document.querySelector("#back-to-top");
1if(back_icon){var viewportHeight=window.innerHeight;if(window.scrollY*2>viewportHeight){back_icon.classList.add("active")}else{back_icon.classList.remove("active")}}}window.addEventListener("scroll",toggleBackIconClass);document.addEventListener("DOMContentLoaded",toggleBackIconClass);$(function(){$("a[href^='#']:not(#back-to-top)").on("click touchstart",function(event){event.preventDefault();var targetId=$(this).attr("href");$(".navbar-collapse").collapse("hide");$(".navbar-nav a").removeClass("active");$(this).addClass("active");if(targetId){var targetElement=$(targetId);if(targetElement.length){$("html, body").animate({scrollTop:targetElement.offset().top-82},50)}else{console.error("Element with ID '".concat(targetId,"' not found."))}}else{console.error("Invalid 'href' attribute on clicked element.")}})});var animatedYears=new Set();function isElementInViewport(el){var rect=el.getBoundingClientRect();return(rect.top<=window.innerHeight&&rect.bottom>=0)}function animateYearCount(el,index){var foundationYear=1994;var currentYear=new Date().getFullYear();var target=currentYear-foundationYear;var duration=index===0?1500:3000;var stepTime=Math.max(20,Math.floor(duration/target));var count=0;var counter=setInterval(function(){count++;el.textContent=count.toString();if(count>=target){clearInterval(counter)}},stepTime)}function checkVisibility(){var elements=document.querySelectorAll(".animate-title");var yearElements=document.querySelectorAll('[data-id="years-count"]');elements.forEach(function(el){if(el instanceof HTMLElement){if(isElementInViewport(el)){el.classList.add("visible")}else{}}});yearElements.forEach(function(el,index){if(el instanceof HTMLElement&&isElementInViewport(el)&&!animatedYears.has(el)){animatedYears.add(el);animateYearCount(el,index)}})}window.addEventListener("scroll",checkVisibility);window.addEventListener("resize",checkVisibility);document.addEventListener("DOMContentLoaded",checkVisibility);var observer=new MutationObserver(checkVisibility);observer.observe(document.body,{childList:true,subtree:true});
2/*! js-cookie v3.0.5 | MIT */
3(function(global,factory){typeof exports==="object"&&typeof module!=="undefined"?module.exports=factory():typeof define==="function"&&define.amd?define(factory):(global=typeof globalThis!=="undefined"?globalThis:global||self,(function(){var current=global.Cookies;var exports=global.Cookies=factory();exports.noConflict=function(){global.Cookies=current;return exports}})())})(this,(function(){function assign(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){target[key]=source[key]}}return target}var defaultConverter={read:function(value){if(value[0]==='"'){value=value.slice(1,-1)}return value.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(value){return encodeURIComponent(value).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function init(converter,defaultAttributes){function set(name,value,attributes){if(typeof document==="undefined"){return}attributes=assign({},defaultAttributes,attributes);if(typeof attributes.expires==="number"){attributes.expires=new Date(Date.now()+attributes.expires*86400000)}if(attributes.expires){attributes.expires=attributes.expires.toUTCString()}name=encodeURIComponent(name).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var stringifiedAttributes="";for(var attributeName in attributes){if(!attributes[attributeName]){continue}stringifiedAttributes+="; "+attributeName;if(attributes[attributeName]===true){continue}stringifiedAttributes+="="+attributes[attributeName].split(";")[0]}return(document.cookie=name+"="+converter.write(value,name)+stringifiedAttributes)}function get(name){if(typeof document==="undefined"||(arguments.length&&!name)){return}var cookies=document.cookie?document.cookie.split("; "):[];var jar={};for(var i=0;i<cookies.length;i++){var parts=cookies[i].split("=");var value=parts.slice(1).join("=");try{var found=decodeURIComponent(parts[0]);jar[found]=converter.read(value,found);if(name===found){break}}catch(e){}}return name?jar[name]:jar}return Object.create({set:set,get:get,remove:function(name,attributes){set(name,"",assign({},attributes,{expires:-1}))},withAttributes:function(attributes){return init(this.converter,assign({},this.attributes,attributes))},withConverter:function(converter){return init(assign({},this.converter,converter),this.attributes)}},{attributes:{value:Object.freeze(defaultAttributes)},converter:{value:Object.freeze(converter)}})}var api=init(defaultConverter,{path:"/"});return api}));(function($){$(".jquery-accordion-menu .submenu").parent().click(function(){var submenu=$(this).find("> .submenu");if(submenu.css("display")=="block"){submenu.css("display","none")}else{submenu.css("display","block")}})})($);$(function(){$("div.alert-skimu").each(function(ix,a){var id=$(a).data("id");$(a).find(".close").on("click",function(){Cookies.set(id,true,{expires:1})})})});var handleGalleryKeys=function(e){var modalId=$(".modal.image-gallery");switch(e.which){case 37:if((modalId.data("bs.modal")||{})._isShown&&$("#show-previous-image").is(":visible")){$("#show-previous-image").trigger("click")}break;case 39:if((modalId.data("bs.modal")||{})._isShown&&$("#show-next-image").is(":visible")){$("#show-next-image").trigger("click")}break;default:return}e.preventDefault()};$(function(){loadGallery(true,"a.thumbnail");function disableButtons(counter_max,counter_current){$("#show-previous-image, #show-next-image").show();if(counter_max===counter_current){$("#show-next-image").hide()}else{if(counter_current===1){$("#show-previous-image").hide()}}}function loadGallery(setIDs,setClickAttr){var current_image,selector,counter=0;$("#show-next-image, #show-previous-image").click(function(){if($(this).attr("id")==="show-previous-image"){current_image--}else{current_image++}selector=$('[data-image-id="'+current_image+'"]');updateGallery(selector)});function updateGallery(selector){var $sel=selector;current_image=$sel.data("image-id");$("#image-gallery-title").text($sel.data("title"));$("#image-gallery-image").attr("src",$sel.data("image"));disableButtons(counter,$sel.data("image-id"))}if(setIDs==true){$("[data-image-id]").each(function(){counter++;$(this).attr("data-image-id",counter)})}$(setClickAttr).on("click",function(){updateGallery($(this))})}});$(document).on("shown.bs.modal",".modal.image-gallery",function(){$(document).on("keydown",handleGalleryKeys)});$(document).on("hidden.bs.modal",".modal.image-gallery",function(){$(document).off("keydown",handleGalleryKeys)});var carousel=document.querySelector(".carousel");var nextButton=document.querySelector(".next");var prevButton=document.querySelector(".prev");var images=document.querySelectorAll(".carousel img");var allImages;var index=1;var totalImages=0;var isTransitioning=false;var autoSlideInterval;function updateCarousel(){if(!carousel){return}
3carousel.style.transition="transform 0.5s ease-in-out";carousel.style.transform="translateX(-".concat(index*100,"%)")}function nextSlide(){if(isTransitioning||!carousel){return}isTransitioning=true;index++;updateCarousel();resetAutoSlide();setTimeout(function(){if(!carousel){return}if(index>=totalImages-1){index=1;carousel.style.transition="none";carousel.style.transform="translateX(-".concat(index*100,"%)")}isTransitioning=false},500)}function prevSlide(){if(isTransitioning||!carousel){return}isTransitioning=true;index--;updateCarousel();resetAutoSlide();setTimeout(function(){if(!carousel){return}if(index<=0){index=totalImages-2;carousel.style.transition="none";carousel.style.transform="translateX(-".concat(index*100,"%)")}isTransitioning=false},500)}function resetAutoSlide(){clearInterval(autoSlideInterval);autoSlideInterval=setInterval(nextSlide,3000)}if(carousel&&images.length>0){var firstClone=images[0].cloneNode(true);var lastClone=images[images.length-1].cloneNode(true);carousel.appendChild(firstClone);carousel.insertBefore(lastClone,images[0]);allImages=document.querySelectorAll(".carousel img");totalImages=allImages.length;carousel.style.transform="translateX(-".concat(index*100,"%)");nextButton===null||nextButton===void 0?void 0:nextButton.addEventListener("click",nextSlide);prevButton===null||prevButton===void 0?void 0:prevButton.addEventListener("click",prevSlide);resetAutoSlide()}$(function(){$(".toogle-source").on("click",function(){if($(this).hasClass("active")){$(this).removeClass("active")}else{$(this).addClass("active")}$(this).parent().find("div.toogle-target[data-toogle-target='"+$(this).data("toogle-source")+"']").slideToggle("slow",function(){if($(this).hasClass("active")){$(this).removeClass("active")}else{$(this).addClass("active")}})})});$(function(){var hash="";if(window.location.hash){hash=window.location.hash.slice(1);$(".pageTabs-nav a").removeClass("active");$(".pageTabs-tab").hide();$(".pageTabs-nav a[data-page-tab="+hash+"]").addClass("active");$(".pageTabs-tab[data-page-tab="+hash+"]").show()}$(".pageTabs-nav").on("click","a",function(){var tab_source=$(this).attr("data-page-tab");var tab_target=$(".pageTabs-tab[data-page-tab="+tab_source+"]");$(".pageTabs-nav a").removeClass("active");$(".pageTabs-tab").hide();$(this).addClass("active");tab_target.show();if(tab_source){window.location.hash=tab_source}})});$(function(){$(".prices-card article > a").mouseenter(function(){$(this).css("background-image","none");$(this).closest("article").find(".item-content").css("background-color","transparent")});$(".prices-card article > a").mouseleave(function(){$(this).closest("article").find(".item-content").css("background-color","rgba(170, 190, 200, 0.8)");var imageUrl=$(this).find("img").attr("src");if(imageUrl){$(this).css("background-image","url("+imageUrl+")")}});$(".prices-card article").each(function(){var $firstAnchor=$(this).find("a:first");var imageUrl=$firstAnchor.find("img").attr("src");if(imageUrl){$firstAnchor.css("background-image","url("+imageUrl+")")}})});$(function(){$("article.cinemas .link-2-more").on("click",function(e){e.preventDefault();$("#description-"+$(this).closest("article").attr("id")).slideToggle()})});function initDatepicker(){$(".datepicker").datepicker({format:"yyyy-mm-dd",inline:true,zIndex:2000,autoHide:true})}function dzusikkMenuItem(id){var searchParams=new URLSearchParams(window.location.search);if(!searchParams.has("kklive")){return}if(searchParams.get("kklive")!="1"){return}var message=JSON.stringify({message:"controlsMenu",id:id});if(window.parent&&window.parent.postMessage){window.parent.postMessage(message,"*")}}function initDzusikkMessages(){function changetheme(body,theme){body.classList.remove("wb");body.classList.remove("bw");body.classList.remove("pink");body.classList.remove("default");if(theme){body.classList.add(theme)}}window.addEventListener("message",function(event){if(event.data.message=="fontSize"){document.getElementsByTagName("html")[0].style.fontSize=event.data.fontSize+"px";document.getElementsByTagName("body")[0].style.fontSize=event.data.fontSize+"px"}if(event.data.message=="theme"){changetheme(document.body,event.data.theme)}},false)}$(function(){var firstImageLink=$(".gallery a[data-toggle='lightbox']").first();firstImageLink.attr("data-bs-toggle","lightbox");firstImageLink.attr("data-bs-gallery","gallery");if(firstImageLink.length>0){var href=firstImageLink.attr("href");if(typeof href!=="undefined"){console.log(href);$("#lightbox-btn").attr("href",href)}}});$(function(){var stopped=false;$("#captioned-gallery .buttons button.stop").click(function(){if(stopped){return}var count=$("figure.slider figure").length;var slider=$("figure.slider");var slideWidth=parseInt(slider.css("width"))/count;stopped=true;$("#captioned-gallery .buttons button.stop").hide();$("#captioned-gallery .buttons button.run").show();function tryStop(){var left=parseInt(slider.css("left"));if(!(left%slideWidth)){slider.css({"animation-play-state":"paused"});clearTimeout(t)}}tryStop();var t=setInterval(function(){if(!stopped){clearTimeout(t);return}tryStop()},500)});$("#captioned-gallery .buttons button.run").click(function(){if(!stopped){return}stopped=false;var slider=$("figure.slider");slider.css("animation-play-state","running");$("#captioned-gallery .buttons button.run").hide();$("#captioned-gallery .buttons button.backward").hide();$("#captioned-gallery .buttons button.forward").hide();$("#captioned-gallery .buttons button.stop").show()});$("#captioned-gallery .buttons button.backward").click(function(){var slider=$("figure.slider");if(!stopped){return}});$("#captioned-gallery .buttons button.forward").click(function(){var slider=$("figure.slider");if(!stopped){return}})});$(function(){var multipleCardCarousel=document.querySelector("#carouselExampleC
3ontrols");if(multipleCardCarousel!==null){if(window.matchMedia("(min-width: 768px)").matches){var carousel=new bootstrap.Carousel(multipleCardCarousel,{interval:false});var carouselWidth=$(".carousel-inner")[0].scrollWidth;var cardWidth=$(".carousel-item").width()||0;var scrollPosition=0;$("#carouselExampleControls .carousel-control-next").on("click",function(){if(scrollPosition<carouselWidth-cardWidth*4){scrollPosition+=cardWidth;$("#carouselExampleControls .carousel-inner").animate({scrollLeft:scrollPosition},600)}});$("#carouselExampleControls .carousel-control-prev").on("click",function(){if(scrollPosition>0){scrollPosition-=cardWidth;$("#carouselExampleControls .carousel-inner").animate({scrollLeft:scrollPosition},600)}})}else{$(multipleCardCarousel).addClass("slide")}}});$(function(){var searchCont=$("#search-cont");var searchButton=$("#search-addon");var isInputVisible=false;searchButton.on("click",function(e){if(!isInputVisible){e.preventDefault();searchCont.animate({width:"200px",opacity:1},300,function(){searchCont.find("input").focus()});isInputVisible=true}})});document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".navbar .dropdown").forEach(function(everydropdown){everydropdown.addEventListener("hidden.bs.dropdown",function(){this.querySelectorAll(".submenu").forEach(function(everysubmenu){if(window.innerWidth<992){everysubmenu.style.display="none"}});return false})});document.querySelectorAll(".dropdown-menu .dropdown-item").forEach(function(element){element.addEventListener("click",function(e){var nextEl=(this.nextElementSibling);if(nextEl&&nextEl.classList.contains("submenu")&&window.innerWidth<992){e.preventDefault();e.stopPropagation();if(nextEl.style.display=="block"){nextEl.style.display="none"}else{nextEl.style.display="block"}return false}})})});document.addEventListener("DOMContentLoaded",function(){var lastScrollTop=0;var navbar=document.querySelector(".classic-menu");var navCollapse=document.querySelector(".navbar-collapse");if(!navbar){return}var navbarHeight=navbar.offsetHeight;window.addEventListener("scroll",function(){var currentScroll=window.pageYOffset||document.documentElement.scrollTop;if(currentScroll>0){navbar.classList.add("navbar-scrolled")}else{navbar.classList.remove("navbar-scrolled")}if(navCollapse&&navCollapse.classList.contains("show")){return}if(currentScroll>lastScrollTop&&currentScroll>navbarHeight){navbar.classList.remove("navbar-scroll-show");navbar.classList.add("navbar-scroll-hide")}else{if(currentScroll<lastScrollTop){navbar.classList.remove("navbar-scroll-hide");navbar.classList.add("navbar-scroll-show")}}lastScrollTop=currentScroll<=0?0:currentScroll})});$(function(){$(".navbar").on("click",".nav-link",function(){$(this).addClass("active")})});$(function(){$(document).on("change",".ajax-select",function(){var selectedOption=$(this).children("option:selected");var url=selectedOption.val();$.nette.ajax({url:url,type:"GET",success:function(data,textStatus,xhr){var snippetContent=data.snippets["snippet--content"];$("#snippet--content").html(snippetContent)},error:function(xhr,status,error){}})})});var buttons_acc=$(".accommodation-button");$(document).on("click",".accommodation-button",function(e){e.preventDefault();var container=$(".accommodation-container");var $this=$(e.currentTarget);console.log($this);console.log(container);if(!$this.hasClass("current")){buttons_acc.removeClass("current");$this.addClass("current");container.fadeOut("400",function(){$(".accommodation-item").removeClass("current");$('[data-type="'+$this.data("button")+'"]').addClass("current");container.fadeIn()})}});(function(d,s,id){var js;var fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)&&fjs&&fjs.parentNode){js=d.createElement(s);js.id=id;js.src="https://weatherwidget.io/js/widget.min.js";fjs.parentNode.insertBefore(js,fjs)}})(document,"script","weatherwidget-io-js");

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.