1/** 2 * æå»ºä¸ä¸ªå¯¼èªæ 3 * @param name å¯¼èªæ ä¸çæ é¢ 4 * @param hidden æ¯å¦éèå¯¼èªæ é»è®¤ä¸éè 5 */ 6function makeNavigation(name, hidden = false) { 7 document.write( 8 `<div class='navigation_BigDiv' ${hidden ? "style='display: none'" : ""}><div class='logo_title two_pages glass-effect'>` + 9 " <div class='left navigation_left scrollbar_x' title='ç¹å»éè/æ¾ç¤ºå·¦è¾¹å¯¼èªæ !' onclick='swapLeftHiddeMode()'>\n" + 10 " <img alt='导èª' id='logo' src='/image/logo.svg'>\n" + 11 " <h3 id='web-title'>" + name + "</h3>\n" + 12 " </div>\n" + 13 "\n" + 14 " <div class='right navigation scrollbar_x'>\n" + 15 " <ul style='text-align: end'>\n" + 16 " <li>\n" + 17 " <form id='nav_search_input_form' action='/'>" + 18 " <input id='nav_search_input' name='search' placeholder='î¨æç´¢ç¨æ·ä¸æç« ' required>" + 19 " <button hidden type='submit'>î¨</button>" + 20 " </form>\n" + 21 " </li>\n" + 22 " <li>\n" + 23 " <span id='sum_web_seeCount' title='ç½ç«æææç« çæ»ç度(ç½ç«å ¬åé¤å¤)'></span>\n" + 24 " </li>\n" + 25 " <li class='pc_allow'>\n" + 26 " <a href='/index.html'>主页</a>\n" + 27 " </li>\n" + 28 " <li>\n" + 29 " <a id='click_login_user' class='click_login_button'>ç¹å»ç»å½</a>\n" + 30 " <img class='headSculpture' src='image/logo.svg' alt='头åå 载失败' onclick='document.getElementById(\"click_login_user\").click()'>" + 31 " </li>\n" + 32 " </ul>\n" + 33 " </div>\n" + 34 "</div></div>") 35 // çæç½ç«æ»ç度 36 const sum_web_seeCount = document.getElementById("sum_web_seeCount"); 37 sum_web_seeCount.appendChild(getHotSpanElement(0)) 38 sum_web_seeCount.style.display = 'none' 39 // 妿æ¯ç§»å¨ç«¯ å°±ç´æ¥å°å¯¼èªæ çulæå¤§é«åº¦ 以åå ¶ä¸æææåå使¹ä¸º 30px 40 if (isMobileDevice()) { 41 const elementNodeListOf = document.querySelectorAll(".navigation > ul"); 42 for (let i = 0; i < elementNodeListOf.length; i++) { 43 elementNodeListOf[i].style.maxHeight = '22px'; 44 } 45 const elementNodeListOf1 = document.querySelectorAll(".navigation a,.navigation span, #web-title"); 46 for (let i = 0; i < elementNodeListOf1.length; i++) { 47 elementNodeListOf1[i].style.fontSize = '22px'; 48 } 49 } 50} 51 52/** 53 * æå»ºä¸ä¸ªèªå®ä¹æé®çå¯¼èªæ 54 * @param name å¯¼èªæ ä¸çæ é¢ 55 * @param button_all { 56 * { 57 * id, innerText 58 * } 59 * }å¯¼èªæ ä¸çæææé®ä»¥åæé®å¯¹åºç id 60 */ 61function makeNavigation_UDButton(name, button_all) { 62 document.write("<div class='logo_title two_pages'>\n" + 63 " <div class='left'>\n" + 64 " <img alt='导èª' id='ud_logo' src='/image/logo.svg'>\n" +
65 " <h3 id='ud_web-title'>" + name + "</h3>\n" + 66 " </div>\n" + 67 "\n" + 68 " <div class='right navigation'>\n" + 69 " <ul>\n"); 70 71 for (let buttonAllKey in button_all) { 72 const buttonAllElement = button_all[buttonAllKey]; 73 document.write( 74 " <li>\n" + 75 " <a id='" + buttonAllElement.id + "'>" + buttonAllElement.innerText + "</a>\n" + 76 " </li>\n" 77 ); 78 } 79 80 document.write( 81 " </ul>\n" + 82 " </div>\n" + 83 "</div>" 84 ) 85} 86let Sum_web_seeCount_value = 0; 87 88/** 89 * 90 * @param newValue è®¾ç½®å¯¼èªæ ä¸ç度æ¾ç¤ºçæ°å¼ 91 */ 92function setSum_web_seeCount(newValue) { 93 document.querySelectorAll("#sum_web_seeCount .hot_value")[0].innerText = convertUnit(newValue) 94 if (newValue === 1) { 95 document.getElementById("sum_web_seeCount").style.display = 'none'; 96 } else { 97 document.getElementById("sum_web_seeCount").style.display = 'inline'; 98 } 99 Sum_web_seeCount_value = typeof newValue === 'string' ? parseFloat(newValue) : newValue; 100} 101 102/** 103 * è·åå°å¯¼èªæ ä¸ç度æ¾ç¤ºçæ°å¼ 104 * @return {number} å¯¼èªæ ä¸ç度æ¾ç¤ºçæ°å¼ 105 */ 106function getSum_web_seeCount() { 107 return Sum_web_seeCount_value; 108} 109 110let nowLeftIsHidden = false; 111 112/** 113 * åæ¢å·¦å¯¼èªæ éèç¶æ 114 */ 115function swapLeftHiddeMode() { 116 if (nowLeftIsHidden) { 117 nowLeftIsHidden = false; 118 showLeftNavigationBar() 119 } else { 120 nowLeftIsHidden = true; 121 hiddenLeftNavigationBar() 122 } 123}
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.