1//åé«åº¦ç»ä¸ 2function heightFix(column, column2, sign, offset) { 3 var oCol = jQuery(column); 4 var oCol2 = jQuery(column2); 5 if (sign == undefined) { 6 sign = "+"; 7 } 8 if (offset == undefined) { 9 offset = 0; 10 } 11 if (oCol.height() > oCol2.height()) { 12 if (sign == "+") { 13 oCol2.height(oCol.height() + offset); 14 } else { 15 oCol2.height(oCol.height() - offset); 16 } 17 } 18} 19 20//è·å¾æ¥æ 21function RunGLNL(obj) { 22 var today = new Date(); 23 var d = new Array("æææ¥", "ææä¸", "ææäº", "ææä¸", "ææå", "ææäº", "ææå "); 24 var DDDD = (today.getFullYear() < 100 ? today.getFullYear() + 1900 : today.getFullYear()) + 25 "å¹´" + 26 (today.getMonth() + 1) + 27 "æ" + 28 today.getDate() + 29 "æ¥"; 30 DDDD = DDDD + " " + d[today.getDay()]; 31 jQuery(obj).text(DDDD); 32} 33 34// å å ¥æ¶è代ç Start --> 35function AddFavorite(sURL, sTitle) { 36 try { 37 var ctrl = navigator.userAgent; 38 ctrl = ctrl.toLocaleLowerCase(); 39 if (document.all || ctrl.match(/msie/) != null || ctrl.match(/trident/) != null) { //IEç±»æµè§å¨ 40 window.external.addFavorite(sURL, sTitle); 41 } else { 42 if (window.sidebar) { //firfoxçæµè§å¨ 43 window.sidebar.addPanel(sTitle, sURL, ""); 44 } else { 45 alert("å å ¥æ¶è失败ï¼è¯·ä½¿ç¨Ctrl+Dè¿è¡æ·»å "); 46 } 47 } 48 } catch (e) { 49 alert("å å ¥æ¶è失败ï¼è¯·ä½¿ç¨Ctrl+Dè¿è¡æ·»å "); 50 } 51} 52 53// 设为é¦é¡µä»£ç Start --> 54 55function SetHome(thiss, pageURL) { 56 if (document.all) { 57 58 thiss.style.behavior = 'url(#default#homepage)'; 59 thiss.setHomePage(pageURL); 60 } else if (window.sidebar) { 61 if (window.netscape) { 62 try { 63 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); 64 } catch (e) { 65 alert( 66 "该æä½è¢«æµè§å¨æç»ï¼å¦ææ³å¯ç¨è¯¥åè½ï¼è¯·å¨å°åæ å è¾å ¥ about:config,ç¶åå°é¡¹ signed.applets.codebase_principal_support å¼è¯¥ä¸ºtrue"); 67 } 68 } 69 var prefs = Components.classes['@mozilla.org/preferences-service;1'] 70 .getService(Components.interfaces.nsIPrefBranch); 71 prefs.setCharPref('browser.startup.homepage', pageURL); 72 } else { 73 alert('æ¨çæµè§å¨ä¸æ¯æèªå¨èªå¨è®¾ç½®é¦é¡µ, è¯·ä½¿ç¨æµè§å¨èåæå¨è®¾ç½®!'); 74 } 75} 76 77//é对ie6å¢å æ¬åæ ·å¼ 78function hover(obj, className) { 79 var className = !className ? "hover" : className; 80 jQuery(obj) 81 .hover(function () { jQuery(this).addClass(className); }, function () { jQuery(this).removeClass(className); }); 82} 83 84$(document) 85 .ready(function () { 86 87 //è¿åé¡¶é¨ 88 var goTop = $('<span id="goTop"></span>'); 89 $("body").append(goTop); 90 var winH, 91 winT; 92 var winFun = function () { 93 winH = $(window).height(); 94 winT = $(document).scrollTop(); 95 if (winT > winH) { 96 goTop.fadeIn(); 97 } else { 98 goTop.fadeOut(); 99 } 100 }; 101 goTop.click(function () { $("html, body").animate({ scrollTop: 0 }, 0) }); 102 $(window).scroll(winFun); 103 104 //æç´¢ã导èªé®ç½© 105 var winMark = $('<span id="winMark"></span>'); 106 $("body").append(winMark); 107 108 var showList = $("[showId]"); 109 var hideBox = $("[hideBox]"); 110 showList.click(function () { 111 showList.not($(this)).removeClass("on"); 112 hideBox.not($(this).attr("showId")).removeClass("show"); 113 114 if ($(this).hasClass("on")) { 115 $(this).removeClass("on"); 116 $($(this).attr("showId")).removeClass("show"); 117 winMark.removeClass("show"); 118 } else { 119 $(this).addClass("on"); 120 $($(this).attr("showId")).addClass("show"); 121 winMark.addClass("show"); 122 } 123 }); 124 winMark.click(function () { 125 showList.removeClass("on"); 126 hideBox.removeClass("show"); 127 $(this).removeClass("show"); 128 }); 129 130 ////$("article").each(function () { 131 //// var powerAccessibleReading = $(this).find(".conTxt").first().attr("data-power-accessible-reading"); 132 //// if (powerAccessibleReading == undefined) { 133 //// $(this).find(".conTxt").first().attr("data-power-accessible-reading", "") 134 //// } 135 ////}); 136 }); 137 138//html5 for ie6/7/8 139(function () { 140 if (! 141 /*@cc_on!@*/ 142 0) { 143 return; 144 } 145 var e = 146 "abbr, article, aside, audio, canvas, datalist, details, dialog, eventsource, figure, footer, header, hgroup, mark, menu, meter, nav, output, progress, section, time, video" 147 .split(', '); 148 var i = e.length; 149 while (i--) { 150 document.createElement(e[i]); 151 } 152})(); 153 154// æ£æ¥é¾æ¥æ¯å¦åå¨ä¸ä¸ä»¥httpæhttpså¼å¤´ 155$(document).ready(function() { 156 $("[checklink] a").each(function() { 157 const $link = $(this); 158 const href = $link.attr('href'); 159 160 // ç¹æ®å¤çï¼/hunan.gov.cn æ /www.hunan.gov.cn å¼å¤´çâ伪路å¾â 161 if (/^\/(www\.)?hunan\.gov\.cn\//.test(href)) { 162 $link.attr('href', 'https://' + href.substring(1)); 163 return; 164 } 165 166 // ä» å¤çåå¨ä¸ä¸ä»¥/ãåè®®ï¼å¦http/ftp/mailtoçï¼å¼å¤´ç龿¥ 167 if (href && !/^\/|^[a-zA-Z]+:\/\//.test(href)) { 168 $link.attr('href', 'https://' + href); 169 } 170 }); 171});
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.