PageSourceSearch

https://www.expoaustria.at/_resources/themes/expo/javascript/script.js?m=1788375323

js expoaustria.at collected 2026-09-24 22:57:20 UTC 5,194 bytes, 198 lines download raw bytes

1jQuery.noConflict();
2
3(function($) {
4	$(document).ready(function() {
5
6		if ($(".clickMe").length > 0) {
7			$(".clickMe").each(function() {
8				// trigger click on load
9				$(this).trigger("click");
10			});
11		}
12
13		$(".hamburger").click(function() {
14			$(".hamburger").toggleClass("is-active");
15			$("nav").toggleClass("is-active");
16		});
17
18		$("#mobileMenu .arrow").on("click", function() {
19			var myHolder = $(this).parent();
20			myHolder.toggleClass("active");
21		});
22
23		$(window).scroll(function() {
24			if ($(document).scrollTop() > 100) {
25				$('header').addClass('scrolled');
26			} else {
27				$('header').removeClass('scrolled');
28			}
29
30
31			$(".countMe").each(function() {
32				if ($(this).hasClass("counted")) {
33				} else {
34					if (!/^\d+(\.\d+)?$/.test($(this).text().trim())) return;
35
36					var top_of_element = $(this).offset().top;
37				    var bottom_of_element = $(this).offset().top + $(this).outerHeight();
38				    var bottom_of_screen = $(window).scrollTop() + $(window).innerHeight();
39				    var top_of_screen = $(window).scrollTop();
40
41				    if ((bottom_of_screen > top_of_element) && (top_of_screen < bottom_of_element)){
42						$(this).countTo();
43						$(this).addClass("counted");
44					}
45				}
46			});
47		});
48
49		//$('.countMe').countTo();
50
51		$(".blocklang" ).mouseenter(function() {
52		   	$("#altlang").slideDown();
53		});
54
55		$("#multibox").mouseleave(function() {
56		    $("#altlang").slideUp();
57		 });
58
59		$(".shareboxHolder").mouseenter(function() {
60			$('.shareboxHolder .sharebox').slideDown();
61		}).mouseleave(function() {
62			$('.shareboxHolder .sharebox').slideUp();
63		});
64
65		$(".rounded-pill").on("keyup", function() {
66			if ($(this).val().length > 0) {
67				$(this).addClass("active");
68			} else {
69				$(this).removeClass("active");
70			}
71		});
72
73		$("a.fbShare, .fbShareMobile").on("click", function() {
74			window.open($(this).data("src"), 'Facebook share');
75			return false;
76		});
77
78		if ($("[id^=slickGallery-]").length > 0) {
79			$("[id^=slickGallery-]").each(function() {
80				$(this).slick({
81					dots: true,
82					infinite: true,
83					speed: 300,
84					slidesToShow: 1,
85					centerMode: false,
86					variableWidth: true
87				});
88			});
89		}
90
91		// video 
92		if ($(".video").length > 0) { 
93			const allVideos = document.querySelectorAll(".video");
94
95			allVideos.forEach((v) => {
96				const myV = v.querySelector("video");
97				myV.currentTime = 1;
98				myV.play();
99				myV.pause();
100			 v.addEventListener("mouseover", () => {
101			  const video = v.querySelector("video");
102			  video.play();
103			 });
104			 v.addEventListener("mouseleave", () => {
105			  const video = v.querySelector("video");
106			  video.pause();
107			 });
108			});
109
110			$(function () {
111			 $(".close").on("click", function (e) {
112			    e.preventDefault();
113			    $(".video-stream video")[0].pause();
114			    $(".vid-container").removeClass("show");
115			    $(".vid-container").scrollTop(0);
116			   });
117			 $(".video").on("click", function (e) {
118			    
119			 });
120
121			 $(".video").click(function () {
122			  var source = $(this).find("source").attr("src");
123			  var title = $(this).find(".video-name").text();
124			  var subtitle = $(this).find(".video-subtitle").text();
125			  var descr = $(this).find(".video-descr").text();
126			  var vid = $(".video-stream video").get(0);
127			  vid.pause();
128			  
129			  $(".video-stream source").attr("src", source);
130
131			  vid.src = source;
132			  vid.load();
133			  vid.play();
134			  //$(".video-stream video")[0].autoplay('auto');
135			  $(".video-p-title").text(title);
136			  $(".video-p-subtitle").text(subtitle);
137			  $(".video-p-descr").text(descr);
138
139			  $(".vid-container, .video-stream").addClass("show");
140			    var startpos = $("#the-video")[0]; // $("#video-infos")[0];
141			    startpos.scrollIntoView({
142			        behavior: "smooth", // "smooth" or "auto" or "instant"
143			        block: "end" // "start" or "end"
144			    });
145			 });
146			});
147		}
148
149		$("body .vModal").on("click", function() {
150			var vid = $($(this).data("video")).get(0);
151			vid.pause();
152		});
153
154		$("body .vFPopup").on("click", function() {
155			var vid = $($(this).data("bs-target") + " video").get(0);
156			vid.play();
157		});
158
159
160
161
162		// Postavljamo interval da provjerava svake pola sekunde
163		var hideWidgetButton = setInterval(function() {
164			var $widget = $('reservier-widget');
165			
166			// Provjeravamo da li widget postoji u DOM-u i da li ima otvoren shadowRoot
167			if ($widget.length > 0 && $widget[0].shadowRoot) {
168				
169				// Tražimo element unutar shadowRoot-a i koristimo jQuery .hide()
170				var $fabStack = $($widget[0].shadowRoot).find('.fab-stack');
171				
172				if ($fabStack.length > 0) {
173					$fabStack.hide(); // Dodaje display: none
174					clearInterval(hideWidgetButton); // Prekidamo petlju
175				}
176			}
177		}, 500); // 500 milisekundi
178
179		// Sigurnosni prekid nakon 10 sekundi
180		setTimeout(function() {
181			clearInterval(hideWidgetButton);
182		}, 10000);
183
184		$(document).on('click', 'a[href*="reservier.at"]', function(e) {
185        
186			// Sprječavamo standardno učitavanje linka (da ne odemo na drugu stranicu)
187			e.preventDefault();
188			
189			// Pozivamo otvaranje widgeta
190			if (window.Reservier) {
191				window.Reservier.open({ locale: 'de' });
192			} else {
193				console.warn('Reservier widget još nije učitan.');
194			}
195		});
196	});
197}(jQuery));
198

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.