1/////////////////////////////////////////////////// 2document.createElement("header"); 3document.createElement("nav"); 4document.createElement("article"); 5document.createElement("footer"); 6document.createElement("time"); 7document.createElement("section"); 8 9/////////////////////////////////////////////////// 10var loadtext = 'å è½½ä¸...'; 11/////////////////////////////////////////////////// 12var splitDateT = function (t, fmt) { 13 var t1 = t.split('T')[0]; 14 var t2 = t.split('T')[1]; 15 var t3 = t1.split('-'); 16 var t4 = t2.split(':'); 17 fmt = fmt.replace('yyyy', t3[0]); 18 fmt = fmt.replace('MM', t3[1]); 19 fmt = fmt.replace('dd', t3[2]); 20 fmt = fmt.replace('hh', t4[0]); 21 fmt = fmt.replace('mm', t4[1]); 22 fmt = fmt.replace('ss', t4[2]); 23 return fmt; 24} 25function eajax(url, data, fun) { 26 var _dataType = "POST"; 27 if (data.dataType && data.dataType == "GET") { 28 return $.get(url, data, function (json, status) { 29 if (typeof (json) != "string") { 30 //console.log("success:", json); 31 if (fun) fun(json); 32 } 33 if (json) { 34 if (fun) fun(json); 35 } 36 }); 37 } else { 38 return $.post(url, data, function (json, status) { 39 if (typeof (json) != "string") { 40 //console.log("success:", json); 41 if (fun) fun(json); 42 } else if (json) { 43 if (fun) fun(json); 44 } 45 }); 46 } 47} 48 49/////////////////////////////////////////////////// 50 51$("<link>") 52 .attr({ rel: "stylesheet", 53 type: "text/css", 54 href: "//at.alicdn.com/t/font_769931_yi1fqwungbh.css" 55 }) 56.appendTo("head"); 57 58/*--------------éç¨å¤´é¨ãåºé¨--------------*/ 59$(function () { 60 $.ajax({ url: "/include/top.html", async:false, success: function (x) { $('.headbox').html(x); } }); 61 $.ajax({ url: "/include/foot.html", 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 $.ajax({ url: "/include/product-link.html", async: false, success: function (x) { $('.product-link').html(x); } }); 64 $.ajax({ url: "/include/innovate-link.html", async: false, success: function (x) { $('.innovate-link').html(x); } }); 65 $.ajax({ url: "/include/development-link.html", async: false, success: function (x) { $('.development-link').html(x); } }); 66 $.ajax({ url: "/include/join-link.html", async: false, success: function (x) { $('.join-link').html(x); } }); 67 $.ajax({ url: "/include/about-link.html", async: false, success: function (x) { $('.about-link').html(x); } }); 68}); 69/*--------------end--------------*/ 70 71/*--------------gototop--------------*/ 72function goTop(acceleration, time) { 73 acceleration = acceleration || 0.1; 74 time = time || 12; 75 76 var x1 = 0; 77 var y1 = 0; 78 var x2 = 0; 79 var y2 = 0; 80 var x3 = 0; 81 var y3 = 0; 82 83 if (document.documentElement) { 84 x1 = document.documentElement.scrollLeft || 0; 85 y1 = document.documentElement.scrollTop || 0; 86 } 87 if (document.body) { 88 x2 = document.body.scrollLeft || 0; 89 y2 = document.body.scrollTop || 0; 90 } 91 var x3 = window.scrollX || 0; 92 var y3 = window.scrollY || 0; 93 94 // æ»å¨æ¡å°é¡µé¢é¡¶é¨çæ°´å¹³è·ç¦» 95 var x = Math.max(x1, Math.max(x2, x3)); 96 // æ»å¨æ¡å°é¡µé¢é¡¶é¨çåç´è·ç¦» 97 var y = Math.max(y1, Math.max(y2, y3)); 98 99 // æ»å¨è·ç¦» = ç®åè·ç¦» / é度, å 为è·ç¦»åæ¥è¶å°, é度æ¯å¤§äº 1 çæ°, æä»¥æ»å¨è·ç¦»ä¼è¶æ¥è¶å° 100 var speed = 1 + acceleration; 101 window.scrollTo(Math.floor(x / speed), Math.floor(y / speed)); 102 103 // 妿è·ç¦»ä¸ä¸ºé¶, ç»§ç»è°ç¨è¿ä»£æ¬å½æ° 104 if(x > 0 || y > 0) { 105 var invokeFunction = "goTop(" + acceleration + ", " + time + ")"; 106 window.setTimeout(invokeFunction, time); 107 } 108} 109 110 111/*--------------éç¹å¹³æ»æ»å¨--------------*/ 112$(function () { 113 $('a[href^="#"], area[href^="#"]').on('click', function (e) { 114 if ($(this).attr("href").includes("tab")) { 115 return; 116 } 117 e.preventDefault(); 118 const hash = this.hash; 119 const $target = $(hash) || $(`[name="${hash.slice(1)}"]`); 120 if ($target.length) { 121 const targetOffset = $target.offset().top; 122 123 $('html, body').animate({ 124 scrollTop: targetOffset 125 }, 1000); 126 } 127 });
128}); 129/*--------------end--------------*/ 130if ($(window).width() > 999) { 131 $(window).bind("load resize", function () { 132 $(".insidekv-slogan").css({"height":($(".insidekv").height()-66),"top":66 }); 133 }); 134} 135else{ 136 $(window).bind("load resize", function () { 137 $(".insidekv-slogan").css({"height":$(".insidekv").height(),"top":0 }); 138 }); 139} 140 141 142 143var fN; 144function fontzsize(z){ 145 var HTML = $(".nd-con"); 146 fN = parseInt(HTML.css('font-size')); 147 fN = z ? fN + 2 : fN - 2; 148 HTML.find('*').css({"font-size":fN + "px","line-height":"1.5em"}); 149 HTML.css({"font-size":fN + "px","line-height":"1.8em"}); 150} 151
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.