1/* 2 * Powered by ueeshop.com http://www.ueeshop.com 3 * 广å·èé ç½ç»ç§ææéå ¬å¸ 020-83226791 4 */ 5 6$(document).ready(function() { 7 //è¿ä¸ªä¸è¦å é¤ è¿éæç¨å° 8 function MainDefaultNavShow(Type,Time){ 9 //Type : æ¯å¦éæ°æ£æµå¯¼èª Time : æ£æµæ¶é´é´é 10 var $obj=$('.default_nav'), 11 navItemWidth=0; 12 if ($obj.length) { 13 var navWidth= $obj[0].getBoundingClientRect().width ? $obj[0].getBoundingClientRect().width : $obj.width(); 14 $obj.css('overflow', 'visible').children('li').each(function(){ 15 var $width = $(this)[0].getBoundingClientRect().width; 16 if(!$width) $width=$(this).outerWidth(true); 17 navItemWidth+=$width; 18 if(navItemWidth>navWidth){ 19 $(this).hide(); 20 }else{ 21 $(this).show(); 22 } 23 }); 24 if (Type) { //宿¶æ£æµå¯¼èª 鲿¢ç¹æ®åä½å è½½æ ¢å¯¼è´å¯¼èªæä¸æ¥ 25 Time = Time * 2; 26 setTimeout(function(){ 27 MainDefaultNavShow(1, Time); 28 }, Time); 29 } 30 } 31 } 32 // 导èªç½®é¡¶ 33 $(window).scroll(function() { 34 var topp = $(document).scrollTop(), 35 header_height = $('.bx_nav_one').height(); 36 if (topp > header_height ){ 37 $('.bx_nav_one').addClass('header_fixed header_top_fixed'); 38 MainDefaultNavShow(); 39 } else { 40 $('.bx_nav_one').removeClass('header_fixed header_top_fixed'); 41 MainDefaultNavShow(); 42 } 43 }) 44 45 //åºé¨æ ç® 46 $('.default_foot_menu .menu_list dt').click(function() { 47 if ($(window).width() < 1000) { 48 var obj = $(this).parent(); 49 if (obj.hasClass('focus')) { 50 obj.removeClass('focus'); 51 } else { 52 obj.addClass('focus'); 53 } 54 } 55 }); 56});
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.