1 2var individee = individee || {}; 3individee.search = individee.search || {}; 4individee.search.init = function (id, callbackUrl, placeholder) { 5var element = $('#' + id); 6element.popover({ 7content: "<div class=\"row\"><div class=\"col-12\"><input type=\"text\" class=\"form-control min-width-200 border-0 ".concat(id, "-search-input\" placeholder=\"").concat(placeholder, "\"/></div></div>"), 8html: true, 9placement: 'bottom', 10trigger: 'click', 11sanitizeFn: function sanitizeFn(content) { 12return DOMPurify.sanitize(content); 13} 14}); 15element.on('shown.bs.popover', function () { 16var input = $('.' + id + '-search-input'); 17input.focus(); 18input.on("keypress", function (event) { 19individee.search.keypress(input, callbackUrl, event, element); 20}); 21var body = input.closest('.popover-body'); 22if (body) { 23body.css('min-width', 200); 24} 25input.focusout(function () { 26element.popover('hide'); 27}); 28}); 29}; 30individee.search.execute = function (input, callbackUrl) { 31Wicket.Ajax.get({u: callbackUrl + encodeURI("&query=" + input.val())}); 32}; 33individee.search.keypress = function (input, callbackUrl, event, popover) { 34if (event.which === 13) { 35event.preventDefault(); 36popover.popover('hide'); 37individee.search.execute(input, callbackUrl); 38} 39};
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.