1/** 2 * Created by chen on 2018/11/28. 3 */ 4var isscroll = false; 5$(document).ready(function(){ 6 $('.nav_hover,.person_box').mouseover(function(){ 7 $(this).addClass('on'); 8 //$('.nav_item_sonlist').show(); 9 }).mouseout(function(){ 10 $(this).removeClass('on'); 11 //$('.nav_item_sonlist').hide(); 12 }); 13 $('.nav_hover').click(function(){ 14 if($(this).hasClass('c_on')){ 15 $(this).removeClass('c_on'); 16 }else{ 17 $(this).addClass('c_on'); 18 } 19 }) 20 $('.tel_manu').click(function(){ 21 if(!$('.nav_list').hasClass('on')){ 22 $('.login_bg').show(); 23 }else{ 24 $('.login_bg').hide(); 25 } 26 $('.nav_list').toggleClass('on'); 27 }) 28 29 if($(window).width()<768){ 30 $('.lang_sel').click(function(){ 31 if($(this).hasClass('onhover')){ 32 $(this).removeClass('onhover'); 33 $('.index_lang_list').hide(); 34 }else{ 35 $(this).addClass('onhover'); 36 $('.index_lang_list').show(); 37 } 38 }) 39 }else{ 40 $('.lang_sel').mouseover(function(){ 41 $(this).addClass('onhover'); 42 $('.index_lang_list').show(); 43 }).mouseout(function(){ 44 $(this).removeClass('onhover'); 45 $('.index_lang_list').hide(); 46 }); 47 } 48 var remembershow = false; 49 $('.denglu,.nologin,.person_img').click(function(){ 50 $('.nav_list').removeClass('on'); 51 if($('.index_login').hasClass('login_show')){ 52 $('.register_box .close').trigger("click"); 53 }else{ 54 $('.index_login').addClass('login_show'); 55 $('#imgVercode11').attr('src', '/index/yzm/index.html'); 56 $("input[name='fverify_code']").val(''); 57 $('.login_bg').show(); 58 $('.fixed_register').removeClass('reg_show'); 59 $('.protocol_box').removeClass('on'); 60 $('.fixed_forgot').removeClass('reg_show'); 61 if(remembershow) return; 62 remembershow = true; 63 var webremember = localStorage.getItem("rememberData"); 64 if(webremember){ 65 webremember = JSON.parse(webremember); 66 if(webremember['phone']){ 67 $('#flog_phone').val(webremember['phone']).parent().addClass('on'); 68 } 69 if(webremember['name']){ 70 $('#flog_name').val(webremember['name']).parent().addClass('on'); 71 } 72 $('#fpwd').val(webremember['password']).parent().addClass('on'); 73 $('#remember').attr('checked','checked'); 74 } 75 } 76 }) 77 $('.login_bg').click(function(event){ 78 event.stopPropagation(); 79 $('.nav_list').removeClass('on'); 80 if($('.fixed_register').hasClass('reg_show')) return; 81 $('.index_login').removeClass('login_show'); 82 //$('.fixed_register').removeClass('reg_show'); 83 $('.protocol_box').removeClass('on'); 84 $('.fixed_forgot').removeClass('reg_show'); 85 $(this).hide(); 86 $('.alerttip_a').hide(); 87 //$('.index_user').slideUp(); 88 $('.jjcs_select').height(""); 89 }) 90 $('.register_box .close').click(function(){ 91 $('.fixed_register').removeClass('reg_show'); 92 $('.login_bg').trigger("click"); 93 }) 94 $(document).on('click','#register_no',function(){ 95 $('.index_login').removeClass('login_show'); 96 //$('.index_user').slideUp(); 97 $('.jjcs_select').height(""); 98 $('.fixed_register').addClass('reg_show'); 99 $('.myreg_content').show(); 100 $('.my_reg_yzm').hide(); 101 $('.login_bg').show(); 102 }) 103 104 $(document).on('click','.login_left',function(){ 105 $('.denglu').trigger("click"); 106 }) 107 108 $(document).on('click','#forgot_no',function(){ 109 $('.index_login').removeClass('login_show'); 110 //$('.index_user').slideUp(); 111 $('.jjcs_select').height(""); 112 $('.forgot_title').show(); 113 $('.fixed_forgot').addClass('reg_show'); 114 $('#jycode').html(htmlyzm); 115 $('.login_bg').show(); 116 }) 117 118 //$('.person_img').click(function(){ 119 // $('.index_user').slideToggle(); 120 // $('.login_bg').toggle(); 121 //}) 122 123 $('.line_pos').mouseover(function(){ 124 var w = $(this).width() 125 var l = $(this).position().left; 126 $(this).nextAll('.line_pos_bottom').css({"width":w,"left"
126:l}); 127 }).mouseout(function(){ 128 $(this).nextAll('.line_pos_bottom').css({"width":0}); 129 }); 130 131 $('.db_icon a').mouseover(function(){ 132 $(this).find('img').attr("src","/static/images/bottom-icon-"+($(this).index()+1)+"-1.png"); 133 }).mouseout(function(){ 134 $(this).find('img').attr("src","/static/images/bottom-icon-"+($(this).index()+1)+".png"); 135 }); 136 137 var scrolltime = ''; 138 var scrollt = $(window).scrollTop(); 139 $(window).scroll(function(e) { 140 clearTimeout(scrolltime); 141 isscroll = true; 142 if($('.jt_index_2_list').hasClass('jt_index_2_list')){ 143 var htmltop = $('.index2_img1').offset().top-$(window).height(); 144 if($(window).scrollTop() > htmltop){ 145 $('.jt_index_2_listbox>div img').addClass('on') 146 } 147 } 148 if(!($('.index_foot_right').hasClass('in'))){ 149 if(!($('.index_foot_right').hasClass('index_foot_right'))) return; 150 var htmltop1 = $('.index_foot_right').offset().top-$(window).height(); 151 if($(window).scrollTop() > htmltop1){ 152 $('.index_foot_right').addClass('in') 153 } 154 } 155 if($(window).scrollTop()<=62){ 156 $('.index_top').stop(true,false).slideDown("fast"); 157 $('.gotop,.db_cont').hide(); 158 // $('.index_page.index_db_callbox').hide(); 159 return; 160 } 161 $('.db_cont,.gotop,.index_page.index_db_callbox').show(); 162 if(Math.abs(scrollt-$(window).scrollTop())<=5) return; 163 if(scrollt>$(window).scrollTop()){ 164 $('.index_top').stop(true,false).slideDown("fast"); 165 // scrolltime = setTimeout(function(){ 166 // $('.index_top').stop(true,false).slideUp("fast"); 167 // },10000) 168 }else{ 169 $('.index_top').stop(true,false).slideUp("fast"); 170 } 171 scrollt = $(window).scrollTop(); 172 }); 173 $(window).bind('mousewheel', function(event, delta) { 174 $("html,body").stop(); 175 }) 176}) 177 178function cancellogin(){ 179 $('.index_login').removeClass('login_show'); 180 $(".login_bg").hide(); 181} 182 183function scrolltop(bqian){ 184 setTimeout(function(){ 185 if(isscroll) return; 186 $("html,body").animate({scrollTop:$("."+bqian).offset().top},500); 187 },500) 188} 189 190function goTop(){ 191 $("html,body").animate({scrollTop:0},300); 192 $('.gotop').hide(); 193} 194 195function chackyz(){//夿éªè¯æ¯å¦è¿æ 196 var ischack = sessionStorage.getItem('ischack'); 197 if(ischack){ 198 var ckyz = new Date().getTime()-Number(ischack); 199 if(Math.abs(ckyz)/1000<1800){ 200 return true; 201 } 202 } 203 return false; 204} 205 206function loadScript(url,callback) { 207 var script=document.createElement("script"); 208 script.type="text/javascript"; 209 if(script.readyState){ // ie游è§å¨ 210 script.onreadystatechange=function () { 211 if(script.readyState=="loaded" || script.readyState=="complete"){ 212 script.onreadystatechange=null; 213 callback(); 214 } 215 } 216 }else { //å ¶ä» 217 script.onload=function () { 218 callback(); 219 } 220 }; 221 script.src=url; 222 document.getElementsByTagName("head")[0].appendChild(script); 223}
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.