1/*налиÑие или оÑÑÑÑÑÑвие кнопки показаÑÑ-ÑкÑÑÑÑ Ð² завиÑимоÑÑи Ð¾Ñ ÐºÐ¾Ð»Ð»Ð¸ÑеÑÑва div class="block"*/ 2function hideShowblockline() 3{ 4 var w = $(".block_line").width(); 5 var wb = $(".block").outerWidth(true); 6 $(".content_article").each(function() { 7 var i = $(this).children(".block_line").children(".block").length; 8 var wi = i*wb; 9 10 if($(this).children(".hidden_all").parent().children("div").hasClass("block_line")) 11 { 12 if (w > wi) 13 $(this).children(".hidden_all").css("display","none"); 14 else 15 $(this).children(".hidden_all").css("display","block"); 16 } 17 }); 18} 19 20$(window).resize(function(e) { 21 hideShowblockline(); 22}); 23 24$(document).ready(function(){ 25 26 //$('#carousel1,#carousel2').elastislide({ imageW: 718, margin: 0, border: 0 }); 27 //$('#carousel').elastislide({ imageW: 359, margin: 0, border: 0 }); 28 $('#carousel_photo').elastislide({ imageW: 216, margin: 0, border: 0 }); 29 30 // None of the options are set 31 $("#carousel1,#carousel2,#carousel").smoothDivScroll({ 32 autoScrollingMode: "onStart", 33 continuousScrolling: true, 34 manualContinuousScrolling: true 35 }); 36 37/*оÑобÑажение видео в главном окне*/ 38 $(".watch_sidebar a").click(function(e) { 39 $("iframe").attr("src",$(this).attr("href")); 40 $("#player2").hide(); 41 $(".video_block").children("iframe").css("display","block"); 42 return false; 43 }); 44 $(".clips a").click(function(e) { 45 $(".video_block").children("iframe").css("display","none"); 46 $("#player2").show(); 47 return false; 48 }); 49 50/*ÑабоÑа кнопок показаÑÑ-ÑкÑÑÑÑ*/ 51 $(".hidden_all").toggle(function(e) { 52 $(this).parent().children("div").removeClass("block_line"); 53 $(this).text("СкÑÑÑÑ Ð²Ñе"); 54 }, 55 function(e){ 56 $(this).parent().children("div").addClass("block_line"); 57 $(this).text("ÐоказаÑÑ Ð²Ñе"); 58 }); 59 60 hideShowblockline(); 61 62 $('.main_content .links .print').click(function () { 63 $(this).closest('.main_content').jqprint({operaSupport: true, printContainer: false}); 64 return false; 65 }); 66 67 $('.block_line .block').mouseenter(function(){ 68 $(this).find('img').attr('i', $(this).find('img').attr('src')); 69 $(this).find('img').attr('src', $(this).find('img').attr('icon_h')); 70 $(this).find('img').attr('icon_h', $(this).find('img').attr('i')); 71 }).mouseleave(function(){ 72 $(this).find('img').attr('i', $(this).find('img').attr('src')); 73 $(this).find('img').attr('src', $(this).find('img').attr('icon_h')); 74 $(this).find('img').attr('icon_h', $(this).find('img').attr('i')); 75 }); 76/*Ð´Ð»Ñ ÑоÑм поиÑка*/ 77 (function($) { 78 $.fn.autoClear = function () { 79 // ÑÐ¾Ñ ÑанÑем во внÑÑÑеннÑÑ Ð¿ÐµÑеменнÑÑ ÑекÑÑее знаÑение 80 $(this).each(function() { 81 $(this).data("autoclear", $(this).attr("value")); 82 }); 83 $(this) 84 .bind('focus', function() { // обÑабоÑка ÑокÑÑа 85 if ($(this).attr("value") == $(this).data("autoclear")) { 86 $(this).attr("value", "").addClass('autoclear-normalcolor').click(function(e) { 87 return false; 88 });; 89 } 90 }) 91 92 .bind('blur', function() { // обÑабоÑка поÑеÑи ÑокÑÑа 93 if ($(this).attr("value") == "") { 94 $(this).attr("value", $(this).data("autoclear")).removeClass('autoclear-normalcolor'); 95 } 96 }); 97 98 return $(this); 99 } 100 })(jQuery) 101 102 $(".search_input input[type='text']").autoClear(); 103 104 <!-- ÑоÑо галеÑÐµÑ --> 105 $("a.gallery").fancybox({'titlePosition' : 'inside'}); 106 $("a.iframe").fancybox( 107 { 108 "width" : 700, // ÑиÑина окна, px (425px - по ÑмолÑаниÑ)
109 "height" : 500 // вÑÑоÑа окна, px(355px - по ÑмолÑаниÑ) 110 }); 111 $('#player2').each(function(){ 112 flowplayer("player2", "/addons/shared_addons/themes/liga/js/flowplayer/flowplayer-3.2.16.swf", 113 { 114 clip: 115 { 116 baseUrl: 'http://stream.flowplayer.org', 117 autoPlay: false, 118 autoBuffering: true 119 } 120 }).playlist("div.petrol", {loop:true}); 121 }); 122 //set click to button full screen 123 $("#fullscreenPage").click(function() 124 { 125 var i = document.getElementById("fullscreenObject"); 126 if (i.requestFullscreen) { 127 i.requestFullscreen(); 128 } else if (i.webkitRequestFullscreen) { 129 i.webkitRequestFullscreen(); 130 } else if (i.mozRequestFullScreen) { 131 i.mozRequestFullScreen(); 132 } else if (i.msRequestFullscreen) { 133 i.msRequestFullscreen(); 134 } 135 $("#fullscreenObject embed").width("100%"); 136 $("#fullscreenObject embed").height("100%"); 137 138 /*width: 100%; 139height: 100%; 140position: absolute; 141top: 0; 142left: 0;*/ 143 144 145 146 }); 147});
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.