1/* Compatibility guard for constrained browsers where window.screen is absent. */ 2if (typeof screen === "undefined") { 3 var screen = { 4 width: window.innerWidth || 1024, 5 height: window.innerHeight || 768 6 }; 7} 8 9(function () { 10 function slug() { 11 var input = document.getElementById("iv"); 12 return (input ? input.value : "") 13 .toLowerCase() 14 .trim() 15 .replace(/[^a-z0-9]+/g, "-") 16 .replace(/^-+|-+$/g, ""); 17 } 18 19 window.ivEncode = slug; 20 window.sf = function (event) { 21 if (event) event.preventDefault(); 22 if (typeof window.noPop === "function") window.noPop(); 23 var value = slug(); 24 window.location.assign(value ? "/search/" + encodeURIComponent(value) + "/" : "/"); 25 return false; 26 }; 27}());
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.