1(function() { 2 $(document).on("page:change", function() { 3 return $("form").on("ajax:success", function(e, data, status, xhr) { 4 var doc, parser; 5 parser = new DOMParser; 6 return doc = parser.parseFromString(xhr.responseText, 'text/html'); 7 }).on("ajax:error", function(e, xhr, status, error) { 8 var doc, myWindow, parser; 9 parser = new DOMParser; 10 doc = parser.parseFromString(xhr.responseText, 'text/html'); 11 myWindow = window.open("", "MsgWindow", "width=500, height=500"); 12 return myWindow.document.write(xhr.responseText); 13 }); 14 }); 15 16 this.slug = function(input) { 17 return getSlug(input); 18 }; 19 20 this.unSlug = function(input) { 21 return input.replace(/[\-]+/g, ' '); 22 }; 23 24 this.underslugToSlug = function(string) { 25 return string.replace(/_/g, '-'); 26 }; 27 28 this.slugToUnderslug = function(string) { 29 return string.replace(/-/g, '_'); 30 }; 31 32 this.getQueryParams = function(qs) { 33 var params, re, tokens; 34 qs = qs.split('+').join(' '); 35 params = {}; 36 tokens = void 0; 37 re = /[?&]?([^=]+)=([^&]*)/g; 38 while (tokens = re.exec(qs)) { 39 params[decodeURIComponent(tokens[1])] = decodeURIComponent(tokens[2]); 40 } 41 return params; 42 }; 43 44}).call(this);
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.