1window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdPic":"","bdStyle":"0","bdSize":"16"},"share":{},};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)]; 2$(document).on('click','.i-source_label',function(e){ 3 if(e.target.tagName.toUpperCase()=='LABEL'){ 4 5 var elenName = $(this).find("input").prop("name"); 6 $('input[name='+elenName+']').parent('label').removeClass('checked'); 7 $(this).addClass('checked'); 8 9 } 10}); 11function iNews() { 12 var index = $('.i-source_left li.active').index(); 13 /*$('.i-source_right').show();*/ 14 $('.i-source_right .i-source_c').eq(index).show(); 15 var num = $('.i-source_left li').length; 16 17 $('.i-source_left ul').on('click', 'li', function() { 18 index = $(this).index(); 19 for(var i=0; i<num; i++) { 20 $('.i-source_left li').eq(i).removeClass('active'); 21 $('.i-source_right .i-source_c').eq(i).hide(); 22 } 23 $(this).addClass('active'); 24 $('.i-source_right .i-source_c').eq(index).show(); 25 }); 26} 27iNews(); 28function iNews1() { 29 var index = $('.i-news_title li a.active').index(); 30 $('.i-news_con .i-news_c').eq(index).show(); 31 var num = $('.i-news_title li').length; 32 33 $('.i-news_title ul').on('mouseenter', 'li', function () { 34 35 index = $(this).index(); 36 var kid = $('.i-news_title li a').eq(index).attr("data-id"); 37 //console.log(kid, $('.i-news_title li a').eq(index).html()) 38 if (kid) { 39 $("#more").attr("href", "/article/index/" + kid); 40 } 41 for(var i=0; i<num; i++) { 42 $('.i-news_title li a').eq(i).removeClass('active'); 43 $('.i-news_con .i-news_c').eq(i).hide(); 44 } 45 $(this).find("a").addClass('active'); 46 $('.i-news_con .i-news_c').eq(index).show(); 47 }); 48} 49iNews1(); 50$(function(){ 51 $(".lian_top").click(function(){ 52 $(".lian_list").slideToggle(); 53 }); 54 $(".i-source_title").click(function(){ 55 $(".i-source_bottom").slideToggle(200); 56 $(this).toggleClass("source_active"); 57 }); 58 $(".select_list li").click(function(){ 59 $(".select_list li.active").removeClass("active"); 60 $(this).addClass("active"); 61 }); 62 }); 63$(function(){ 64 /*$('.about_list>ul>li').eq(0).find(".hold_menu").slideDown('slow');*/ 65 var index1 = $('.about_list>ul>li.active').index(); 66 $('.about_list>ul>li').eq(index1).find(".hold_menu").slideDown('slow'); 67 $('.about_list>ul>li').eq(index1).find(".hold_icon").addClass('nav-on') 68 $(".about_list>ul>li").each(function (index, el) { 69 if ($(this).find(".hold_menu a").length > 0) { 70 $(this).find("a:first").removeAttr("href"); 71 $(this).on('click', 'a:first-child', function () { 72 if (!$(this).siblings("span.hold_icon").hasClass('nav-on')) { 73 console.log("1") 74 $('.about_list>ul>li .nav-on').removeClass('nav-on'); 75 $('.about_list>ul>li .hold_menu').slideUp('slow'); 76 $('.about_list>ul>li.active').removeClass('active'); 77 78 $(this).siblings("span.hold_icon").addClass('nav-on'); 79 $(this).addClass('active'); 80 $(this).siblings('div.hold_menu').slideDown('slow'); 81 } 82 else { 83 console.log("2") 84 $(this).siblings("span.hold_icon").removeClass('nav-on'); 85 $(this).siblings('div.hold_menu').slideUp('slow'); 86 87 } 88 }); 89 } 90 }) 91 92 $('.about_list>ul>li').on('click','span.hold_icon',function(){ 93 if(!$(this).hasClass('nav-on')){ 94 $('.about_list>ul>li .nav-on').removeClass('nav-on'); 95 $('.about_list>ul>li .hold_menu').slideUp('slow'); 96 $('.about_list>ul>li.active').removeClass('active'); 97 98 $(this).addClass('nav-on'); 99 $(this).parent("li").addClass('active'); 100 $(this).siblings('div.hold_menu').slideDown('slow'); 101 } 102 else{ 103 $(this).removeClass('nav-on'); 104 $(this).siblings('div.hold_menu').slideUp('slow'); 105 106 } 107 }); 108 }); 109/*$(function(){ 110 $(".about_menu").click(function(){ 111 $(".know_list").slideToggle(); 112 }); 113 $(".header_share a.header_one").mouseover(function(){ 114 $(".bdshare_popup_box").css('display','none'); 115 }); 116 });*/ 117function gotoTop(acceleration,stime) { 118 acceleration = acceleration || 0.1; 119 stime = stime || 10; 120 var x1 = 0; 121 var y1 = 0; 122 var x2 = 0; 123 var y2 = 0; 124 var x3 = 0; 125 var y3 = 0; 126 if (document.documentElement) { 127 x1 = document.documentElement.scrollLeft || 0; 128 y1 = document.documentElement.scrollTop || 0; 129 } 130 if (document.body) { 131 x2 = document.body.scrollLeft || 0; 132 y2 = document.body.scrollTop || 0; 133 } 134 var x3 = window.scrollX || 0; 135 var y3 = window.scrollY || 0; 136 137 // æ»å¨æ¡å°é¡µé¢é¡¶é¨çæ°´å¹³è·ç¦» 138 var x = Math.max(x1, Math.max(x2, x3)); 139 // æ»å¨æ¡å°é¡µé¢é¡¶é¨çåç´è·ç¦» 140 var y = Math.max(y1, Math.max(y2, y3)); 141 142 // æ»å¨è·ç¦» = ç®åè·ç¦» / é度, å 为è·ç¦»åæ¥è¶å°, é度æ¯å¤§äº 1 çæ°, æä»¥æ»å¨è·ç¦»ä¼è¶æ¥è¶å° 143 var speeding = 1 + acceleration;
144 window.scrollTo(Math.floor(x / speeding), Math.floor(y / speeding)); 145 146 // 妿è·ç¦»ä¸ä¸ºé¶, ç»§ç»è°ç¨å½æ° 147 if(x > 0 || y > 0) { 148 var run = "gotoTop(" + acceleration + ", " + stime + ")"; 149 window.setTimeout(run, stime); 150 } 151} 152 153 154 155 156 157
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.