1/*--------------------------------- 2// ãµã¸ã§ã¹ãåå¾å¦ç 3---------------------------------*/ 4var currentRequest = null; 5var formSubmitFlag = false; 6var currentRequestTimer = null; 7var currentRequestTimerFunc = function () { 8 var me = $('#search-box'); 9 currentRequest = $.ajax({ 10 url: window.location.href, 11 type: "POST", 12 context: me, 13 data: { 14 scController: "SearchJapan", scAction: "GetSuggestions", searchKeyword: $(me).val() 15 }, 16 success: function (data) { 17 $('.l-header-search-suggestions').replaceWith($(data).find('.l-header-search-suggestions')); 18 $('.l-header-search-results').replaceWith($(data).find('.l-header-search-results')); 19 $('.l-header-search-results').find('a').each(function () { 20 if ($(this).text().match(/<(\w+)((?:\s+\w+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/)) { 21 $(this).text($(this).text().replace(/(<([^>]+)>)/ig, "")); 22 } 23 }); 24 25 $('.l-header-search-suggestions').addClass('is-show'); 26 $('.l-header-search-suggestions').css({ 27 'opacity': '1' 28 }); 29 $('.l-header-search-results').show(); 30 } 31 }); 32}; 33 34/*ãµã¤ãå æ¤ç´¢Form submitã¤ãã³ã */ 35$('.l-header-search').children('form').submit(function (e) { 36 clearTimeout(currentRequestTimer); 37 if (currentRequest != null) { 38 currentRequest.abort(); 39 } 40 formSubmitFlag = true; 41}); 42 43/*ãµã¸ã§ã¹ãåå¾ */ 44function getSuggestData() { 45 clearTimeout(currentRequestTimer); 46 //æ¢ã«æ¤ç´¢å®è¡ä¸ã®å ´åã¯ãã¢ãã¼ãã§ãã£ã³ã»ã«ããã 47 if (currentRequest != null) { 48 currentRequest.abort(); 49 50 } 51 //submitãããå ´åã¯æ¤ç´¢ãè¡ããªã 52 if (formSubmitFlag) { 53 return true; 54 } 55 //è¦å®æéã«éããã¾ã§æ¤ç´¢ãWaitãã 56 currentRequestTimer = setTimeout(currentRequestTimerFunc, 500); 57 58} 59
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.