1var ecblib = ecblib || {}; 2ecblib.customize = ecblib.customize || {}; 3ecblib.customize.searchform_keyword = ecblib.customize.searchform_keyword || {}; 4 5jQuery(document).ready(function () { 6 var _searchform_keyword = ecblib.customize.searchform_keyword; 7 8 if (jQuery("#search_keyword").length != 0){ 9 var keyword = jQuery("#search_keyword").val(); 10 jQuery("input[name='q']").val(keyword); 11 } 12 13 // 2025/08/29 jsä¿®æ£ç®æéå§ 14 // â ãã»ããã¢ãããã®ãã§ãã¯ããã¯ã¹ã追å 15 var $setupLi = jQuery('<li></li>'); 16 var $checkbox = jQuery('<input>', { 17 type: 'checkbox', 18 value: 'setup', 19 id: 'category_setup' 20 }); 21 var $label = jQuery('<label>', { 22 for: 'category_setup', 23 text: 'ã»ããã¢ãã' 24 }); 25 // liã«inputã¨labelã追å 26 $setupLi.append($checkbox).append($label); 27 28 // ããã®ä»ããã§ãã¯ããã¯ã¹ã®<li>ãæ¢ã 29 var $otherLi = jQuery('#category_9').closest('li'); 30 31 if ($otherLi.length) { 32 // ããã®ä»ãã®ä¸ã«æ¿å ¥ 33 $setupLi.insertBefore($otherLi); 34 } else { 35 // ãªããã°ãªã¹ãã®æå¾ã«è¿½å 36 var $categoryList = jQuery('.block-search-param--category-list'); 37 $categoryList.append($setupLi); 38 } 39 40 // â¡ç»é¢è¡¨ç¤ºæã®ãã»ããã¢ããããã§ãã¯ããã¯ã¹ã®ãã§ãã¯æç¡å¶å¾¡ 41 jQuery(function($){ 42 43 var qParam = new URLSearchParams(window.location.search).get('q'); 44 45 if (qParam) { 46 var words = qParam.split(/[\s]+/); 47 // urlãã©ã¡ã¼ã¿ã®qã«ãã»ããã¢ããããå«ãå ´åã¯ãã§ãã¯ãã¤ãã 48 if (words.indexOf('ã»ããã¢ãã') !== -1) { 49 $('#category_setup').prop('checked', true); 50 //BJL:ãã¹ã¦(ALL)ã«ã¯ãã§ãã¯ãå ¥ããªã 51 $('#category_').prop('checked', false); 52 } 53 } 54 }); 55 // 2025/08/29 jsä¿®æ£ç®æçµäº 56 57 58 jQuery("#frmSearch").submit(function(){ 59 jQuery("#search_keyword").val(jQuery("#keyword").val()); 60 61 // 2025/08/29 jsä¿®æ£ç®æéå§ 62 // â¢æ¤ç´¢ãã¿ã³æ¼ä¸æãæ¤ç´¢ãã©ã¡ã¼ã¿ã«ãã»ããã¢ãããã追å ãåé¤ 63 var $setupCheckbox = jQuery('#category_setup'); 64 var $keywordInput = jQuery(this).find('input[name="q"]'); 65 var currentVal = $keywordInput.val().trim(); 66 67 var words = currentVal.length > 0 ? currentVal.split(/\s+/) : []; 68 69 if ($setupCheckbox.prop('checked')) { 70 // ãã§ãã¯ãã â ãã»ããã¢ãããããªããã°è¿½å 71 if (words.indexOf('ã»ããã¢ãã') === -1) { 72 words.push('ã»ããã¢ãã'); 73 } 74 } else { 75 // ãã§ãã¯ãªã â ãã»ããã¢ããããåé¤ 76 words = words.filter(function(word) { 77 return word !== 'ã»ããã¢ãã'; 78 }); 79 } 80 $keywordInput.val(words.join(' ')); 81 // 2025/08/29 jsä¿®æ£ç®æçµäº 82 83 }); 84 85});
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.