1 2 3var timebar=0; 4var t,c; 5var timer_is_on=0; 6 7 8var ileprzejsc=1; 9 10c=0; 11var mouseX, mouseY; 12var mouseXn, mouseYn; 13var d=0; 14var da1=0; 15 16 17function timedCount() 18{ 19 20c=c+1; 21var ttbw=$('.toptimebar').width(); 22 23ttbw=ttbw/14; 24ttbw=ttbw*c; 25$('.timebar').width(ttbw); 26$('.timebar').fadeIn(500); 27//$('.b1').html(d); 28 29 30if(d%15==0) //co 9 sek 31{ 32ttbw=0; 33c=0; 34$('.timebar').fadeOut(500); 35$('.timebar').width(1); 36active_start_top(); //na stronie glownej duzy podglad 37} 38 39if(d%99==0) //co 68 sek 40{ 41akt_ostatnio_czytane_art(); 42//activeTop(); 43 44} 45 46if(d%245==0) //co 68 sek 47{ 48koment_line(); 49 50 51} 52 53 54 55 56d++; 57t=setTimeout('timedCount()',1000); 58 59 60} 61 62 63 64function doTimer() 65{ 66if (!timer_is_on) 67 { 68 timer_is_on=1; 69 timedCount(); 70 } 71} 72 73function stopCount() 74{ 75clearTimeout(t); 76timer_is_on=0; 77 78} 79 80 81$(document).on('mouseenter', '#ekrantoppost', function() {stopCount(); }); 82$(document).on('mouseleave', '#ekrantoppost', function() {timedCount(); }); 83 84 85 86 87 88 89 90 91 92 93 94 95 $(document).mousemove(function(e){ 96 mouseX=e.pageX; 97 mouseY=e.pageY; 98 99 }); 100 101 102 103 104 105 function skalujekran() 106 { 107 var width = $(window).width(); 108 var height = $(window).height(); 109 var widthR=width-40; 110 var widthRd=width-350; 111 var widthRd=width-350; 112 113 114 115 116 117 118 119 120 121 122 $('.gora').css('marginLeft', $('.m1').css('marginLeft')); 123 124 125 126 127 128 skalujbelrek(); 129 130 var height = $(window).height(); 131 132 $('.okno').css('top',((height/2)-($('.okno').height())/2)); 133 $('.okno').css('left',((width/2)-($('.okno').width())/2)); 134 135 136 } 137 138 139 140 141 142 143 144/* 145$(window).on('beforeunload ',function() { 146 147}); 148 149$(document).on('load', function(){ 150 151 152}); 153*/ 154 155$(document).ready( function(){ 156 157 158 159 160 161 162//skalujekran(); 163$('.stojanup').fadeOut(0); 164var width = $(window).width(); 165if(width<1150){ $('.stojan').animate({opacity: '0', marginLeft: '0'}, 0).animate({opacity:'1', marginLeft: '0'}, 500); } 166if(width>1150 && width<=1570){ $('.stojan').animate({opacity: '0', marginLeft: '0'}, 0).animate({opacity:'1', marginLeft: '0'}, 500); } 167if(width>1570){ $('.stojan').animate({opacity:'0', marginLeft: '0'}, 0).animate({opacity:'1', marginLeft: '0'}, 500); } 168 169/*szare na kolor duze zdjecie*/ 170 171 172$(document).on('mouseenter','.labelbigbol', function(){ 173var los=$(this).attr('id'); 174 175$('#f'+los).removeClass(); 176$('#f'+los).addClass('grayscaleno phdbox2imgin'); 177 178}); 179 180$(document).on('mouseleave','.labelbigbol', function(){ 181var los=$(this).attr('id'); 182 183$('#f'+los).removeClass(); 184$('#f'+los).addClass('grayscale phdbox2imgin'); 185 186}); 187 188$(window).on('scroll', function(){ 189//skalujbelrek(); 190 191/* 192var blurpx=0; 193 //if($(window).scrollTop()<900){blurpx=Math.round($(window).scrollTop()/150); $('.imgpoma11').css('margin-top',$(window).scrollTop()/1.1+'px');}else{blurpx=5;} 194 var filterVal='blur('+blurpx+'px)'; 195 $('.imgpoma11') 196 .css('filter',filterVal) 197 .css('webkitFilter',filterVal) 198 .css('mozFilter',filterVal) 199 .css('oFilter',filterVal) 200 .css('msFilter',filterVal); 201 */ 202}); 203 204 205 206 207 208 209 210 211 212 213$(document).on('submit', '#szukajform', function(){ 214 215 var szukaj=$('.szukaj').val(); 216 if(szukaj.length>=3) 217 { 218 219 220 221 return true; 222 223 224 } 225 return false; 226}); 227 228 229 230 231 232 233 234 235$(document).on('click','#s_info', function() 236{ 237$('.szukaj_ekran').fadeOut(); 238 $('#s_art').html(''); 239 $('#s_ogl').html(''); 240 $('#s_info2').html(''); 241}); 242 243 244 245 //zmiana linkow na stronie np. mapy, tresc, komentarze itp 246 // strona(window.location.hash); 247 $(window).on('hashchange', function(){ 248 249 strona(window.location.hash); 250 251 }); 252 253 $(document).on('click','#pstart', function(){ 254 t=pozycjap(0); 255 256 $('html, body').animate({scrollTop: (t)}, 1000); 257 }); 258 259 $(document).on('click','#ptresc', function(){ 260 t=pozycjap(1)+50; 261 262 $('html, body').animate({scrollTop: (t)}, 1000); 263 }); 264 265 $(document).on('click','#pgaleria', function(){ 266 t=pozycjap(2)+50; 267 $('html, body').animate({scrollTop: (t)}, 1000); 268 }); 269 270 $(document).on('click','#pmapa', function(){ 271 t=pozycjap(3)+50; 272 $('html, body').animate({scrollTop: (t)}, 1000); 273 }); 274 275 $(document).on('click','#popinie', function(){ 276 t=pozycjap(4)+50; 277 $('html, body').animate({scrollTop: (t)}, 1000); 278 }); 279 280 $(document).on('click','#ppolecane', function(){ 281 t=pozycjap(5)+50; 282 $('html, body').animate({scrollTop: (t)}, 1000); 283 }); 284 285 286 287 288$(document).on('click','#accept_cookies_button', function(){ 289 $.ajax({ 290 type: 'POST', 291 global: true, 292 cache: false, 293 url: 'https://altao.pl/ajax/accept_cookies_ramka.php', 294 data: '&id=1'+ 295 '&rank=1', 296 dataType: 'json', 297 298 success: function(dataz){ 299 300 301 // var nn=jQuery.parseJSON(dataz); 302 303 304 }, 305 306 error: function (xhr, ajaxOptions, thrownError){ 307 308 } 309 }); 310 $('#accept_cookies_ramka').fadeOut(1200); 311}); 312 313 314 315 316 317 //skalujekran(); 318 //skalujbelrek(); 319//stopCounta1(); 320$('.timebar').width(1); 321 322 323 324$(document).on('click', '#nastepnytoppost', function(){ 325ca1=0; 326$('.timebar').width(1); 327 timebar=0; 328 329}); 330 331$(document).on('mouseenter','#labelposttop', function(){ 332stopCounta1(); 333 334}); 335 336$(document).on('mouseleave','#labelposttop', function(){ 337//timedCounta1(); 338 339}); 340 341 342 343 344 345$(document).on('click','.phonemenu', function() 346{ 347 348if($('.phonedivmenu').is(':visible')) 349{ 350$('.phonedivmenu').fadeOut(); 351} 352else 353{ 354$('.phonedivmenu').fadeIn(); 355} 356 357}); 358 359 360 361$(document).on('click','.phonedivmenu', function() 362{ 363 364if($('.phonedivmenu').is(':visible')) 365{ 366$('.phonedivmenu').fadeOut(); 367} 368 369 370}); 371 372 373 374 375 376 377//skalujekran(); 378timedCount(); 379//timedCounta1(); 380/* 381$('.stojan').live('mouseenter', function(){stopCount(); $('.labelbigbol').animate({ backgroundColor: 'rgba(255,255,255,1)' },1100); }); 382$('.stojan').live('mouseleave', function(){timedCount(); $('.labelbigbol').animate({ backgroundColor: 'rgba(255,255,255,1)' },1100); }); 383*/ 384 385 386 387 388 389$(window).bind('resize', function() { 390//skalujekran(); 391//skalujbelrek(); 392}); 393 394 395 396 397 398 399$('body').mouseenter(function(){ $('#ramka').fadeOut(0); $('#ramka').hide();}); 400$('body').mouseleave(function(){ $('#ramka').fadeOut(0); $('#ramka').hide();}); 401 402$('#ramka').mouseenter(function(){ $('#ramka').fadeOut(0); $('#ramka').hide();}); 403$('#ramka').mouseleave(function(){ $('#ramka').fadeOut(0); $('#ramka').hide();}); 404 405 // var m0ofset=$('#m0in').offset(); 406 407 // var xOffset=-135; 408 // var yOffset=m0ofset.left; 409 // yOffset=yOffset-20; 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435function skiw(tt) 436{ 437 438 439 atr='#int'+tt; 440 441 442 443 444 var offset=$(atr).offset( 445 function(index,coords){ 446 //alert(mouseX); 447 448 if(mouseX>=coords.left-5 && mouseX<=coords.left+240 && mouseY>
448=coords.top-5 && mouseY<=coords.top+195) 449 // if(mouseX>=offset.left-5 && mouseX<=offset.left+240 && mouseY>=offset.top-5 && mouseY<=offset.top+155) 450 // if($.contains(this, e.relatedTarget) == true) 451 { 452 clearTimeout(iti); 453 //$('.obox').stop(); 454 455 // $(atr).delay(1550).stop(); 456 $(atr).animate({ top: -195 }, 500); 457 458 459 return {left: coords.left, top: coords.top}; 460 } 461 462 463 464 }); 465 466 467 468 // $('.ptab').html(offset.left+' '+offset.top+' '+e.pageX+' '+e.pageY); 469 // $('.ptab').html(iti+' ddd'); 470 471 472 473 474 475 476 477 478} 479 480 481 482 483 484 485 486 487 488function oboxleave() 489{ 490 491} 492/* 493 $('div[class*="obox"]').live({ 494 495 mouseenter: 496 function(e) 497 { 498 499 mouseXn=mouseX; 500 mouseYn=mouseY; 501 502 503 var tt=$(this).attr('id'); 504 // var type=$(this).attr('type'); 505 // var sg=$('#int'+tt).css('top'); 506 // var lensg=sg.substr(0,(sg.length)-2); 507 508 509 510 511 iti=setTimeout(function(){skiw(tt);},800); 512 513 514 515 516 }, 517 518 mouseleave: 519 function(s) 520 { 521 522 523 clearTimeout(iti); 524 525 var tt=$(this).attr('id'); 526 $('#int'+tt).animate({ top: 5}, 500); 527 528 } 529 530 531 532}); 533 534 535 536 537*/ 538 539 540 541 542 543//poruszanie po najechaniu opisu boxhd duzego 544$('div[class*="phdbox2"]') 545.mouseover(function() 546{ 547// 548 549 550}); 551 552 553 554 555 556 557}); 558 559 560 561 562function stu() 563{ 564 565 var ekranmaxid=$('#ekranmaxid').html(); 566 var ekranmaxact=$('#ekranmaxact').html(); 567 var ileprzejsc=$('#ileprzejsc').html(); 568 $.ajax({ 569 type: 'POST', 570 global: true, 571 cache: false, 572 url: 'https://altao.pl/ajax/start_art.php', 573 data: 'ekranmaxid='+ekranmaxid+ 574 '&ekranmaxact='+ekranmaxact+ 575 '&ileprzejsc='+ileprzejsc, 576 dataType: 'json', 577 578 success: function(dataz){ 579 var nn=jQuery.parseJSON(dataz); 580 if(ekranmaxact==2) 581 { 582 $('#ekranmax1').fadeOut(0); 583 $('#ekranmax1').html(nn.dane).html(); 584 $('#ekranmaxact').html(nn.ekranmaxact); 585 $('#ekranmaxid').html(nn.ekranmaxid); 586 587 $('#ekranmax2').fadeIn(600); 588 589 590 } 591 else 592 { 593 $('#ekranmax2').fadeOut(0); 594 $('#ekranmax2').html(nn.dane).html(); 595 $('#ekranmaxact').html(nn.ekranmaxact); 596 $('#ekranmaxid').html(nn.ekranmaxid); 597 598 599 $('#ekranmax1').fadeIn(600); 600 601 602 } 603 $('#ileprzejsc').html(nn.ileprzejsc); 604 605 606 607 608 609 610 611 612 613 614 }, 615 616 error: function (xhr, ajaxOptions, thrownError){ 617 618 } 619 }); 620 621 622 623} 624 625 626 627 628 629$(document).on('click','.komentarz9', function(){ 630var idd=$(this).attr('id'); 631idd=idd.substr(3); 632 $.ajax({ 633 type: 'POST', 634 global: true, 635 cache: false, 636 url: 'https://altao.pl/ajax/komentarz_pod.php', 637 data: 'idkom='+idd+ 638 639 '&typ=1', 640 dataType: 'json', 641 642 success: function(dataz){ 643 644 645 //var nn=jQuery.parseJSON(dataz); 646 647 $('#ke-'+idd).html(dataz[0]); 648 $('#ke-'+idd).fadeIn(1000); 649 650 }, 651 652 error: function (xhr, ajaxOptions, thrownError){ 653 654 } 655 }); 656}); 657 658 659 660 661 662$(document).on('click','.komentarz5', function(){ 663var idd=$(this).attr('id'); 664idd=idd.substr(5); 665 $.ajax({ 666 type: 'POST', 667 global: true, 668 cache: false, 669 url: 'https://altao.pl/ajax/plus.php', 670 data: 'id='+idd+ 671 '&znak=up'+ 672 '&typ=1', 673 dataType: 'json', 674 675 success: function(dataz){ 676 677 678 //var nn=jQuery.parseJSON(dataz); 679 680 $('#kom'+idd).html(dataz[0]); 681 }, 682 683 error: function (xhr, ajaxOptions, thrownError){ 684 685 } 686 }); 687}); 688 689 690 691 692$(document).on('click','.komentarz6', function(){ 693var idd=$(this).attr('id'); 694idd=idd.substr(5); 695 $.ajax({ 696 type: 'POST', 697 global: true, 698 cache: false, 699 url: 'https://altao.pl/ajax/plus.php', 700 data: 'id='+idd+ 701 '&znak=down'+ 702 '&typ=1', 703 dataType: 'json', 704 705 success: function(dataz){ 706 707 708 //var nn=jQuery.parseJSON(dataz); 709 710 $('#kom'+idd).html(dataz[0]); 711 }, 712 713 error: function (xhr, ajaxOptions, thrownError){ 714 715 } 716 }); 717}); 718 719 720 721 722 723 724function koment_line() 725{ 726 727 $.ajax({ 728 type: 'POST', 729 global: true, 730 cache: false, 731 url: 'https://altao.pl/ajax/koment_line.php', 732 733 dataType: 'json', 734 735 success: function(dataz){ 736 737 738 739 $('#komentekran').html(dataz[0]); 740 741 742 743 744 745 746 747 748 749 750 751 752 }, 753 754 error: function (xhr, ajaxOptions, thrownError){ 755 756 } 757 }); 758 759} 760 761 762 763 764 765 766 767 768 769 770function forum_line() 771{ 772 773 $.ajax({ 774 type: 'POST', 775 global: true, 776 cache: false, 777 url: 'https://altao.pl/ajax/forum_line.php', 778 779 dataType: 'json', 780 781 success: function(dataz){ 782 var nn=jQuery.parseJSON(dataz); 783 784 785 $('#forumekran').html(dataz[0]); 786 787 788 789 790 791 792 793 794 795 796 797 798 }, 799 800 error: function (xhr, ajaxOptions, thrownError){ 801 802 } 803 }); 804 805} 806 807function active_start_top() 808{ 809 810 811 $('#top_1').hide(); 812 $('#top_2').hide(); 813 $('#top_3').hide(); 814 $('#top_4').hide(); 815 $('#top_5').hide(); 816 817 var tsn=$('#top_start_now').html(); 818 $('#top_'+tsn).fadeIn(400); 819 820 tsn++; 821 if(tsn>5){tsn=1;} 822 $('#top_start_now').html(tsn) 823} 824 825 826 827function akt_ostatnio_czytane_art() 828{ 829 830 831 832 833 834 $.ajax({ 835 type: 'POST', 836 global: true, 837 cache: false, 838 url: 'https://altao.pl/ajax/ostatnio_czytane_art.php', 839 data: '&rank=2', 840 dataType: 'json', 841 842 success: function(dataz){ 843 844 845 846 $('#ostatnio_czytane_art').fadeOut(10); 847 $('#ostatnio_czytane_art').html(dataz[0]); 848 $('#ostatnio_czytane_art').fadeIn(1000); 849 850 }, 851 852 error: function (xhr, ajaxOptions, thrownError){ 853 854 } 855 }); 856 857} 858 859function activeTop() 860{ 861 862 863 864 865 866 $.ajax({ 867 type: 'POST', 868 global: true, 869 cache: false, 870 url: 'https://altao.pl/ajax/activeTop.php', 871 data: 'page='+$('#activeNR').html()+ 872 '&q1=', 873 874 dataType: 'json', 875 876 success: function(dataz){ 877 878 879 880 $('#activeTop').fadeOut(10); 881 $('#activeTop').html(dataz[0]); 882 $('#activeTop').fadeIn(1000); 883 $('#activeNR').html(dataz[1]); 884 }, 885 886 error: function (xhr, ajaxOptions, thrownError){ 887 888 } 889 }); 890 891} 892 893function reklamavi() 894{ 895 var scrolltop=$(window).scrollTop(); 896 var fc=$('.backtlo').height(); 897 if(scrolltop<=2000){ $('.vi1').fadeIn(500); $('.vi2').hide(0); $('.vi3').hide(0); } 898 if(scrolltop>2000 && scrolltop<=4000){ $('.vi2').fadeIn(500); $('.vi1').hide(0); $('.vi3').hide(0);} 899 if(scrolltop>4000){ $('.vi3').fadeIn(500); $('.vi1').hide(0); $('.vi2').hide(0); } 900 901} 902 903 904function strona(s) 905{ 906 907
908 if(s=='#start') 909 { 910 911 912 t=0; 913 $('body').animate({scrollTop: (t)}, 1000); 914 } 915 else if(s=='#tresc') 916 { 917 t=$('#tresc').position().top-50; 918 919 $('body').animate({scrollTop: (t)}, 1000); 920 } 921 else if(s=='#galeria') 922 { 923 t=$('#galeria').position().top-50; 924 $('body').animate({scrollTop: (t)}, 1000); 925 926 } 927 else if(s=='#mapa') 928 { 929 t=$('#mapa').position().top-50; 930 $('body').animate({scrollTop: (t)}, 1000); 931 } 932 else if(s=='#opinie') 933 { 934 t=$('#opinie').position().top-50; 935 $('body').animate({scrollTop: (t)}, 1000); 936 937 } 938 else if(s=='#polecane') 939 { 940 t=$('#polecane').position().top-50; 941 $('body').animate({scrollTop: (t)}, 1000); 942 943 } 944} 945 946 947function zmienkolorlinkow() 948{ 949 var scrolltop=$(window).scrollTop(); 950 $('#pstart').removeClass('em22').addClass('em21'); 951 $('#ptresc').removeClass('em22').addClass('em21'); 952 $('#pgaleria').removeClass('em22').addClass('em21'); 953 $('#pmapa').removeClass('em22').addClass('em21'); 954 $('#popinie').removeClass('em22').addClass('em21'); 955 $('#ppolecane').removeClass('em22').addClass('em21'); 956 957 958 959 if(scrolltop>=0 && scrolltop<=pozycjap(1)) 960 { 961 $('#pstart').addClass('em22').removeClass('em21'); 962 } 963 else if(scrolltop>pozycjap(1) && scrolltop<=pozycjap(2)) 964 { 965 $('#ptresc').addClass('em22').removeClass('em21'); 966 } 967 else if(scrolltop>pozycjap(2) && scrolltop<=pozycjap(3)) 968 { 969 $('#pgaleria').addClass('em22').removeClass('em21'); 970 } 971 else if(scrolltop>pozycjap(3) && scrolltop<=pozycjap(4)) 972 { 973 $('#pmapa').addClass('em22').removeClass('em21'); 974 } 975 else if(scrolltop>pozycjap(4) && scrolltop<=pozycjap(5)) 976 { 977 $('#popinie').addClass('em22').removeClass('em21'); 978 } 979 else if(scrolltop>=pozycjap(5) && $('#polecane').length!=0) 980 { 981 $('#ppolecane').addClass('em22').removeClass('em21'); 982 } 983 984} 985 986 987function pozycjap(vi) 988{ 989 990 var przesuniecie= -300; 991 var t=0; 992 if(vi==0){ t=0;} 993 if(vi==1){ if($('#tresc').length!=0){ t=$('#tresc').offset().top+przesuniecie;} else {t=200;}} 994 if(vi==2){ if($('#galeria').length!=0){ t=$('#galeria').offset().top+przesuniecie; } else { t=$('#tresc').offset().top+przesuniecie;} } 995 if(vi==3){ if($('#mapa').length!=0){ t=$('#mapa').offset().top+przesuniecie; } else { t=$('#opinie').offset().top+przesuniecie;} } 996 if(vi==4){ t=$('#opinie').offset().top+przesuniecie; } 997 if(vi==5){ if($('#polecane').length!=0){ t=$('#polecane').offset().top+przesuniecie; } else { t=$('#opinie').offset().top+przesuniecie; } } 998 return t; 999} 1000 1001function skalujbelrek() 1002 { 1003 1004 1005 var scrolltop=$(window).scrollTop(); 1006 1007 1008 1009 1010 reklamavi(); 1011 1012 if(scrolltop<($('.podstopka').position().top)-800) 1013 { 1014 $('#ekran_belrek').css('margin-top', scrolltop-10); 1015 } 1016 var ttz=$(window).scrollTop(); 1017 1018 //$('.mask2').css('margin-top', (-30)-(scrolltop/5)); 1019 //$('.mask2art').css('margin-top', (-30)-(scrolltop/5)); 1020 1021 if(scrolltop<(($('.masktop').height())+20)) 1022 { 1023 if($('.content').length) //bo jak nie sprawdze czy istnieje to wyskakuje blad (wariant dla arthd) 1024 { 1025 var cont=$('.mask2art').height(); 1026 1027 1028 1029 $('.dr').css('top', (0)+'px'); 1030 $('.dleft').css('top', (0)+'px'); 1031 $('.mo077').css('top', (0)+'px'); 1032 1033 //$('.mask2').css('top', (scrolltop)+'px'); 1034 // $('.mask2art').css('top', (scrolltop)+'px'); 1035 $('.mo077').css('position', 'relative'); 1036 } 1037 1038 1039 1040 } 1041 else 1042 { 1043 var cont=$('.backtlo').position().top; 1044 1045 1046 //$('.dr').css('top', scrolltop-cont+120); 1047 1048 $('.dleft').css('top', scrolltop-cont+120); 1049 //$('.mo077').css('top', scrolltop-cont+($('.goradiv').outerHeight()+$('.mo077').outerHeight()-1)); 1050 $('.mo077').css('position', 'fixed'); 1051 $('.mo077').css('top', '40px'); 1052 } 1053 1054 1055 1056 1057 1058 1059 1060 1061 } 1062 1063 1064
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.