1jQuery(document).ready(function($){ 2 function htmlspecialchars_URL(str){ 3 return (str + '').replace(/"/g,'%26quot;') 4 .replace(/'/g,'%26#039;') 5 .replace(/</g,'%26lt;') 6 .replace(/>/g,'%26gt;'); 7 } 8 // æ»ããã¿ã³ã§æ»ã£ãã¨ãã«ããã¼ã¯ã¼ãæ¬ã空ã«ãã 9 $('#tmp_query').val(''); 10 var searchType = ''; 11 // æ¤ç´¢ãã¿ã³ãæ¼ãããæãæ¤ç´¢ãªãã·ã§ã³ç¨ã®æååãæ¤ç´¢ãã¼ã¯ã¼ãã«è¿½å ããã 12 $('form#cse-search-box').submit(function(){ 13 searchType = $('#tmp_query').val(); 14 searchType = htmlspecialchars_URL(searchType); 15 if($('#filetype_html').prop('checked')){ 16 searchType = searchType + ' filetype:html'; 17 }else if($('#filetype_pdf').prop('checked')){ 18 searchType = searchType + ' filetype:pdf'; 19 } 20 $('#tmp_query').val(searchType); 21 }); 22});
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.