1/* basic search full-text toggle */ 2$(function () { 3 $('#fulltext_info').popover({ 4 trigger: 'focus' 5 }); 6}) 7 8$('#search_field').change(function () { 9 let selectedOption = $(this).val(); 10 let checkbox = $('#fulltext_checkbox'); 11 let infoIcon = $('#fulltext_info'); 12 let infoIconContent = infoIcon.data('content'); 13 if (selectedOption !== "all_fields") { 14 let was_checked = checkbox.prop('checked'); 15 if (was_checked == true) { 16 infoIcon.attr('data-content', 'The full-text option only works with the "All Fields" search.'); 17 infoIcon.popover('show'); 18 } 19 $('#fulltext_checkbox_label').css("color", "lightgray"); 20 checkbox.prop({'checked': false, 'disabled': true}); 21 if (was_checked == true) { 22 setTimeout(() => { 23 infoIcon.popover('hide'); 24 }, 2000) 25 infoIcon.attr('data-content', infoIconContent); 26 } 27 } else { 28 $('#fulltext_checkbox_label').css("color", "unset"); 29 checkbox.prop({'disabled': false}); 30 } 31}).change();
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.