1var globalSelectorForHide = ".resizehider"; 2var globalPopupSelector = ".item-popup"; 3 4function FixTableForCatalogList(obj) 5{ 6 if($('.catalog_list_inner').length>0) 7 { 8 $('.catalog_list-popup-top').css('width', $('.catalog_list_inner').outerWidth()+4 ); 9 } else if($('.catalog_blocks-item').length>0) 10 { 11 $('.catalog_list-popup-top').css('width', $('.catalog_blocks-item').outerWidth()+2 ); 12 } 13 14 if($('.catalog_list_inner').length>0) 15 { 16 $('.catalog_list-popup-bottom').css('width', $('.catalog_list_inner').outerWidth()+4 ); 17 } else if($('.catalog_blocks-item').length>0) 18 { 19 $('.catalog_list-popup-bottom').css('width', $('.catalog_blocks-item').outerWidth()+2 ); 20 } 21 22 if($('.catalog_list_inner').length>0 && obj) 23 { 24 $('.catalog_list-popup-left').css('height', obj.find('.catalog_list_inner').outerHeight()+4 ); 25 } else if($('.catalog_blocks-item').length>0) 26 { 27 $('.catalog_list-popup-left').css('height', $('.catalog_blocks-item').outerHeight()+2 ); 28 } 29 30 if($('.catalog_list_inner').length>0 && obj) 31 { 32 $('.catalog_list-popup-right').css('height', obj.find('.catalog_list_inner').outerHeight()+4 ); 33 } else if($('.catalog_blocks-item').length>0) 34 { 35 $('.catalog_list-popup-right').css('height', $('.catalog_blocks-item').outerHeight()+2 ); 36 } 37} 38 39function OnResizeHandler() 40{ 41 var maxWidth = 1180; 42 var minWidth = 960; 43 var wrapWidth = $('#wrap').outerWidth(); 44 var bodyWidth = $('body').outerWidth(); 45 46 if(wrapWidth>maxWidth && !$('#wrap').hasClass('wrap-big')) 47 { 48 $('#wrap').addClass('wrap-big'); 49 $('#wrap_analog').addClass('wrap-big'); 50 $('.leftbanners_hide').show(); 51 $(globalSelectorForHide).show(); 52 } else if(wrapWidth<minWidth && !$('#wrap').hasClass('wrap-small')) 53 { 54 $('#wrap').addClass('wrap-small'); 55 $('#wrap_analog').addClass('wrap-small'); 56 $('.leftbanners_hide').hide(); 57 $(globalSelectorForHide).hide(); 58 } else if(bodyWidth<maxWidth && bodyWidth>minWidth) { 59 $('#wrap').removeClass('wrap-small'); 60 $('#wrap').removeClass('wrap-big'); 61 $('#wrap_analog').removeClass('wrap-small'); 62 $('#wrap_analog').removeClass('wrap-big'); 63 $('.leftbanners_hide').hide(); 64 $(globalSelectorForHide).hide(); 65 } 66 67 FixTableForCatalogList(); 68} 69 70$(document).ready(function(){ 71 /* wrap width */ 72 OnResizeHandler(); 73 $(window).resize(function(){ 74 OnResizeHandler(); 75 }); 76 /* /wrap width */ 77 78 /* catalog */ 79 /* for blocks */ 80 $('.sec-blocks .item').bind('mouseenter',function(){ 81 if($(this).children(globalPopupSelector).length>0) 82 $(this).children(globalPopupSelector).show(); 83 }); 84 $('.sec-blocks .item').bind('mouseleave',function(){ 85 if($(this).children(globalPopupSelector).length>0) 86 $(this).children(globalPopupSelector).hide(); 87 }); 88 /* for table */ 89 $('.catalog_list_div_element, .catalog_blocks-item').bind('mouseenter',function(){ 90 FixTableForCatalogList( $(this) ); 91 if($(this).children(globalPopupSelector).length>0) 92 $(this).children(globalPopupSelector).show(); 93 }); 94 $('.catalog_list_div_element, .catalog_blocks-item').bind('mouseleave',function(){ 95 if($(this).children(globalPopupSelector).length>0) 96 $(this).children(globalPopupSelector).hide(); 97 }); 98 /* /catalog */ 99 100 /* hover table */ 101 if($.browser.opera) 102 { 103 /* 104 $('.js-hover-tr').bind('mouseenter',function(){ 105 var obj = $(this); 106 obj.children('td').css('borderTop', '0px solid #C6C6C6'); 107 obj.children('td').css('borderBottom', '0px solid #C6C6C6'); 108 obj.children('td:last').css('borderRight', '0px solid #C6C6C6'); 109 obj.children('td:first').css('borderLeft', '0px solid #C6C6C6'); 110 if(obj.prev().hasClass('js-hover-tr')) 111 obj.prev().children('td').css('borderBottom', '0px solid #C6C6C6'); 112 if(obj.next().hasClass('js-hover-tr')) 113 obj.next().children('td').css('borderTop', '0px solid #C6C6C6'); 114 setTimeout(function(){ 115 obj.children('td').css('borderTop', '1px solid #11ACDA'); 116 obj.children('td').css('borderBottom', '1px solid #11ACDA'); 117 obj.children('td:last').css('borderRight', '1px solid #11ACDA'); 118 obj.children('td:first').css('borderLeft', '1px solid #11ACDA'); 119 },1); 120 }); 121 $('.js-hover-tr').bind('mouseleave',function(){ 122 var obj = $(this); 123 obj.children('td').css('borderTop', '0px solid #C6C6C6'); 124 obj.children('td').css('borderBottom', '0px solid #C6C6C6'); 125 obj.children('td:last').css('borderRight', '0px solid #C6C6C6'); 126 obj.children('td:first').css('borderLeft', '0px solid #C6C6C6'); 127 setTimeout(function(){ 128 obj.children('td').css('borderTop', '1px solid #C6C6C6'); 129 obj.children('td').css('borderBottom', '1px solid #C6C6C6'); 130 obj.children('td:last').css('borderRight', '1px solid #C6C6C6'); 131 obj.children('td:first').css('borderLeft', '1px solid #C6C6C6'); 132 },1); 133 }); 134 */ 135 } else {
136 $('.js-hover-tr').bind('mouseenter',function(){ 137 var obj = $(this); 138 obj.children('td').css('borderTop', '1px solid #11ACDA'); 139 obj.children('td').css('borderBottom', '1px solid #11ACDA'); 140 obj.children('td:last').css('borderRight', '1px solid #11ACDA'); 141 obj.children('td:first').css('borderLeft', '1px solid #11ACDA'); 142 if(obj.prev().hasClass('js-hover-tr')) 143 obj.prev().children('td').css('borderBottom', '0px solid #C6C6C6'); 144 }); 145 $('.js-hover-tr').bind('mouseleave',function(){ 146 var obj = $(this); 147 obj.children('td').css('borderTop', '1px solid #C6C6C6'); 148 obj.children('td').css('borderBottom', '1px solid #C6C6C6'); 149 obj.children('td:last').css('borderRight', '1px solid #C6C6C6'); 150 obj.children('td:first').css('borderLeft', '1px solid #C6C6C6'); 151 }); 152 } 153 154 $('.js-hover-tr').children('td').css('borderTop','1px solid #C6C6C6'); 155 $('.js-hover-tr').children('td').css('borderBottom','1px solid #C6C6C6'); 156 /* /hover table */ 157 158 159});
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.