1 2//æ®é产åç®å½ 3 4 5var aaa = document.getElementsByTagName('div'); 6 var j =0; 7 for(i=0;i<aaa.length;i++) 8 { 9 if(aaa[i].id.indexOf('submenu_')>-1 && j ==0 ) 10 { 11 aaa[i].style.display = ''; 12 break; 13 } 14 } 15function showsubmenu(sid) 16{ 17 var aaa = document.getElementsByTagName('div'); 18 var j =0; 19 for(i=0;i<aaa.length;i++) 20 { 21 if(aaa[i].id.indexOf('submenu_')>-1) 22 aaa[i].style.display = 'none'; 23 } 24 var bbb = document.getElementById("submenu_" + sid ); 25 bbb.style.display= ''; 26} 27 28 29/*ç½ç«å¯¼èªç¹å»äºä»¶*/ 30var menu_flag=0; 31$('.btn-menu').click(function(event){ 32 if(menu_flag==0){ 33 $(this).toggleClass('active'); 34 $('.navigation').slideToggle(300); 35 menu_flag=1; 36 }else{ 37 $(this).toggleClass('active'); 38 $('.navigation').slideToggle(300); 39 menu_flag=0; 40 } 41 event.stopPropagation(); 42}); 43 44 45$(function() { 46 var menu_tit_flag=0; 47 $(".pro_btn").click(function(){ 48 $(".cp_left .pro_list").slideToggle(); 49 if(menu_tit_flag==0){ 50 $(this).children('a').html('ç¹å»æ¶èµ· -'); 51 menu_tit_flag=1; 52 }else{ 53 $(this).children('a').html('ç¹å»å±å¼+'); 54 menu_tit_flag=0; 55 } 56 }) 57 }) 58 59 $(window).resize(function(){ 60 if($(this).width()>767) { 61 $(".cp_left .pro_list").show(); 62 } 63 }) 64 65 66 $(function(){ 67 $('.cp_left ul.pro_list li').first().find('.protlt dt').addClass('on'); 68 $('.cp_left ul.pro_list li').first().children('.protlt_bd').show(); 69 }) 70 71 $('.cp_left ul.pro_list li .protlt dt').click(function(){ 72 $(this).parents('li').children('.protlt_bd').toggle(); 73 $(this).toggleClass('on'); 74 }); 75 $(".cp_left ul.pro_list li .protlt dt").click(function(event){ 76 event.stopPropagation(); 77 }); 78 79 80/*详æ é¡µè¡¨æ ¼ å¼å§*/ 81$(function() { 82var fuji = $('#c_detail_wrap table').parent(); 83if(fuji.length>0) { 84 $('#c_detail_wrap table').wrap("<section id='new-div'></section>"); 85 $('#new-div').prepend("<section class='zoom-caret'>+</section>"); 86} 87 88 var h_table; 89 var flag_table=0; 90 91 function setTable() { 92 var lxl=1; 93 94 $('section#new-div').removeClass('on'); 95 $('section#new-div').scrollTop(0,0); 96 $("section#new-div table,section#new-div table td").removeAttr("width"); 97 $("section#new-div table,section#new-div table td").removeAttr("height"); 98 $("section#new-div table").css('width','initial'); 99 $("section#new-div table td").css('width','initial'); 100 $("section#new-div table td").css('height','initial'); 101 102 $('#c_detail_wrap table').each(function() { 103 if ( matchMedia( 'only screen and (max-width:1199px)' ).matches ) { 104 var zclientWidth=$(document).outerWidth(); 105 var ztableWidth=$(this).outerWidth(); 106 var zscale=zclientWidth/ztableWidth*0.871546673799; 107 lxl=zscale; 108 if(lxl>1){lxl=1;} 109 } 110 $(this).css("transform","scale(" + lxl + ")"); 111 var h_table=$(this).height(); 112 $(this).parent('section#new-div').height(h_table*lxl+10); 113 }); 114 } 115 116 $("#c_detail_wrap table").on('click',function(){ 117 if ( matchMedia( 'only screen and (max-width:1199px)' ).matches ) { 118 if(flag_table==0){ 119 $(this).parent('section#new-div').addClass('on'); 120 $(this).parent('section#new-div').children('table').css("transform","scale(" + 1 + ")"); 121 $(this).parent('section#new-div').height(h_table); 122 flag_table=1; 123 }else{ 124 setTable(); 125 flag_table=0; 126 } 127 } 128}); 129 $("#c_detail_wrap #new-div .zoom-caret").on('click',function(){ 130 if ( matchMedia( 'only screen and (max-width:1199px)' ).matches ) { 131 if(flag_table==0){ 132 $(this).parent('section#new-div').addClass('on'); 133 $(this).parent('section#new-div').children('table').css("transform","scale(" + 1 + ")"); 134 $(this).parent('section#new-div').height(h_table); 135 flag_table=1; 136 }else{ 137 setTable(); 138 flag_table=0; 139 } 140 } 141 }); 142 143 144 /*è°ç¨æ¹æ³*/ 145 setTable(); 146 147 $(window).resize(function() { 148 /*è°ç¨æ¹æ³*/ 149 setTable(); 150 }); 151 152 /*产å详æ 页ç¹å»tab忢*/ 153 $(".nyprodetail2 .hd span").on('click',function(){ 154 var num1=$(this).index(); 155 $(".nyprodetail2 .bd>section").eq(num1).show().siblings('.nyprodetail2 .bd>section').hide(); 156 $(this).addClass('on').siblings('.nyprodetail2 .hd span').removeClass('on'); 157 158 /*è°ç¨æ¹æ³*/ 159 setTable() 160 }); 161 162}); 163/*详æ é¡µè¡¨æ ¼ ç»æ*/
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.