PageSourceSearch

https://www.belzec.pl/asp/js/menu.js?20261002231355

js belzec.pl collected 2026-10-02 21:14:14 UTC 15,283 bytes, 511 lines download raw bytes

1jQuery(window).on('load', function (e) {
2
3var awi = 0;
4var awip = 0;
5var ah = 0;
6var ph = 0;
7var mh = 0;
8var aw = 0;
9var pw = 0;
10var mw = 0;
11
12/* Animacja */
13
14	jQuery(".cycle-slideshow img").each(function() {
15
16		var awi = jQuery(this).height();
17		var awip	= jQuery(".animacja").height();
18
19		if (awi < awip){
20			jQuery(this).css({"min-height":awip,"width":"initial"});
21		}
22
23	});
24
25	/* Centrowanie w pionie */
26
27	(function (jQuery) {
28	   jQuery.fn.vAlign = function(fn) {
29
30        return this.each(
31
32            function(i){
33
34                var ah = jQuery(this).height();
35                var ph = jQuery(".animacja").height();
36                var mh = Math.ceil((ph-ah) / 2);
37               jQuery(this).css('margin-top', mh);
38            });
39   	};
40	})(jQuery);
41
42	/* Centrowanie w poziomie */
43
44	(function (jQuery) {
45	   jQuery.fn.hAlign = function(fn) {
46
47        return this.each(
48
49            function(i){
50
51                var aw = jQuery(this).width();
52                var pw = jQuery(".animacja").width();
53                var mw = Math.ceil((pw-aw) / 2);
54               jQuery(this).css('margin-left', mw);
55            });
56   	};
57	})(jQuery);
58
59   jQuery(".cycle-slideshow img").vAlign().hAlign();
60
61	jQuery(".cycle-slideshow").cycle({
62		fx: 'fade',
63		swipe: true,
64		next:   '#next2',
65		prev:   '#prev2',
66	});
67
68	if (!jQuery(".animacja").find("div").hasClass("cycle-paused")){
69		jQuery("#resumeButton").css("display","none");
70		}
71	if (jQuery(".animacja").find("div").hasClass("cycle-paused")){
72		jQuery("#pauseButton").css("display","none");
73	}
74
75	jQuery("#pauseButton,#resumeButton").hover(function() {
76		if (!jQuery(".animacja").find("div").hasClass("cycle-paused")){
77			jQuery("#pauseButton").css({"left":0+"px","opacity":"0.7"});
78		}
79		if (jQuery(".animacja").find("div").hasClass("cycle-paused")){
80			jQuery("#resumeButton").css({"left":0+"px","opacity":"0.7"});
81		}
82		}, function(){
83			jQuery("#pauseButton").css({"left":-6000+"px","opacity":"1"});
84			jQuery("#resumeButton").css({"left":-6000+"px","opacity":"1"});
85	});
86	jQuery(".cycle-slideshow").hover(function() {
87		if (jQuery(".animacja").find("div").hasClass("cycle-paused")){
88			jQuery("#resumeButton").css("left",0+"px");
89		}
90		if (!jQuery(".animacja").find("div").hasClass("cycle-paused")){
91			jQuery("#pauseButton").css("left",0+"px");
92		}
93	}, function(){
94		if (jQuery(".animacja").find("div").hasClass("cycle-paused")){
95			jQuery("#resumeButton").css("left","");
96		}
97		if (!jQuery(".animacja").find("div").hasClass("cycle-paused")){
98			jQuery("#pauseButton").css("left","");
99		}
100	});
101	jQuery("#pauseButton").click(function() {
102		jQuery(".cycle-slideshow").cycle("pause");
103		jQuery("#pauseButton").css({"left":-6000+"px","display":"none"});
104		jQuery("#resumeButton").css("display","inline");
105	});
106	jQuery("#resumeButton").click(function() {
107		jQuery(".cycle-slideshow").cycle("resume");
108		jQuery("#resumeButton").css({"left":-6000+"px","display":"none"});
109		jQuery("#pauseButton").css("display","inline");
110	});
111
112})
113
114
115jQuery(document).ready(function(){
116
117	jQuery(".firmy_srodek").find(".aktualnosci_wiecej").text(function(index, text) {
118		return text.replace("Dopisz", "Dodaj Firmę");
119	});
120
121	jQuery(".start_aktualnosci_wszystkie_tlo").find(".start_aktualnosci_wszystkie").text(function(index, text) {
122		return text.replace("Zobacz wszystkie", "Zobacz więcej");
123	});
124	jQuery(".akts .aktualnosci_archiwum_tlo").find(".aktualnosci_archiwum").text(function(index, text) {
125		return text.replace("Archiwum", "Zobacz więcej");
126	});
127
128
129	id2= "";
130
131	jQuery(".menu_res_tlo").click(function() {
132		jQuery(".res_menu").slideToggle(300);
133   });
134
135	szerokosc_okna = jQuery(window).width();
136	odstep = (szerokosc_okna - 1232)/2
137
138
139	var id, id2
140	jQuery("ul.menu_gora_1 > li").on("mouseenter click", function() {
141		od_lewej = jQuery(this).position().left;
142			id = jQuery(this).attr('id');
143		id2= "#" + id;
144		id = "#" + id + "_2";
145		if (!jQuery(id).find("li").hasClass("aktywna")){
146			jQuery("ul.menu_gora_2").find("li").removeClass("aktywna");
147			jQuery("ul.menu_gora_2").find("ul").hide();
148		}
149		ilosc_obiektow = jQuery("ul.menu_gora_1 > li").length;
150		ktory_obiekt = jQuery("ul.menu_gora_1 > li").index(this) + 2;
151		if(ilosc_obiektow==ktory_obiekt ){
152	 		jQuery(id).css("display", "flex");
153		}
154		else {
155			jQuery(id).css("display", "flex");
156		}
157	});
158	jQuery("ul.menu_gora_1 > li").on("mouseleave", function() {
159			if (jQuery(this).attr('id')!=id2){
160			jQuery(id).stop(false,true).hide(10);
161		}
162		if (!jQuery(this).hasClass("m_g_kreska")){
163			if (!jQuery(this).hasClass("aktywna")){
164				jQuery(this).prev().css("background-image","");
165				jQuery(this).next().css("background-image","");
166		 	}
167		}
168	});
169
170
171	jQuery("ul.menu_gora_2").on("mouseenter click", function() {
172		jQuery(this).stop().css("height", "auto" );
173		jQuery(id2).addClass("menu_hover");
174	});
175	jQuery("ul.menu_gora_2").on("mouseleave", function() {
176		jQuery(this).stop(false,true).hide();
177		jQuery(id2).removeClass("menu_hover");
178	});
179
180	jQuery("ul.menu_gora_2 li span").click(function() {
181		jQuery(this).parent().find("ul").slideToggle('medium').addClass("aktywna");
182		jQuery(this).parent().toggleClass("aktywna");
183	});
184
185
186	/* Menu srodek 1 */
187
188	id4= "";
189
190	var id3, id4
191	jQuery("ul.menu_srodek_1 > li").on("mouseenter click", function() {
192		od_lewej = jQuery(this).position().left;
193			id3 = jQuery(this).attr('id');
194		id4= "#" + id3;
195		id3 = "#" + id3 + "_2";
196		if (!jQuery(id3).find("li").hasClass("aktywna")){
197			jQuery("ul.menu_srodek_2").find("li").removeClass("aktywna");
198			jQuery("ul.menu_srodek_2").find("ul").hide();
199		}
200		ilosc_obiektow = jQuery("ul.menu_srodek_1 > li").length;
201		ktory_obiekt = jQuery("ul.menu_srodek_1 > li").index(this) + 1;
202		szerokosc_1_poziom = jQuery(this).outerWidth();
203		szerokosc_1_poziom_n = szerokosc_1_poziom;
204		szerokosc_1_poziom_n = Math.round(szerokosc_1_poziom_n);
205		szerokosc_1_poziom_p = szerokosc_1_poziom;
206		szerokosc_1_poziom_p = Math.round(szerokosc_1_poziom_p);
207		jQuery(id3).css( "width", szerokosc_1_poziom_p);
208			szerokosc_2_poziom = jQuery(id3).width();
209			przesuniecie = od_lewej;
210	 	jQuery(id3).css("left", przesuniecie).show();
211	});
212	jQuery("ul.menu_srodek_1 > li").on("mouseleave", function() {
213		if (jQuery(this).attr('id')!=id4){
214			jQuery(id3).stop(false,true).hide(10);
215		}
216		if (!jQuery(this).hasClass("m_g_kreska")){
217			if (!jQuery(this).hasClass("aktywna")){
218				jQuery(this).prev().css("background-image","");
219				jQuery(this).next().css("background-image","");
220		 	}
221		}
222	});
223
224	jQuery("ul.menu_srodek_2").on("mouseenter click", function() {
225		jQuery(this).stop().css("height", "auto" );
226		jQuery(id4).addClass("menu_hover");
227	});
228	jQuery("ul.menu_srodek_2").on("mouseleave", function() {
229		jQuery(this).stop(false,true).hide();
230		jQuery(id4).removeClass("menu_hover");
231
232	});
233
234	jQuery("ul.menu_srodek_2 li span").click(function() {
235		jQuery(this).parent().find("ul").slideToggle('medium').addClass("aktywna");
236		jQuery(this).parent().toggleClass("aktywna");
237	});
238
239
240	jQuery("#btn_szukaj_rozwin").click(function() {
241		jQuery(".szukaj_gora").fadeToggle(200);
242   });
243
244	jQuery("#btn_szukaj_zwin").click(function() {
245		jQuery(".szukaj_gora").fadeToggle(200);
246   });
247
248	jQuery("#btn_szukaj").click(function() {
249		jQuery("#szukaj").submit();
250   });
251
252	jQuery("span.fa-search").click(function() {
253		jQuery(this).toggleClass("fa-search-klik");
254		jQuery("div.szukaj").css("margin-left", -480).stop(false,true).slideToggle('fast').show();
255	});
256
257	jQuery("ul.menu_gora_3 li a").click(function() {
258		jQuery(this).parent().find("ul").first().stop(false,true).slideToggle('fast').show();
259		jQuery(this).parent().find("a.mgc").first().toggleClass("click");
260	});
261
262
263
264  /* Ukrywanie Info 24 */
265
266	jQuery(".strona_info_24 a.fa-times-circle").click(function() {
267		jQuery("div.strona_info_24").slideUp(200);
268	});
269
270	/* Pauza Info 24 */
271
272	//Pause
273	jQuery(".strona_info_24 .fa-pause").click(function(){
274		jQuery('.info_24_tlo').marquee('pause');
275		jQuery(this).css("display" , "none");
276		jQuery(".strona_info_24 .fa-play").css("display" , "block");
277	});
278
279	//Resume
280	jQuery(".strona_info_24 .fa-play").click(function(){
281		jQuery('.info_24_tlo').marquee('resume');
282		jQuery(this).css("display" , "none");
283		jQuery(".strona_info_24 .fa-pause").css("display" , "block");
284	});
285
286	/* Jeśli puste Info 24 to ukrywa */
287
288	if (jQuery('.info24').text().trim()=="") {
289		jQuery('.strona_info_24').hide();
290	}
291
292	/* Jeśli jest aktywne sprawdza poprzednie :] */
293
294	jQuery("li.aktywna").prev("li").find("a,p").css("");
295
296	/* A tu już do menu :] */
297
298	jQuery("ul.menu_lewe_1 li, ul.menu_prawe_1 li").click(function() {
299		jQuery(this).first().toggleClass("aktywna");
300		jQuery(this).find("p").first().toggleClass("aktywna", 400);
301	});
302
303	jQuery("ul.menu_lewe_1 li a, ul.menu_prawe_1 li a").click(function() {
304		jQuery(this).parent().find("ul.menu_lewe_n, ul.menu_prawe_n").first().slideToggle('slow');
305		jQuery(this).parent().find("ul.menu_lewe_n_aktywna, ul.menu_prawe_n_aktywna").first().slideToggle('slow');
306	});
307
308	jQuery("ul.menu_lewe_n li a, ul.menu_lewe_n_aktywna li a, ul.menu_prawe_n li a, ul.menu_prawe_n_aktywna li a").click(function() {
309		jQuery(this).find("ul.menu_lewe_n, ul.menu_prawe_n").first().slideToggle('slow').show();
310		jQuery(this).find("ul.menu_lewe_n_aktywna, ul.menu_prawe_n_aktywna").first().slideToggle('slow').show();
311	});
312
313	jQuery("ul.menu_prawe_zg_1 li p, ul.menu_prawe_zg_1 li a").click(function()	{
314		jQuery(this).parent().children("ul.menu_prawe_zg_n").slideToggle('fast');
315	});
316	jQuery("ul.menu_prawe_zg_1 li.aktywnemenu").children("ul.menu_prawe_zg_n").slideDown('fast').show();
317	jQuery("ul.menu_prawe_zg_1 li.aktywna").children("ul.menu_prawe_zg_n").slideDown('fast').show();
318	jQuery("ul.menu_prawe_zg_n li.aktywna").children("ul.menu_prawe_zg_n").slideDown('fast').show();
319	jQuery("ul.menu_prawe_zg_n li.aktywnemenu").children("ul.menu_prawe_zg_n").slideDown('fast').show();
320
321	/* Menu prawe bok ;) */
322
323	jQuery("ul.menu_prawe_wysuwane_1 li.mikona").hover(function() {
324	  	jQuery(this).stop(false,true).animate({marginLeft : '-170px'},'fast');
325	}, function() {
326		jQuery(this).stop(false,true).animate({marginLeft : '0px'},'fast')
327	});
328
329	/* Ikorator */
330
331	jQuery('#listafirm').jcarousel({
332		rtl: 0,
333		vertical: 0,
334		auto: 1,
335		scroll: 1,
336		wrap: 'circular',
337		animation: 1500,
338		initCallback: listafirm_initCallback
339   });
340
341	jQuery('#kalendarz_rotator').jcarousel({
342		rtl: 0,
343		vertical: 0,
344		scroll: 1,
345		wrap: 'both',
346		animation: 1500,
347		initCallback: listafirm_initCallback
348    });
349
350	jQuery("#polec_znajomemu,.polec_znajomemu_zamknij").click(function() {
351		jQuery(".polec_znajomemu").slideToggle('fast').show();
352	});
353
354	jQuery('.info_24_tlo').marquee({
355		speed: 30000,
356		gap: 0,
357		delayBeforeStart: 0,
358		direction: 'left',
359		duplicated: true,
360		pauseOnHover: true
361	});
362
363/* Animacja */
364
365	var awi = 0;
366	var awip = 0;
367	var ah = 0;
368	var ph = 0;
369	var mh = 0;
370	var aw = 0;
371	var pw = 0;
372	var mw = 0;
373
374	jQuery(".cycle-slideshow img").each(function() {
375
376		var awi = jQuery(this).height();
377		var awip	= jQuery(".animacja").height();
378
379		if (awi < awip){
380			jQuery(this).css({"min-height":awip,"width":"initial"});
381		}
382
383	});
384
385	/* Centrowanie w pionie */
386
387	(function (jQuery) {
388	   jQuery.fn.vAlign = function(fn) {
389
390        return this.each(
391
392            function(i){
393
394                var ah = jQuery(this).height();
395                var ph = jQuery(".animacja").height();
396                var mh = Math.ceil((ph-ah) / 2);
397               jQuery(this).css('margin-top', mh);
398            });
399   	};
400	})(jQuery);
401
402	/* Centrowanie w poziomie */
403
404	(function (jQuery) {
405	   jQuery.fn.hAlign = function(fn) {
406
407        return this.each(
408
409            function(i){
410
411                var aw = jQuery(this).width();
412                var pw = jQuery(".animacja").width();
413                var mw = Math.ceil((pw-aw) / 2);
414               jQuery(this).css('margin-left', mw);
415            });
416   	};
417	})(jQuery);
418
419   jQuery(".cycle-slideshow img").vAlign().hAlign();
420
421	jQuery(".cycle-slideshow").cycle({
422		fx: 'fade',
423		swipe: true,
424		next:   '#next2',
425		prev:   '#prev2',
426	});
427
428	if (!jQuery(".animacja").find("div").hasClass("cycle-paused")){
429		jQuery("#resumeButton").css("display","none");
430		}
431	if (jQuery(".animacja").find("div").hasClass("cycle-paused")){
432		jQuery("#pauseButton").css("display","none");
433	}
434
435	jQuery("#pauseButton,#resumeButton").hover(function() {
436		if (!jQuery(".animacja").find("div").hasClass("cycle-paused")){
437			jQuery("#pauseButton").css({"left":0+"px","opacity":"0.7"});
438		}
439		if (jQuery(".animacja").find("div").hasClass("cycle-paused")){
440			jQuery("#resumeButton").css({"left":0+"px","opacity":"0.7"});
441		}
442		}, function(){
443			jQuery("#pauseButton").css({"left":-6000+"px","opacity":"1"});
444			jQuery("#resumeButton").css({"left":-6000+"px","opacity":"1"});
445	});
446	jQuery(".cycle-slideshow").hover(function() {
447		if (jQuery(".animacja").find("div").hasClass("cycle-paused")){
448			jQuery("#resumeButton").css("left",0+"px");
449		}
450		if (!jQuery(".animacja").find("div").hasClass("cycle-paused")){
451			jQuery("#pauseButton").css("left",0+"px");
452		}
453	}, function(){
454		if (jQuery(".animacja").find("div").hasClass("cycle-paused")){
455			jQuery("#resumeButton").css("left","");
456		}
457		if (!jQuery(".animacja").find("div").hasClass("cycle-paused")){
458			jQuery("#pauseButton").css("left","");
459		}
460	});
461	jQuery("#pauseButton").click(function() {
462		jQuery(".cycle-slideshow").cycle("pause");
463		jQuery("#pauseButton").css({"left":-6000+"px","display":"none"});
464		jQuery("#resumeButton").css("display","inline");
465	});
466	jQuery("#resumeButton").click(function() {
467		jQuery(".cycle-slideshow").cycle("resume");
468		jQuery("#resumeButton").css({"left":-6000+"px","display":"none"});
469		jQuery("#pauseButton").css("display","inline");
470	});
471
472});
473function listafirm_initCallback(carousel){
474    // Pause autoscrolling if the user moves with the cursor over the clip.
475
476	 jQuery(".ikorator_uruchom").click(function(){
477		carousel.startAuto(1);
478		jQuery(this).css("display","none");
479		jQuery(".ikorator_pauza").css("display","block");
480   });
481
482	jQuery(".ikorator_pauza").click(function(){
483		carousel.stopAuto(1);
484		jQuery(this).css("display","none");
485		jQuery(".ikorator_uruchom").css("display","block");
486   });
487
488	jQuery(".jcarousel-skin-tango2 .jcarousel-prev").click(function(){
489		if (carousel.startAuto() != 0){
490				jQuery(".ikorator_uruchom").css("display","none");
491				jQuery(".ikorator_pauza").css("display","block");
492			}
493		carousel.startAuto(1);
494   });
495
496	jQuery(".jcarousel-skin-tango2 .jcarousel-next").click(function(){
497		if (carousel.startAuto() != 0){
498				jQuery(".ikorator_uruchom").css("display","none");
499				jQuery(".ikorator_pauza").css("display","block");
500			}
501		carousel.startAuto(1);
502   });
503
504    carousel.clip.hover(function() {
505        carousel.stopAuto();
506    }, function() {
507        carousel.startAuto();
508    });
509};
510
511var zwieksz=0;

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.