1//çæäºç»´ç 2var host = location.origin; 3var app_qrcode = new QRCode("fhyxHeaderDownApp", { 4 text: host + "/zt/app/m/?appdown=Homepopup", 5 width: 80, 6 height: 80 7}); 8 9//æ ¹æ®å±å¹åè¾¨çæ¹åææ¬å 容 10var mediaQuery = window.matchMedia("(max-width: 1610px)"); 11checkResolution(mediaQuery); 12 13mediaQuery.addListener(function (mq) { 14 checkResolution(mq); 15}); 16 17function checkResolution(mq) { 18 if (mq.matches) { 19 $(".fhyxHeaderLeftDownCon span").html("客æ·ç«¯"); 20 } else { 21 $(".fhyxHeaderLeftDownCon span").html("ä¸è½½å®¢æ·ç«¯"); 22 } 23} 24 25//ç¨æ·ä¿¡æ¯ 26$.getJSON("/header/onload_new.html", function (reback) { 27 if (reback.status == 1) { 28 $(".fhyxHeaderRightLogin").html('<div class="fhyxHeaderRightLoginCon">\n' + 29 ' <a class="userImgCon fhyx_shushuTj" href="/ucenter/" td-name="é¡¶é¨ä¸ªäººä¸å¿">\n' + 30 ' <img class="userimg" src="' + (reback.userinfo.img ? reback.userinfo.img : '//static.fhyx.com/images/application/pc/hk/user_img.png') + '">\n' + 31 ' ' + (reback.userinfo.imgFrame != '' ? '<em class="userFrame" style="background: url(' + reback.userinfo.imgFrame + ');background-size: 100% 100%;"></em>' : "") + '\n' + 32 ' </a>\n' + 33 ' <div class="fhyxHeaderRightLoginConAlert">\n' + 34 ' <a class="username">' + reback.userinfo.uname + '</a>\n' + 35 ' <div class="smrz">\n' + 36 ' <div class="smrzIcon"></div>\n' + 37 ' <a class="smrzBtn fhyx_shushuTj" href="https://www.fhyx.com/ucenter/verified.html" target="_blank" td-name="é¡¶é¨å®å认è¯"></a>\n' + 38 ' </div>\n' + 39 ' <div class="balanceCon">\n' + 40 ' <a class="balanceConLi creditsCon fhyx_shushuTj" href="' + (ishk == 1 ? '' : 'https://www.fhyx.com') + '/credit/detailed.html" target="_blank" td-name="é¡¶é¨P叿ç»">\n' + 41 ' <span class="balance">0</span>\n' + 42 ' <span class="title">På¸</span>\n' + 43 ' </a>\n' + 44 ' <a class="balanceConLi allowanceCon fhyx_shushuTj" href="/ucenter/allowance.html" target="_blank" td-name="顶鍿´¥è´´æç»">\n' + 45 ' <span class="balance">0</span>\n' + 46 ' <span class="title">津贴</span>\n' + 47 ' </a>\n' + 48 ' <a class="balanceConLi couponCon fhyx_shushuTj" href="/ucenter/coupon.html" target="_blank" td-name="é¡¶é¨ä¼æ å¸">\n' + 49 ' <span class="balance">0</span>\n' + 50 ' <span class="title">伿 å¸</span>\n' + 51 ' </a>\n' + 52 ' </div>\n' + 53 ' <a class="fhyxHeaderVip qy" href="/vip/">\n' + 54 ' <em class="bg"></em>\n' + 55 ' <em class="icon"></em>\n' + 56 ' <span class="title">éç¾½ä¼å</span>\n' + 57 ' <span class="more">æ¥ç详æ ></span>\n' + 58 ' <div class="endtime">累计æ¶è´¹<span>1</span>å å³å¯è§£é</div>\n' + 59 ' </a>\n' + 60 ' <div class="bindsteam">\n' + 61 ' <em class="icon"></em>\n' + 62 ' <span class="title">æªç»å®</span>\n' + 63 ' <a class="bindsteamBtn fhyx_shushuTj" td-name="é¡¶é¨ç»å®Steam"></a>\n' + 64 ' </div>\n' + 65 ' <a class="userInfoLi userinfo fhyx_shushuTj" href="/ucenter/" target="_blank" td-name="é¡¶é¨ä¸ªäººä¸å¿">\n' + 66 ' <em class="icon"></em>\n' +
67 ' <span class="title">个人ä¸å¿</span>\n' + 68 ' <em class="rightIcon"></em>\n' + 69 ' </a>\n' + 70 ' <a class="userInfoLi userproclaim fhyx_shushuTj" href="https://www.fhyx.com/credit/medal.html" target="_blank" td-name="顶鍿çåç« å¢">\n' + 71 ' <em class="icon"></em>\n' + 72 ' <span class="title">æçåç« å¢</span>\n' + 73 ' <em class="rightIcon"></em>\n' + 74 ' </a>\n' + 75 ' <div class="fg"></div>\n' + 76 ' <a class="userInfoLi userlogout fhyx_shushuTj" href="/account/logout.html" td-name="é¡¶é¨éåºç»å½">\n' + 77 ' <em class="icon"></em>\n' + 78 ' <span class="title">éåºç»å½</span>\n' + 79 ' </a>\n' + 80 ' </div>\n' + 81 ' </div>'); 82 83 $(".fhyxHeaderRightCredits").show(); 84 fhyx_ta.login(reback.userinfo.uid); 85 } else { 86 $(".fhyxHeaderRightLogin").html('<a href="javascript:void(0);" id="login_btn" class="fhyx_shushuTj">ç»å½</a>'); 87 } 88}); 89 90var userTopData = []; 91$(".fhyxHeaderRightLogin").hover( 92 function () { 93 if ($(".fhyxHeaderRightLoginCon").length > 0) { 94 if (userTopData == '') { 95 var Authtoken = encodeURIComponent(getCookie('_token')); 96 $.ajax({
97 type: "POST", 98 async: false, 99 url: "https://"+global_domain['webapi_domain']+"/sync/getUserdata", 100 headers: { 101 "Authtoken": Authtoken, 102 }, 103 dataType: "json", 104 success: function (json) { 105 if (json.status == 1) { 106 userTopData = json.data; 107 } 108 } 109 }); 110 } 111 if (userTopData.isvalid == 1) { 112 $(".fhyxHeaderRightLogin .smrzIcon").addClass("checked"); 113 $(".fhyxHeaderRightLogin .smrzBtn").remove(); 114 } 115 $(".fhyxHeaderRightLogin .creditsCon .balance").html(userTopData.credit); 116 $(".fhyxHeaderRightLogin .allowanceCon .balance").html(userTopData.allowance / 100); 117 $(".fhyxHeaderRightLogin .couponCon .balance").html(userTopData.coupon); 118 if (userTopData.vipdata.grade > 0) { 119 var vipLevel = ""; 120 var vipName = ""; 121 if (userTopData.vipdata.grade == 1) { 122 vipLevel = "qy"; 123 vipName = "éç¾½ä¼å"; 124 } 125 if (userTopData.vipdata.grade == 2) { 126 vipLevel = "yy"; 127 vipName = "é¶ç¿¼ä¼å"; 128 } 129 if (userTopData.vipdata.grade == 3) { 130 vipLevel = "jy"; 131 vipName = "éç¿ä¼å"; 132 } 133 if (userTopData.vipdata.grade == 4) { 134 vipLevel = "fh"; 135 vipName = "å¤å°ä¼å"; 136 } 137 138 var expiretime = "æææè³" + userTopData.vipdata.expiretime; 139 $(".fhyxHeaderVip").addClass(vipLevel); 140 $(".fhyxHeaderVip .title").html(vipName); 141 $(".fhyxHeaderVip .endtime").html(expiretime); 142 } 143 if (userTopData.steamuser != '') { 144 $(".fhyxHeaderRightLogin .bindsteam .title").addClass("checked"); 145 $(".fhyxHeaderRightLogin .bindsteam .title").html(userTopData.steamuser); 146 $(".fhyxHeaderRightLogin .bindsteam .bindsteamBtn").addClass("checked"); 147 $(".fhyxHeaderRightLogin .bindsteam .bindsteamBtn").removeAttr("href"); 148 $(".fhyxHeaderRightLogin .bindsteam .bindsteamBtn").removeAttr("target"); 149 setCookie("isbindsteam", 1, 7, '.fhyx.hk'); 150 } else { 151 $(".fhyxHeaderRightLogin .bindsteam .title").removeClass("checked"); 152 $(".fhyxHeaderRightLogin .bindsteam .bindsteamBtn").attr({"href": "/ucenter/bind.html", "target": "_blank"}); 153 setCookie("isbindsteam", 0, 7, '.fhyx.hk'); 154 } 155 } 156 }, 157 function () { 158 } 159); 160 161//ç»å½ 162$("body").on("click", "#login_btn", function () { 163 var sc_login_ret = if_login_container(1, 1); 164 if (sc_login_ret == 1) { 165 return; 166 } 167}); 168 169//ç»å½ 170$("body").on("click", ".isLoginFhyx", function () { 171 var sc_login_ret = if_login_container(1, 1); 172 if (sc_login_ret == 1) { 173 return; 174 } 175 176 if ($(this).attr('data-newopen') == 1) { 177 window.open($(this).attr("data-url")); 178 } else { 179 location.href = $(this).attr("data-url"); 180 } 181}); 182 183var indexPathname = location.pathname; 184if (indexPathname == '/' || indexPathname == '/index.html') { 185 $(".fhyxindex").addClass("checked"); 186} 187//è¯è¨ 188$(function () { 189 if (ishk == 0) { 190 var ft = getCookie("ft"); 191 if (!ft) { 192 ft = 0; 193 } 194 } else { 195 ft = 1; 196 } 197 198 StranBody(document.body, ft); 199 $(".fhyxHeaderRightLanguageConLi").removeClass("checked"); 200 if (ft == 0) { 201 $(".fhyxHeaderRightLanguageTxt").text("ç®ä¸"); 202 $(".fhyxHeaderRightLanguageConLi").eq(0).addClass("checked"); 203 setCookie("ft", 0, 7, '.fhyx.hk'); 204 } else { 205 $(".fhyxHeaderRightLanguageTxt").text("ç¹ä¸"); 206 $(".fhyxHeaderRightLanguageConLi").eq(1).addClass("checked");
207 setCookie("ft", 1, 7, '.fhyx.hk'); 208 } 209}); 210 211//è¯è¨åæ¢ 212$(".fhyxHeaderRightLanguageConLi").on("click", function () { 213 $(".fhyxHeaderRightLanguageConLi").removeClass("checked"); 214 $(this).addClass("checked"); 215 if ($(this).attr("data-id") == 1) { 216 StranBody(document.body, 1); 217 setCookie("ft", 1, 7, '.fhyx.hk'); 218 $(".fhyxHeaderRightLanguageTxt").text("ç¹ä¸"); 219 event.stopPropagation(); 220 } else { 221 StranBody(document.body, 0); 222 setCookie("ft", 0, 7, '.fhyx.hk'); 223 $(".fhyxHeaderRightLanguageTxt").text("ç®ä¸"); 224 event.stopPropagation(); 225 } 226}); 227 228var isbindsteam = getCookie('isbindsteam'); 229if (ishk == 1 && isbindsteam == 0) { 230 $(".fhyxHeaderRightBindsteam").show(); 231} 232 233$("body").on("click", ".fhyxHeaderRightBindsteam", function () { 234 var sc_login_ret = if_login_container(1,1); 235 if (sc_login_ret == 1) { 236 return; 237 } 238 239 var url = location.href; 240 get_global_loginsteam(url); 241}); 242 243var commodityHkpriceData = ''; 244if(ishk == 1) { 245 $.ajax({
246 type: "GET", 247 url: "/public/data/commodityHkpriceData.json", 248 dataType: "json", 249 async: false, 250 success: function (json) { 251 commodityHkpriceData = json; 252 } 253 }); 254} 255 256//æç´¢ 257(function () { 258 var searchInput = document.getElementById('searchInput'); 259 var searchDropdown = document.getElementById('searchDropdown'); 260 var searchTimeout; 261 var searchCache = {}; // æç´¢ç»æç¼å 262 var searchIndex = {}; // æç´¢ç´¢å¼ 263 264 // å ¼å®¹æ§å¤ç 265 var isIE8 = !document.addEventListener; 266 267 // æ°æ®æº 268 var products = search_data; 269 270 // åå§åæç´¢ç´¢å¼ 271 function initSearchIndex() { 272 for (var i = 0; i < products.length; i++) { 273 var item = products[i]; 274 // åè¯å¤ç 275 var text = (item.name).toLowerCase(); 276 var words = text.replace(/[^\w\s\u4e00-\u9fa5]/g, '').split(/\s+/); 277 278 // 䏿åè¯ 279 var cnWords = []; 280 for (var j = 0; j < text.length; j++) { 281 var char = text.charAt(j); 282 if (/[\u4e00-\u9fa5]/.test(char)) { 283 cnWords.push(char); 284 } 285 } 286 287 // åå¹¶åè¯ç»æ 288 words = words.concat(cnWords); 289 290 // 建ç«ç´¢å¼ 291 for (var k = 0; k < words.length; k++) { 292 var word = words[k]; 293 if (!searchIndex[word]) { 294 searchIndex[word] = {}; 295 } 296 searchIndex[word][item.id] = true; 297 } 298 } 299 } 300 301 // åå§åç´¢å¼ 302 initSearchIndex(); 303 304 // ç»å®è¾å ¥äºä»¶ 305 function bindEvents() { 306 if (isIE8) { 307 searchInput.attachEvent('onpropertychange', handleInput); 308 document.attachEvent('onclick', handleDocumentClick); 309 searchDropdown.attachEvent('onclick', handleItemClick); 310 } else { 311 searchInput.addEventListener('input', handleInput); 312 document.addEventListener('click', handleDocumentClick); 313 searchDropdown.addEventListener('click', handleItemClick); 314 } 315 } 316 317 function handleInput() { 318 var keyword = searchInput.value.replace(/^\s+|\s+$/g, ''); // trim polyfill 319 320 if (searchTimeout) { 321 clearTimeout(searchTimeout); 322 } 323 324 if (keyword) { 325 // æ£æ¥ç¼å 326 if (searchCache[keyword]) { 327 showResults(searchCache[keyword]); 328 return; 329 } 330 331 searchTimeout = setTimeout(function () { 332 var results = searchProducts(keyword); 333 // ç¼åç»æ 334 searchCache[keyword] = results; 335 showResults(results); 336 }, 300); 337 } else { 338 hideDropdown(); 339 } 340 } 341 342 function handleDocumentClick(e) { 343 e = e || window.event; 344 var target = e.target || e.srcElement; 345 346 if (!contains(searchInput, target) && !contains(searchDropdown, target)) { 347 hideDropdown(); 348 } 349 } 350 351 // DOM contains polyfill 352 function contains(parent, child) { 353 if (parent.contains) { 354 return parent.contains(child); 355 } 356 357 while (child && child !== parent) { 358 child = child.parentNode; 359 } 360 return child === parent; 361 } 362 363 // ä¼åçæç´¢å½æ° 364 function searchProducts(keyword) { 365 366 return containsSearch(keyword); 367 368 keyword = keyword.toLowerCase(); 369 370 // åè¯ 371 var text = keyword.replace(/[^\w\s\u4e00-\u9fa5]/g, ''); 372 var words = text.split(/\s+/); 373 var cnWords = []; 374 375 // 䏿åè¯ 376 for (var i = 0; i < text.length; i++) { 377 var char = text.charAt(i); 378 if (/[\u4e00-\u9fa5]/.test(char)) { 379 cnWords.push(char); 380 } 381 } 382 383 words = words.concat(cnWords); 384 385 // çå ³é®è¯ä½¿ç¨å å«æç´¢ 386 if (words.length === 1 && words[0].length < 2) { 387 return containsSearch(keyword); 388 } 389 390 // 使ç¨ç´¢å¼æç´¢ 391 var matchedIds = {}; 392 var isFirst = true; 393 394 for (var j = 0; j < words.length; j++) { 395 var word = words[j]; 396 var ids = {}; 397 398 // æ¥æ¾ç´¢å¼ 399 for (var key in searchIndex) { 400 if (key.indexOf(word) !== -1) { 401 for (var id in searchIndex[key]) { 402 ids[id] = true; 403 } 404 } 405 } 406 407 // å交é 408 if (isFirst) { 409 matchedIds = ids; 410 isFirst = false; 411 } else { 412 var newIds = {}; 413 for (var id in matchedIds) { 414 if (ids[id]) { 415 newIds[id] = true; 416 } 417 } 418 matchedIds = newIds; 419 } 420 } 421 422 // 转æ¢åååæ°æ® 423 var results = []; 424 for (var id in matchedIds) { 425 for (var k = 0; k < products.length; k++) { 426 if (products[k].id.toString() === id) { 427 results.push(products[k]); 428 break; 429 } 430 } 431 } 432 433 return results.slice(0, 10); 434 } 435 436 // å å«æç´¢ 437 function containsSearch(keyword) { 438 var priceMap = {}; 439 440 var results = []; 441 for (var i = 0; i < products.length; i++) { 442 var item = products[i]; 443 var title = item.name.toLowerCase(); 444 keyword=keyword.toLowerCase();
445 if (title.indexOf(keyword) !== -1) { 446 const { products_id, price } = item; 447 if (!priceMap[products_id] || priceMap[products_id].price != price) { 448 priceMap[products_id] = { 449 price: price, 450 }; 451 results.push(item); 452 } 453 } 454 } 455 return results.slice(0, 10); 456 } 457 458 // æ¾ç¤ºæç´¢ç»æ 459 function showResults(results) { 460 if (!results || !results.length) { 461 searchDropdown.innerHTML = '<div class="search-item">æ²¡ææ¾å°ç¸å ³åå</div>'; 462 return; 463 } 464 465 // å离åååç³»åï¼ä¼åå»éé»è¾ 466 var productResults = []; 467 var seriesResults = []; 468 var seriesMap = {}; // ç¨äºå»éç³»å 469 470 for (var i = 0; i < results.length; i++) { 471 var item = results[i]; 472 // ååé¨å 473 productResults.push(item); 474 475 // ç³»åé¨åï¼å»éå¹¶ä¿å第ä¸ä¸ªå¹é çååä¿¡æ¯ï¼ 476 var seriesKey = item.series.toLowerCase(); // 转å°å以确ä¿å¤§å°å䏿æ 477 if (seriesKey.length > 0) { 478 if (!seriesMap[seriesKey]) { 479 seriesMap[seriesKey] = { 480 series: item.series, 481 id: item.id, 482 productCount: item.seriesnum, // è®°å½è¯¥ç³»åä¸çäº§åæ°é 483 firstProduct: item // ä¿å该系åç第ä¸ä¸ªååä¿¡æ¯ 484 }; 485 } 486 } 487 488 } 489 490 // 转æ¢ç³»åMap为æ°ç» 491 for (var key in seriesMap) { 492 seriesResults.push(seriesMap[key]); 493 } 494 495 var html = ''; 496 497 // ååé¨å 498 if (productResults.length) { 499 html += '<div class="search-section">'; 500 for (var j = 0; j < productResults.length; j++) { 501 if (j < 5) { 502 var product = productResults[j]; 503 //var title = highlightText(product.name, searchInput.value); 504 var status = ''; 505 if (product.label == 'ææ°') status = '<span class="new">ææ°</span>'; 506 if (product.label == 'é¢å®') status = '<span class="ys">é¢å®</span>'; 507 if (product.label == 'å²ä½') status = '<span class="lowest">å²ä½</span>'; 508 if (product.label == 'æ°å²ä½') status = '<span class="newlowest">æ°å²ä½</span>'; 509 if (product.label == 'è¶ å²ä½') status = '<span class="overlowest">è¶ å²ä½</span>'; 510 511 var price = product.price.split("."); 512 513 html += [ 514 '<div class="search-item fhyx_searchitemTj" td-name="æç´¢äº§å" data-id="' + product.products_id + '" data-type="product">', 515 '<div class="search-item-img">', 516 status, 517 '<img src="https://img.fhyx.com' + product.w_img + '" alt="' + product.name + '">', 518 '</div>', 519 '<div class="search-item-info">', 520 '<div class="search-item-title">' + product.name + '</div>', 521 '<div class="search-item-price">', 522 '<span class="current-price">' + (ishk == 1 && commodityHkpriceData[product.id] != undefined ? (commodityHkpriceData[product.id].hkPrice == 0 ? 'æªå ¬å¸' : 'HK$<em>' + commodityHkpriceData[product.id].hkPrice + '</em>') : (product.price == 0 ? 'æªå ¬å¸' : 'Â¥<em>' + price[0] + '</em>.' + price[1])) + (product.commoditynum > 1 ? ' èµ·' : '') +'</span>', 523 '<span class="original-price">' + (ishk == 1 && commodityHkpriceData[product.id] != undefined ? (commodityHkpriceData[product.id].hkprice != commodityHkpriceData[product.id].hkoldprice && commodityHkpriceData[product.id].hkoldprice > 0 ? 'HK$' + commodityHkpriceData[product.id].hkoldprice : '') : ((product.price != product.old_price && product.old_price > 0 && product.price>0) ? 'Â¥' + product.old_price : '')) + '</span>', 524 '</div>', 525 '<span class="search-item-plat hk_' + product.plat + '_l"></span>', 526 '</div>', 527 '</div>' 528 ].join(''); 529 } 530 } 531 html += '</div>'; 532 if (productResults.length > 5) { 533 html += '<a class="search-more fhyx_searchitemTj" href="/list/search?keyword=' + searchInput.value + '">æ¥çå ¨é¨æç´¢ç»æ></a>'; 534 } 535 } 536 537 // ç³»åé¨å 538 if (seriesResults.length) { 539 html += '<div class="search-section">'; 540 for (var k = 0; k < seriesResults.length; k++) { 541 if (k < 3) { 542 var series = seriesResults[k]; 543 //var seriesName = highlightText(series.series, searchInput.value); 544 545 html += [ 546 '<div class="search-item series fhyx_searchitemTj" td-name="æç´¢ç³»å" data-id="' + series.id + '" data-type="series" data-series="' + series.series + '">', 547 '<div class="search-item-series-info">', 548 '<div class="search-item-series">ã' + series.series + 'ç³»åã</div>', 549 '<div class="search-item-count">
549' + series.productCount + '款游æ</div>', 550 '</div>', 551 '</div>' 552 ].join(''); 553 } 554 } 555 html += '</div>'; 556 } 557 558 searchDropdown.innerHTML = html; 559 560 fhyx_ta.trackLink({class: ["fhyx_searchitemTj"]}, "click");//åå跳转 561 showDropdown(); 562 } 563 564 // é«äº®å¹é æå 565 function highlightText(text, keyword) { 566 if (!keyword) return text; 567 keyword = keyword.replace(/([.*+?^=!:${}()|[\]/\\])/g, '\\$1'); // è½¬ä¹æ£åç¹æ®å符 568 var pattern = new RegExp('(' + keyword + ')', 'gi'); 569 return text.replace(pattern, '<span class="highlight">$1</span>'); 570 } 571 572 function showDropdown() { 573 addClass(searchDropdown, 'active'); 574 } 575 576 function hideDropdown() { 577 removeClass(searchDropdown, 'active'); 578 } 579 580 // IE8 classæä½å ¼å®¹ 581 function addClass(el, className) { 582 if (el.classList) { 583 el.classList.add(className); 584 } else { 585 var classes = el.className.split(' '); 586 if (classes.indexOf(className) === -1) { 587 classes.push(className); 588 el.className = classes.join(' '); 589 } 590 } 591 } 592 593 function removeClass(el, className) { 594 if (el.classList) { 595 el.classList.remove(className); 596 } else { 597 var classes = el.className.split(' '); 598 var index = classes.indexOf(className); 599 if (index !== -1) { 600 classes.splice(index, 1); 601 el.className = classes.join(' '); 602 } 603 } 604 } 605 606 // æ·»å åå项ç¹å»å¤ç彿° 607 function handleItemClick(e) { 608 e = e || window.event; 609 var target = e.target || e.srcElement; 610 611 // æ¥æ¾æè¿çåå项å ç´ 612 var item = target; 613 while (item && !item.getAttribute('data-id') && item !== searchDropdown) { 614 item = item.parentNode; 615 } 616 617 if (item && item.getAttribute('data-id')) { 618 var id = item.getAttribute('data-id'); 619 var type = item.getAttribute('data-type'); // è·åç±»å 620 //console.log('éä¸é¡¹:', type, id); 621 622 // æ ¹æ®ç±»åå¤çä¸åç跳转é»è¾ 623 if (type === 'product') { 624 // å¤çååç¹å» 625 //console.log('跳转å°äº§å详æ 页'); 626 window.open("/item/" + item.getAttribute('data-id') + ".html"); 627 } else if (type === 'series') { 628 // å¤çç³»åç¹å» 629 //console.log('跳转å°ç³»å页é¢'); 630 window.open("/list/series?keyword=" + item.getAttribute('data-series') + "&type=series"); 631 } 632 633 hideDropdown(); 634 searchInput.value = ''; 635 } 636 } 637 638 // åå§å 639 bindEvents(); 640})(); 641 642$("#searchInput").bind('keydown', function (e) { 643 var key = e.which; 644 if (key == 13) { 645 e.preventDefault(); 646 var value = $(this).val(); 647 if (value == "") { 648 value = $(this).attr("data-value"); 649 } 650 window.location.href = "/list/search?keyword=" + encodeURIComponent(value); 651 } 652}); 653 654$("#search_sub").on('click', function (e) { 655 var value = $("#searchInput").val(); 656 if (value == "") { 657 value = $("#searchInput").attr("data-value"); 658 } 659 window.location.href = "/list/search?keyword=" + encodeURIComponent(value); 660}); 661 662fhyx_ta.quick('autoTrack', {name: 'fhyx_show_view',})
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.