1///usuniÄcie tagów które nie majÄ banerów 2 3$(document).ready(function() { 4 5 var AdWidth = 0; 6 var AdWidthIns = 0; 7 var AdPosition; 8 $(".AdvZone").each(function(i) { 9 10 AdWidth = $(this).width(); 11 12 AdPositionRight = $(this).css('right'); 13 AdPositionLeft = $(this).css('left'); 14 AdWidthIns = $(this).find('ins').width(); 15 AdWidthIframe = $(this).find('iframe').width(); 16 17 if (AdWidthIns > 0) { 18 19 $(this).width(AdWidthIns + 'px'); 20 21 var SubStrRight = AdPositionRight.substr(0, 1); 22 //console.log("Right "+SubStrRight); 23 24 var SubStrLeft = AdPositionLeft.substr(0, 1); 25 // console.log("Left "+SubStrLeft); 26 27 if (SubStrRight == '-') { 28 $(this).css('right', '-' + AdWidthIns + 'px'); 29 30 } 31 if (SubStrLeft == '-') { 32 $(this).css('left', '-' + AdWidthIns + 'px'); 33 } 34 35 } 36 37 if (AdWidthIframe > 0) { 38 39 $(this).width(AdWidthIframe + 'px'); 40 41 if (AdPositionRight != 'auto') { 42 // $(this).css('right','-'+AdWidthIframe+'px'); 43 } 44 if (AdPositionLeft != 'auto') { 45 // $(this).css('left','-'+AdWidthIframe+'px'); 46 } 47 48 } 49 50 }); 51 52 $(".slide").each(function(i) { 53 var bannerimg = $(this).find('img').attr('src'); 54 55 if (!bannerimg) { 56 // console.log('.slide'); 57 58 $(this).remove(); 59 60 } 61 }); 62 63/* 64 $(window).scroll(function() { 65 66 var posY = (document.documentElement.scrollTop) ? document.documentElement.scrollTop : window.pageYOffset; 67 68 if (posY > 110) { 69 $(".AdvZone9").css("top", (posY - 110) + "px"); 70 $(".AdvZone10").css("top", (posY - 110) + "px"); 71 $(".AdvZone12").css("top", (posY - 110) + "px"); 72 $(".AdvZone13").css("top", (posY - 110) + "px"); 73 74 } else { 75 76 $(".AdvZone9").css("top", "0px"); 77 $(".AdvZone10").css("top", "0px"); 78 $(".AdvZone12").css("top", "0px"); 79 $(".AdvZone13").css("top", "0px"); 80 81 } 82 83 }); 84 85 */ 86 87}); 88 89//--------------set background img 90 91$(document).ready(function() { 92 93 if ($('body').attr('style')) { 94 95 if ($('.AdvZone9')) { 96 $('.AdvZone9').html(''); 97 } 98 if ($('.AdvZone10')) { 99 $('.AdvZone10').html(''); 100 } 101 102 if ($('.AdvZone12')) { 103 $('.AdvZone12').html(''); 104 } 105 if ($('.AdvZone13')) { 106 $('.AdvZone13').html(''); 107 } 108 109 } 110 111 var backgrImgWidth = $('.BackgroundImg').find('img').eq(0).attr('width'); 112 var backgrImg = $('.BackgroundImg').find('img').eq(0).attr('src'); 113 114 if (backgrImg && backgrImgWidth > 0) { 115 116 $('.BackgroundImg').find('img').hide(0); 117 // console.log('Background:'+$('.BodyBackground').html()); 118 $('.BodyBackground').css('background-image', 'none;'); 119 120 $('.BodyBackground').css('background-color', '#000000;'); 121 $('.BodyBackground').css('background-image', 'url("' + backgrImg + '")'); 122 123 } else { 124 125 } 126 127}); 128 129//------------------------------------------------------------------------------------------------------------------------
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.