1 2 3$(function () { 4 function gMenuStylePage() { 5 if (!!this.doMenuStyle && this.doMenuStyle === 1) { 6 return ''; 7 } 8 this.doMenuStyle = 1; 9 $("#g-web-ul-menu").menuStyle(); 10 } 11 gMenuStylePage(); 12 var n = 0; 13 $(window).resize(function () { 14 this.doMenuStyle = 0; 15 if (navigator.appName == "Microsoft Internet Explorer" && (navigator.appVersion.split(";")[1].replace(/[ ]/g, "") == "MSIE7.0" || navigator.appVersion.split(";")[1].replace(/[ ]/g, "") == "MSIE8.0")) { 16 if (n % 2 == 0) { 17 this.doMenuStyle = 1; 18 gMenuStylePage(); 19 } 20 n++; 21 } else { 22 gMenuStylePage(); 23 } 24 }); 25 $(".w-system-in").addClass("clearfix"); 26}); 27 28function substrKeywordInfo(keyword) { 29 if (keyword.length < 1) { 30 return keyword; 31 } 32 var _keyword = $(".input-search-w").val(); 33 var html = ""; 34 var isSearch = true; 35 for (var i = 0; i < keyword.length; i++) { 36 if (keyword[i] == '<') { 37 isSearch = false; 38 html += keyword[i]; 39 continue; 40 } 41 if (isSearch == false && keyword[i] == '>') { 42 isSearch = true; 43 html += keyword[i]; 44 continue; 45 } 46 if (isSearch == false) { 47 html += keyword[i]; 48 } else { 49 var str = keyword[i]; 50 if (str == _keyword[0]) { 51 var k = i; 52 var isFull = false; 53 for (var j = 0; j < _keyword.length; j++, k++) { 54 if (keyword[k] == _keyword[j]) { 55 isFull = true; 56 } else { 57 isFull = false; 58 break; 59 } 60 } 61 if (isFull == true) { 62 i = k; 63 str = "<span class=\"key_word\">" + _keyword + "</span>"; 64 } 65 } 66 html += str; 67 } 68 } 69 return html; 70} 71 72function substrKeyword(keyword) { 73 if (keyword.length < 1) { 74 return keyword; 75 } 76 function htmlspecialchars(string, quoteStyle, charset, doubleEncode) { 77 var optTemp = 0 78 var i = 0 79 var noquotes = false 80 if (typeof quoteStyle === 'undefined' || quoteStyle === null) { 81 quoteStyle = 2 82 } 83 string = string || '' 84 string = string.toString() 85 86 if (doubleEncode !== false) { 87 // Put this first to avoid double-encoding 88 string = string.replace(/&/g, '&') 89 } 90 91 string = string 92 .replace(/</g, '<') 93 .replace(/>/g, '>') 94 95 var OPTS = { 96 'ENT_NOQUOTES': 0, 97 'ENT_HTML_QUOTE_SINGLE': 1, 98 'ENT_HTML_QUOTE_DOUBLE': 2, 99 'ENT_COMPAT': 2, 100 'ENT_QUOTES': 3, 101 'ENT_IGNORE': 4 102 } 103 if (quoteStyle === 0) { 104 noquotes = true 105 } 106 if (typeof quoteStyle !== 'number') { 107 // Allow for a single string or an array of string flags 108 quoteStyle = [].concat(quoteStyle) 109 for (i = 0; i < quoteStyle.length; i++) { 110 // Resolve string input to bitwise e.g. 'ENT_IGNORE' becomes 4 111 if (OPTS[quoteStyle[i]] === 0) { 112 noquotes = true 113 } else if (OPTS[quoteStyle[i]]) { 114 optTemp = optTemp | OPTS[quoteStyle[i]] 115 } 116 } 117 quoteStyle = optTemp 118 } 119 if (quoteStyle & OPTS.ENT_HTML_QUOTE_SINGLE) { 120 string = string.replace(/'/g, ''') 121 } 122 if (!noquotes) { 123 string = string.replace(/"/g, '"') 124 } 125 return string 126 } 127 function htmlspecialchars_decode(string, quoteStyle) { 128 var optTemp = 0 129 var i = 0 130 var noquotes = false 131 132 if (typeof quoteStyle === 'undefined') { 133 quoteStyle = 2 134 }
135 string = string.toString() 136 .replace(/</g, '<') 137 .replace(/>/g, '>') 138 var OPTS = { 139 'ENT_NOQUOTES': 0, 140 'ENT_HTML_QUOTE_SINGLE': 1, 141 'ENT_HTML_QUOTE_DOUBLE': 2, 142 'ENT_COMPAT': 2, 143 'ENT_QUOTES': 3, 144 'ENT_IGNORE': 4 145 } 146 if (quoteStyle === 0) { 147 noquotes = true 148 } 149 if (typeof quoteStyle !== 'number') { 150 // Allow for a single string or an array of string flags 151 quoteStyle = [].concat(quoteStyle) 152 for (i = 0; i < quoteStyle.length; i++) { 153 // Resolve string input to bitwise e.g. 'PATHINFO_EXTENSION' becomes 4 154 if (OPTS[quoteStyle[i]] === 0) { 155 noquotes = true 156 } else if (OPTS[quoteStyle[i]]) { 157 optTemp = optTemp | OPTS[quoteStyle[i]] 158 } 159 } 160 quoteStyle = optTemp 161 } 162 if (quoteStyle & OPTS.ENT_HTML_QUOTE_SINGLE) { 163 // PHP doesn't currently escape if more than one 0, but it should: 164 string = string.replace(/�*39;/g, "'") 165 // This would also be useful here, but not a part of PHP: 166 // string = string.replace(/'|�*27;/g, "'"); 167 } 168 if (!noquotes) { 169 string = string.replace(/"/g, '"') 170 } 171 // Put this in last place to avoid escape being double-decoded 172 string = string.replace(/&/g, '&') 173 174 return string 175 } 176 var _keyword = htmlspecialchars(htmlspecialchars_decode($(".input-search-w").val())); 177 keyword = htmlspecialchars(htmlspecialchars_decode(keyword)); 178 return keyword.replace(_keyword, "<span class=\"key_word\">" + _keyword + "</span>"); 179} 180 181function inputKeyword(string) { 182 function htmlspecialchars(string, quoteStyle, charset, doubleEncode) { 183 var optTemp = 0 184 var i = 0 185 var noquotes = false 186 if (typeof quoteStyle === 'undefined' || quoteStyle === null) { 187 quoteStyle = 2 188 } 189 string = string || '' 190 string = string.toString() 191 192 if (doubleEncode !== false) { 193 // Put this first to avoid double-encoding 194 string = string.replace(/&/g, '&') 195 } 196 197 string = string 198 .replace(/</g, '<') 199 .replace(/>/g, '>') 200 201 var OPTS = { 202 'ENT_NOQUOTES': 0, 203 'ENT_HTML_QUOTE_SINGLE': 1, 204 'ENT_HTML_QUOTE_DOUBLE': 2, 205 'ENT_COMPAT': 2, 206 'ENT_QUOTES': 3, 207 'ENT_IGNORE': 4 208 } 209 if (quoteStyle === 0) { 210 noquotes = true 211 } 212 if (typeof quoteStyle !== 'number') { 213 // Allow for a single string or an array of string flags 214 quoteStyle = [].concat(quoteStyle) 215 for (i = 0; i < quoteStyle.length; i++) { 216 // Resolve string input to bitwise e.g. 'ENT_IGNORE' becomes 4 217 if (OPTS[quoteStyle[i]] === 0) { 218 noquotes = true 219 } else if (OPTS[quoteStyle[i]]) { 220 optTemp = optTemp | OPTS[quoteStyle[i]] 221 } 222 } 223 quoteStyle = optTemp 224 } 225 if (quoteStyle & OPTS.ENT_HTML_QUOTE_SINGLE) { 226 string = string.replace(/'/g, ''') 227 } 228 if (!noquotes) { 229 string = string.replace(/"/g, '"') 230 } 231 return string 232 } 233 function htmlspecialchars_decode(string, quoteStyle) { 234 var optTemp = 0 235 var i = 0 236 var noquotes = false 237 238 if (typeof quoteStyle === 'undefined') { 239 quoteStyle = 2 240 } 241 string = string.toString() 242 .replace(/</g, '<') 243 .replace(/>/g, '>') 244 var OPTS = { 245 'ENT_NOQUOTES': 0, 246 'ENT_HTML_QUOTE_SINGLE': 1, 247 'ENT_HTML_QUOTE_DOUBLE': 2, 248 'ENT_COMPAT': 2, 249 'ENT_QUOTES': 3, 250 'ENT_IGNORE': 4 251 } 252 if (quoteStyle === 0) { 253 noquotes = true 254 } 255 if (typeof quoteStyle !== 'number') {
256 // Allow for a single string or an array of string flags 257 quoteStyle = [].concat(quoteStyle) 258 for (i = 0; i < quoteStyle.length; i++) { 259 // Resolve string input to bitwise e.g. 'PATHINFO_EXTENSION' becomes 4 260 if (OPTS[quoteStyle[i]] === 0) { 261 noquotes = true 262 } else if (OPTS[quoteStyle[i]]) { 263 optTemp = optTemp | OPTS[quoteStyle[i]] 264 } 265 } 266 quoteStyle = optTemp 267 } 268 if (quoteStyle & OPTS.ENT_HTML_QUOTE_SINGLE) { 269 // PHP doesn't currently escape if more than one 0, but it should: 270 string = string.replace(/�*39;/g, "'") 271 // This would also be useful here, but not a part of PHP: 272 // string = string.replace(/'|�*27;/g, "'"); 273 } 274 if (!noquotes) { 275 string = string.replace(/"/g, '"') 276 } 277 // Put this in last place to avoid escape being double-decoded 278 string = string.replace(/&/g, '&') 279 280 return string 281 } 282 return htmlspecialchars(htmlspecialchars_decode(string)); 283}
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.