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("#txtdodatkowy").change(function() { 132 jQuery(".div_dodatkowy_wodomierz").toggle(); 133 }); 134 135 jQuery(".menu_res_tlo").click(function() { 136 jQuery(".res_menu").slideToggle(300); 137 }); 138 139 szerokosc_okna = jQuery(window).width(); 140 odstep = (szerokosc_okna - 1232)/2 141 142// if (jQuery(window).width()>1232){ 143// jQuery(".cycle-next").css("left",odstep); 144// jQuery(".cycle-prev").css("right",odstep); 145// } 146 147 var id, id2 148 jQuery("ul.menu_gora_1 > li").hover(function() { 149 150 od_lewej = jQuery(this).position().left; 151 152 id = jQuery(this).attr('id'); 153 id2= "#" + id; 154 id = "#" + id + "_2"; 155 156 if (!jQuery(id).find("li").hasClass("aktywna")){ 157 jQuery("ul.menu_gora_2").find("li").removeClass("aktywna"); 158 jQuery("ul.menu_gora_2").find("ul").hide(); 159 } 160 161 ilosc_obiektow = jQuery("ul.menu_gora_1 > li").length; 162 ktory_obiekt = jQuery("ul.menu_gora_1 > li").index(this) + 2; 163 //szerokosc_1_poziom = jQuery(this).outerWidth(); 164 //szerokosc_1_poziom_next = jQuery(this).next().next().outerWidth(); 165 //szerokosc_1_poziom_prev = jQuery(this).prev().prev().outerWidth(); 166 //szerokosc_1_poziom_n = szerokosc_1_poziom+szerokosc_1_poziom_next/2; 167 //szerokosc_1_poziom_n = Math.round(szerokosc_1_poziom_n); 168 //szerokosc_1_poziom_p = szerokosc_1_poziom+szerokosc_1_poziom_prev/2; 169 //szerokosc_1_poziom_p = Math.round(szerokosc_1_poziom_p); 170 if(ilosc_obiektow==ktory_obiekt ){ 171 //jQuery(id).css( "width", szerokosc_1_poziom_p); 172 //szerokosc_2_poziom = jQuery(id).width(); 173 //przesuniecie = od_lewej - szerokosc_1_poziom_prev/2; 174 jQuery(id).css("display", "flex"); 175 } 176 else { 177 //jQuery(id).css( "width", szerokosc_1_poziom_n); 178 //szerokosc_2_poziom = jQuery(id).width(); 179 180 //if(szerokosc_2_poziom + od_lewej > 1232 + odstep ){ 181 //przesuniecie = od_lewej - szerokosc_1_poziom_prev/2; 182 //jQuery(id).css("left", "0").show(); 183 //} else { 184 //przesuniecie = od_lewej; 185 jQuery(id).css("display", "flex"); 186 //} 187 } 188 }, function(){ 189 190 if (jQuery(this).attr('id')!=id2){ 191 jQuery(id).stop(false,true).hide(10); 192 } 193 194 /* Zmiana grafik przed i po zjechaniu z elementu */ 195 196 if (!jQuery(this).hasClass("m_g_kreska")){ 197 if (!jQuery(this).hasClass("aktywna")){ 198 jQuery(this).prev().css("background-image",""); 199 jQuery(this).next().css("background-image",""); 200 if (jQuery(this).prev().prev().hasClass("aktywna")){ 201 /*jQuery(this).prev().css();*/ 202 } 203 if (jQuery(this).next().next().hasClass("aktywna")){ 204 /*jQuery(this).next().css();*/ 205 } 206 } 207 } 208 209 }); 210 211 212 jQuery("ul.menu_gora_2").hover(function(){ 213 214 jQuery(this).stop().css("height", "auto" ); 215 jQuery(id2).addClass("menu_hover"); 216 217 }, function(){ 218 219 jQuery(this).stop(false,true).hide(); 220 jQuery(id2).removeClass("menu_hover"); 221 222 }); 223 224 jQuery("ul.menu_gora_2 li span").click(function() { 225 jQuery(this).parent().find("ul").slideToggle('medium').addClass("aktywna"); 226 jQuery(this).parent().toggleClass("aktywna"); 227 }); 228 229 230 /* Menu srodek 1 */ 231 232 id4= ""; 233 234 var id3, id4 235 jQuery("ul.menu_srodek_1 > li").hover(function() { 236 237 od_lewej = jQuery(this).position().left; 238 239 id3 = jQuery(this).attr('id'); 240 id4= "#" + id3; 241 id3 = "#" + id3 + "_2"; 242 243 if (!jQuery(id3).find("li").hasClass("aktywna")){ 244 jQuery("ul.menu_srodek_2").find("li").removeClass("aktywna"); 245 jQuery("ul.menu_srodek_2").find("ul").hide(); 246 } 247 248 ilosc_obiektow = jQuery("ul.menu_srodek_1 > li").length; 249 ktory_obiekt = jQuery("ul.menu_srodek_1 > li").index(this) + 1; 250 szerokosc_1_poziom = jQuery(this).outerWidth(); 251 szerokosc_1_poziom_n = szerokosc_1_poziom; 252 szerokosc_1_poziom_n = Math.round(szerokosc_1_poziom_n); 253 szerokosc_1_poziom_p = szerokosc_1_poziom; 254 szerokosc_1_poziom_p = Math.round(szerokosc_1_poziom_p); 255 jQuery(id3).css( "width", szerokosc_1_poziom_p); 256 szerokosc_2_poziom = jQuery(id3).width(); 257 przesuniecie = od_lewej; 258 jQuery(id3).css("left", przesuniecie).show(); 259 }, function(){ 260 261 if (jQuery(this).attr('id')!=id4){ 262 jQuery(id3).stop(false,true).hide(10); 263 } 264 265 266 267 /* Zmiana grafik przed i po zjechaniu z elementu */ 268 269 if (!jQuery(this).hasClass("m_g_kreska")){ 270 if (!jQuery(this).hasClass("aktywna")){ 271 jQuery(this).prev().css("background-image",""); 272 jQuery(this).next().css("background-image",""); 273 if (jQuery(this).prev().prev().hasClass("aktywna")){ 274 /*jQuery(this).prev().css();*/ 275 } 276 if (jQuery(this).next().next().hasClass("aktywna")){ 277 /*jQuery(this).next().css();*/ 278 } 279 } 280 } 281 282 }); 283 284 285 jQuery("ul.menu_srodek_2").hover(function(){ 286 287 jQuery(this).stop().css("height", "auto" ); 288 jQuery(id4).addClass("menu_hover"); 289 290 }, function(){ 291 292 jQuery(this).stop(false,true).hide(); 293 jQuery(id4).removeClass("menu_hover"); 294 295 }); 296 297 jQuery("ul.menu_srodek_2 li span").click(function() { 298 jQuery(this).parent().find("ul").slideToggle('medium').addClass("aktywna"); 299 jQuery(this).parent().toggleClass("aktywna"); 300 }); 301 302 303 jQuery("#btn_szukaj_rozwin").click(function() { 304 jQuery(".szukaj_gora").fadeToggle(200); 305 }); 306 307 jQuery("#btn_szukaj_zwin").click(function() { 308 jQuery(".szukaj_gora").fadeToggle(200); 309 }); 310 311 jQuery("#btn_szukaj").click(function() { 312 jQuery("#szukaj").submit(); 313 }); 314 315 jQuery("span.fa-search").click(function() { 316 317 jQuery(this).toggleClass("fa-search-klik"); 318 319 jQuery("div.szukaj").css("margin-left", -480).stop(false,true).slideToggle('fast').show(); 320 321 }); 322 323 jQuery("ul.menu_gora_3 li a").click(function() { 324 jQuery(this).parent().find("ul").first().stop(false,true).slideToggle('fast').show(); 325 jQuery(this).parent().find("a.mgc").first().toggleClass("click"); 326 }); 327 328 329 330 /* Ukrywanie Info 24 */ 331 332 jQuery(".strona_info_24 a.fa-times-circle").click(function() {
333 jQuery("div.strona_info_24_tlo").slideUp(200); 334 jQuery("div.dol").animate({ 335 'padding-bottom' : 20, 336 }, "slow"); 337 }); 338 339 /* Pauza Info 24 */ 340 341 //Pause 342 jQuery(".strona_info_24 .fa-pause").click(function(){ 343 jQuery('.info_24_tlo').marquee('pause'); 344 jQuery(this).css("display" , "none"); 345 jQuery(".strona_info_24 .fa-play").css("display" , "block"); 346 }); 347 348 //Resume 349 jQuery(".strona_info_24 .fa-play").click(function(){ 350 jQuery('.info_24_tlo').marquee('resume'); 351 jQuery(this).css("display" , "none"); 352 jQuery(".strona_info_24 .fa-pause").css("display" , "block"); 353 }); 354 355 /* JeÅli puste Info 24 to ukrywa */ 356 357 if (jQuery('.info24').text().trim()=="") { 358 jQuery('.strona_info_24').hide(); 359 } 360 361 /* JeÅli jest aktywne sprawdza poprzednie :] */ 362 363 jQuery("li.aktywna").prev("li").find("a,p").css(""); 364 365 /* A tu już do menu :] */ 366 367 jQuery("ul.menu_lewe_1 li, ul.menu_prawe_1 li").click(function() { 368 jQuery(this).first().toggleClass("aktywna"); 369 jQuery(this).find("p").first().toggleClass("aktywna", 400); 370 }); 371 372 jQuery("ul.menu_lewe_1 li p, ul.menu_prawe_1 li p").click(function() { 373 jQuery(this).parent().find("ul.menu_lewe_n, ul.menu_prawe_n").first().slideToggle('slow'); 374 jQuery(this).parent().find("ul.menu_lewe_n_aktywna, ul.menu_prawe_n_aktywna").first().slideToggle('slow'); 375 }); 376 377 jQuery("ul.menu_lewe_n li p, ul.menu_lewe_n_aktywna li p, ul.menu_prawe_n li p, ul.menu_prawe_n_aktywna li p").click(function() { 378 jQuery(this).find("ul.menu_lewe_n, ul.menu_prawe_n").first().slideToggle('slow').show(); 379 jQuery(this).find("ul.menu_lewe_n_aktywna, ul.menu_prawe_n_aktywna").first().slideToggle('slow').show(); 380 }); 381 382 jQuery("ul.menu_prawe_zg_1 li p, ul.menu_prawe_zg_1 li a").click(function() { 383 jQuery(this).parent().children("ul.menu_prawe_zg_n").slideToggle('fast'); 384 }); 385 jQuery("ul.menu_prawe_zg_1 li.aktywnemenu").children("ul.menu_prawe_zg_n").slideDown('fast').show(); 386 jQuery("ul.menu_prawe_zg_1 li.aktywna").children("ul.menu_prawe_zg_n").slideDown('fast').show(); 387 jQuery("ul.menu_prawe_zg_n li.aktywna").children("ul.menu_prawe_zg_n").slideDown('fast').show(); 388 jQuery("ul.menu_prawe_zg_n li.aktywnemenu").children("ul.menu_prawe_zg_n").slideDown('fast').show(); 389 390 /* Ikorator */ 391 392 jQuery('#listafirm').jcarousel({ 393 rtl: 0, 394 vertical: 0, 395 auto: 1, 396 scroll: 1, 397 wrap: 'circular', 398 animation: 1500, 399 initCallback: listafirm_initCallback 400 }); 401 402 jQuery('#kalendarz_rotator').jcarousel({ 403 rtl: 0, 404 vertical: 0, 405 scroll: 1, 406 wrap: 'both', 407 animation: 1500, 408 initCallback: listafirm_initCallback 409 }); 410 411 jQuery("#polec_znajomemu,.polec_znajomemu_zamknij").click(function() { 412 jQuery(".polec_znajomemu").slideToggle('fast').show(); 413 }); 414 415 jQuery('.info_24_tlo').marquee({ 416 speed: 30000, 417 gap: 0, 418 delayBeforeStart: 0, 419 direction: 'left', 420 duplicated: true, 421 pauseOnHover: true 422 }); 423 424/* Animacja */ 425 426 var awi = 0; 427 var awip = 0; 428 var ah = 0; 429 var ph = 0; 430 var mh = 0; 431 var aw = 0; 432 var pw = 0; 433 var mw = 0; 434 435 jQuery(".cycle-slideshow img").each(function() { 436 437 var awi = jQuery(this).height(); 438 var awip = jQuery(".animacja").height(); 439 440 if (awi < awip){ 441 jQuery(this).css({"min-height":awip,"width":"initial"}); 442 } 443 444 }); 445 446 /* Centrowanie w pionie */ 447 448 (function (jQuery) { 449 jQuery.fn.vAlign = function(fn) { 450 451 return this.each( 452 453 function(i){ 454 455 var ah = jQuery(this).height(); 456 var ph = jQuery(".animacja").height(); 457 var mh = Math.ceil((ph-ah) / 2); 458 jQuery(this).css('margin-top', mh); 459 }); 460 }; 461 })(jQuery); 462 463 /* Centrowanie w poziomie */ 464 465 (function (jQuery) { 466 jQuery.fn.hAlign = function(fn) { 467 468 return this.each( 469 470 function(i){ 471 472 var aw = jQuery(this).width(); 473 var pw = jQuery(".animacja").width(); 474 var mw = Math.ceil((pw-aw) / 2); 475 jQuery(this).css('margin-left', mw); 476 }); 477 }; 478 })(jQuery); 479 480 jQuery(".cycle-slideshow img").vAlign().hAlign(); 481 482 jQuery(".cycle-slideshow").cycle({ 483 fx: 'fade', 484 swipe: true, 485 next: '#next2', 486 prev: '#prev2', 487 }); 488 489 if (!jQuery(".animacja").find("div").hasClass("cycle-paused")){ 490 jQuery("#resumeButton").css("display","none"); 491 }
492 if (jQuery(".animacja").find("div").hasClass("cycle-paused")){ 493 jQuery("#pauseButton").css("display","none"); 494 } 495 496 jQuery("#pauseButton,#resumeButton").hover(function() { 497 if (!jQuery(".animacja").find("div").hasClass("cycle-paused")){ 498 jQuery("#pauseButton").css({"left":0+"px","opacity":"0.7"}); 499 } 500 if (jQuery(".animacja").find("div").hasClass("cycle-paused")){ 501 jQuery("#resumeButton").css({"left":0+"px","opacity":"0.7"}); 502 } 503 }, function(){ 504 jQuery("#pauseButton").css({"left":-6000+"px","opacity":"1"}); 505 jQuery("#resumeButton").css({"left":-6000+"px","opacity":"1"}); 506 }); 507 jQuery(".cycle-slideshow").hover(function() { 508 if (jQuery(".animacja").find("div").hasClass("cycle-paused")){ 509 jQuery("#resumeButton").css("left",0+"px"); 510 } 511 if (!jQuery(".animacja").find("div").hasClass("cycle-paused")){ 512 jQuery("#pauseButton").css("left",0+"px"); 513 } 514 }, function(){ 515 if (jQuery(".animacja").find("div").hasClass("cycle-paused")){ 516 jQuery("#resumeButton").css("left",""); 517 } 518 if (!jQuery(".animacja").find("div").hasClass("cycle-paused")){ 519 jQuery("#pauseButton").css("left",""); 520 } 521 }); 522 jQuery("#pauseButton").click(function() { 523 jQuery(".cycle-slideshow").cycle("pause"); 524 jQuery("#pauseButton").css({"left":-6000+"px","display":"none"}); 525 jQuery("#resumeButton").css("display","inline"); 526 }); 527 jQuery("#resumeButton").click(function() { 528 jQuery(".cycle-slideshow").cycle("resume"); 529 jQuery("#resumeButton").css({"left":-6000+"px","display":"none"}); 530 jQuery("#pauseButton").css("display","inline"); 531 }); 532 533}); 534function listafirm_initCallback(carousel) 535{ 536 // Pause autoscrolling if the user moves with the cursor over the clip. 537 538 jQuery(".ikorator_uruchom").click(function(){ 539 carousel.startAuto(1); 540 jQuery(this).css("display","none"); 541 jQuery(".ikorator_pauza").css("display","block"); 542 }); 543 544 jQuery(".ikorator_pauza").click(function(){ 545 carousel.stopAuto(1); 546 jQuery(this).css("display","none"); 547 jQuery(".ikorator_uruchom").css("display","block"); 548 }); 549 550 jQuery(".jcarousel-skin-tango2 .jcarousel-prev").click(function(){ 551 if (carousel.startAuto() != 0){ 552 jQuery(".ikorator_uruchom").css("display","none"); 553 jQuery(".ikorator_pauza").css("display","block"); 554 } 555 carousel.startAuto(1); 556 }); 557 558 jQuery(".jcarousel-skin-tango2 .jcarousel-next").click(function(){ 559 if (carousel.startAuto() != 0){ 560 jQuery(".ikorator_uruchom").css("display","none"); 561 jQuery(".ikorator_pauza").css("display","block"); 562 } 563 carousel.startAuto(1); 564 }); 565 566 carousel.clip.hover(function() { 567 carousel.stopAuto(); 568 }, function() { 569 carousel.startAuto(); 570 }); 571}; 572 573var 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.