PageSourceSearch

https://divadlopalace.cz/web.js

js divadlopalace.cz collected 2026-10-02 11:08:55 UTC 4,460 bytes, 170 lines download raw bytes

1$(document).ready(function() {
2	$(".jgallery").justifiedGallery({
3	    rowHeight : 180,
4	    margins : 8
5	});
6	$('.collapse').on('shown.bs.collapse', function(e) {
7	  var $card = $(this).closest('.accordion-item');
8	  var $open = $($(this).data('parent')).find('.collapse.show');
9  
10	  var additionalOffset = 0;
11	  if($card.prevAll().filter($open.closest('.accordion-item')).length !== 0)
12	  {
13	        additionalOffset =  $open.height();
14	  }
15	  $('html,body').animate({
16	    scrollTop: $card.offset().top - additionalOffset
17	  }, 500);
18	});
19	
20	if ($('.swiper.homepage').length) {
21		const swiper = new Swiper('.swiper', {
22			loop: true,
23			effect: "fade",
24			direction: 'horizontal',
25			mousewheel: {
26			    forceToAxis: true,
27			},
28			pagination: {
29				el: '.swiper-pagination',
30			},
31
32	      autoplay: {
33	        delay: 4500,
34	        disableOnInteraction: false,
35			  pauseOnMouseEnter:true,
36	      },
37			navigation: {
38				nextEl: '.swiper-button-next',
39				prevEl: '.swiper-button-prev',
40			},
41
42		});
43	}
44	
45	
46	if ($('.swiper.forum').length) {
47		const swiper = new Swiper('.swiper', {
48			direction: 'horizontal',
49	        speed: 2000,
50			mousewheel: {
51			    forceToAxis: true,
52			},
53		  loop: true,
54
55		  // If we need pagination
56		  pagination: {
57		    el: '.swiper-pagination',
58		  },
59
60	      autoplay: {
61	        delay: 4000,
62	        disableOnInteraction: false,
63			  pauseOnMouseEnter:true,
64	      },
65		  navigation: {
66		    nextEl: '.swiper-button-next',
67		    prevEl: '.swiper-button-prev',
68		  },
69
70		  // And if we need scrollbar
71		  scrollbar: {
72		    el: '.swiper-scrollbar',
73		  },
74		});
75	}	
76
77	if ($('.swiper.posters').length) {
78		const swiper = new Swiper('.swiper', {
79			direction: 'horizontal',
80	        speed: 2000,
81			mousewheel: {
82			    forceToAxis: true,
83			},
84		  loop: true,
85
86			autoplay: {
87	        delay: 4000,
88	        disableOnInteraction: false,
89			  pauseOnMouseEnter:true,
90	      },
91		});
92	}	
93
94	
95});
96$(".clickable").on("click", function() {
97    window.location.href = $(this).data('target-url');
98});
99
100$(".clickable-blank").on("click", function() {
101   	window.open($(this).data('target-blank-url'));
102});
103
104function setCookie(cname, cvalue, exdays) {
105    const d = new Date();
106    d.setTime(d.getTime() + (exdays*24*60*60*1000));
107    let expires = "expires="+ d.toUTCString();
108    document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
109}
110
111function deleteCookie(cname) {
112    const d = new Date();
113    let expires = "expires=Thu, 01 Jan 1970 00:00:00 GMT";
114    document.cookie = cname + "=;" + expires + ";path=/";
115}
116
117function acceptCookieConsent() {
118    deleteCookie('consent_cookies');
119    setCookie('consent_cookies', 1, 30);
120
121    var checked = false;
122    if (document.querySelector('#consentAnalytics:checked')) {
123    	checked = true;
124    }
125    
126    if( checked ) {
127      setCookie('consent_analytics', 1, 30);
128    }
129    location.reload();
130}
131
132function rejectCookieConsent() {
133    deleteCookie('consent_cookies');
134    deleteCookie('consent_analytics');
135    document.getElementById("cookieNotice").style.display = "none";
136}
137
138function acceptAllCookies() {
139  setCookie('consent_cookies', 1, 30);
140  setCookie('consent_analytics', 1, 30);
141  document.getElementById("cookieNotice").style.display = "none";
142}
143
144function showDetailedSettings() {
145  document.getElementById("detailed-settings").className = document.getElementById("detailed-settings").className.replace(/\bd-none\b/,'');
146  document.getElementById("btn-1-container").classList.add("d-none");
147}
148
149$('#blueimp-gallery').on('slide', function (event, index, slide) {
150	var tmparr = $(this).find("[data-index='" + index + "']").find('img').attr('src').split('/');
151	var tmplength = tmparr.length;
152	$( "#saveimage" ).data( "imgid", tmparr[tmplength-1].match(/\d/g).join('') );
153});
154
155$("#saveimage").on("click", function() {
156 	window.open('https://www.divadlopalace.cz/ulozit-foto/' + $(this).data('imgid') +'/');
157});
158
159$( "#forum-form" ).on( "submit", function( event ) {
160    event.preventDefault();
161	grecaptcha.ready(function() {
162		grecaptcha.execute('6LdKj1YmAAAAADS2Fwl39FkF2M-Vr7Ryyxo3KAvP', {action:'validate_captcha'}).then(function(token) {
163			$('#forum-form input, #forum-form textarea').removeClass('is-invalid'); 
164			var data = { email: $('#email').val(), jmeno: $('#jmeno').val(), sdeleni: $('#sdeleni').val(), token: token};
165			$.post('/backend_forum_form.php', data, function(response) {
166	            $('#forum-results').html(response);
167		    }); 
168		})
169	});
170});

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.