1/////////////////////////////////////////////////// 2document.createElement("header"); 3document.createElement("nav"); 4document.createElement("article"); 5document.createElement("footer"); 6document.createElement("time"); 7document.createElement("section"); 8/////////////////////////////////////////////////// 9var loadtext = 'å è½½ä¸...'; 10/////////////////////////////////////////////////// 11var splitDateT = function (t, fmt) { 12 var t1 = t.split('T')[0]; 13 var t2 = t.split('T')[1]; 14 var t3 = t1.split('-'); 15 var t4 = t2.split(':'); 16 fmt = fmt.replace('yyyy', t3[0]); 17 fmt = fmt.replace('MM', t3[1]); 18 fmt = fmt.replace('dd', t3[2]); 19 fmt = fmt.replace('hh', t4[0]); 20 fmt = fmt.replace('mm', t4[1]); 21 fmt = fmt.replace('ss', t4[2]); 22 return fmt; 23} 24function eajax(url, data, fun) { 25 var _dataType = "POST"; 26 if (data.dataType && data.dataType == "GET") { 27 return $.get(url, data, function (json, status) { 28 if (typeof (json) != "string") { 29 //console.log("success:", json); 30 if (fun) fun(json); 31 } 32 if (json) { 33 if (fun) fun(json); 34 } 35 }); 36 } else { 37 return $.post(url, data, function (json, status) { 38 if (typeof (json) != "string") { 39 //console.log("success:", json); 40 if (fun) fun(json); 41 } else if (json) { 42 if (fun) fun(json); 43 } 44 }); 45 } 46} 47 48$("<link>") 49 .attr({ rel: "stylesheet", 50 type: "text/css", 51 href: "//at.alicdn.com/t/c/font_2613794_qnwx4xqx4c.css" 52 }) 53.appendTo("head"); 54 55/*--------------å享--------------*/ 56// window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"24"},"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)]; 57 58/*--------------éç¨å¤´é¨ãåºé¨--------------*/ 59$(function () { 60 $.ajax({ url: "/include/top.html?v0.1", async:false, success: function (x) { $('.headbox').html(x); } }); 61 $.ajax({ url: "/include/foot.html?v0.1", async:false, success: function (x) { $('.footbox').html(x); } }); 62 $.ajax({ url: "/include/mobile-menu.html", async: false, success: function (x) { $('#cd-lateral-nav').html(x); } }); 63}); 64/*--------------end--------------*/ 65 66/*--------------gototop--------------*/ 67$(document).scroll(function(){ 68 var scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop; 69 if(scrollTop > 0){ 70 $(".suspendBtn").fadeIn(); 71 72 $("#gototop").fadeIn(); 73 }else{ 74 $(".suspendBtn").fadeOut(); 75 76 $("#gototop").fadeOut(); 77 } 78}) 79 80$(document).scroll(function(){ 81 var scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop; 82 if(scrollTop > 0){ 83 $(".headbox").addClass("current"); 84 $("#gototop").fadeIn(); 85 }else{ 86 $(".headbox").removeClass("current"); 87 $("#gototop").fadeOut(); 88 } 89 if(typeof(scrollTopFun)=="function"){ 90 scrollTopFun(scrollTop); 91 } 92}) 93 94function goTop(acceleration, time) { 95 acceleration = acceleration || 0.1; 96 time = time || 12; 97 98 var x1 = 0; 99 var y1 = 0; 100 var x2 = 0; 101 var y2 = 0; 102 var x3 = 0; 103 var y3 = 0; 104 105 if (document.documentElement) { 106 x1 = document.documentElement.scrollLeft || 0; 107 y1 = document.documentElement.scrollTop || 0; 108 } 109 if (document.body) { 110 x2 = document.body.scrollLeft || 0; 111 y2 = document.body.scrollTop || 0; 112 } 113 var x3 = window.scrollX || 0; 114 var y3 = window.scrollY || 0; 115 116 // æ»å¨æ¡å°é¡µé¢é¡¶é¨çæ°´å¹³è·ç¦» 117 var x = Math.max(x1, Math.max(x2, x3)); 118 // æ»å¨æ¡å°é¡µé¢é¡¶é¨çåç´è·ç¦» 119 var y = Math.max(y1, Math.max(y2, y3)); 120 121 // æ»å¨è·ç¦» = ç®åè·ç¦» / é度, å 为è·ç¦»åæ¥è¶å°, é度æ¯å¤§äº 1 çæ°, æä»¥æ»å¨è·ç¦»ä¼è¶æ¥è¶å° 122 var speed = 1 + acceleration;
123 window.scrollTo(Math.floor(x / speed), Math.floor(y / speed)); 124 125 // 妿è·ç¦»ä¸ä¸ºé¶, ç»§ç»è°ç¨è¿ä»£æ¬å½æ° 126 if(x > 0 || y > 0) { 127 var invokeFunction = "goTop(" + acceleration + ", " + time + ")"; 128 window.setTimeout(invokeFunction, time); 129 } 130} 131 132 133/*--------------éç¹å¹³æ»æ»å¨--------------*/ 134// $(function(){ 135// $('a[href*=#],area[href*=#]').click(function() { 136 137// if($(this).attr("href").indexOf("tab")>-1){ return;} 138// if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) { 139// var $target = $(this.hash); 140// $target = $target.length && $target || $('[name=' + this.hash.slice(1) + ']'); 141// if ($target.length) { 142// var targetOffset = $target.offset().top; 143// $('html,body').animate({ 144// scrollTop: targetOffset 145// }, 146// 1000); 147// return false; 148// } 149// } 150// }); 151// }) 152/*--------------end--------------*/ 153 154if ($(window).width() > 800) { 155 $(window).bind("load resize", function () { 156 $(".inside-titlebox").css({"right":($(window).width() - $(".container").width())*0.5}); 157 $(".insidekv, .newskv").css({"height":($(window).height() * 0.6) }); 158 }); 159}else{ 160 $(window).bind("load resize", function () { 161 $(".insidekv, .newskv").css({"height":($(window).height() * 0.4) }); 162 }); 163} 164 165// å è½½æ´å¤ 166function clk( v,m ){ 167 var odiv = $("#"+m); 168 if( odiv.css("display") != "block"){ 169 odiv.slideToggle(); 170 v.innerHTML="- éèæ´å¤"; 171 }else{ 172 odiv.slideToggle(); 173 v.innerHTML ="+ å è½½æ´å¤"; 174 } 175} 176 177function _Ajax(url, parments, call) { 178 var _parments = {}; 179 _parments.data = parments; 180 if (parments != null && parments.dataType) { 181 _parments.dataType = parments.dataType; 182 } else { 183 _parments.dataType = "JSON"; 184 } 185 _parments.type = "POST"; 186 _parments.url = url == "" ? window.location : url; 187 _parments.success = function (e) { 188 if (call) { 189 call(e); 190 } 191 }; 192 //_parments.error = function (XMLHttpRequest, textStatus, errorThrown) { 193 // alert(textStatus); 194 //}; 195 var ajax_obj = $.ajax(_parments); 196 return ajax_obj; 197} 198var splitDateT = function (t, fmt) { 199 var t1 = t.split('T')[0]; 200 var t2 = t.split('T')[1]; 201 var t3 = t1.split('-'); 202 //var t4 = t2.split(':'); 203 fmt = fmt.replace('yyyy', t3[0]); 204 fmt = fmt.replace('MM', t3[1]); 205 fmt = fmt.replace('dd', t3[2]); 206 //fmt = fmt.replace('hh', t4[0]); 207 //fmt = fmt.replace('mm', t4[1]); 208 //fmt = fmt.replace('ss', t4[2]); 209 return fmt; 210} 211 212//ç¾åº¦ç»è®¡ 213// var _hmt = _hmt || []; 214// (function() { 215// var hm = document.createElement("script"); 216// hm.src = "https://hm.baidu.com/hm.js?7ed5119f68d6d3b663540b65ce571722"; 217// var s = document.getElementsByTagName("script")[0]; 218// s.parentNode.insertBefore(hm, s); 219// })();
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.