1var getUrlParameter = function getUrlParameter(sParam) { 2 var sPageURL = window.location.search.substring(1), 3 sURLVariables = sPageURL.split('&'), 4 sParameterName, 5 i; 6 for (i = 0; i < sURLVariables.length; i++) { 7 sParameterName = sURLVariables[i].split('='); 8 if (decodeURIComponent(sParameterName[0]) === sParam) { 9 return sParameterName[1] === undefined ? true : decodeURIComponent(sParameterName[1]); 10 } 11 } 12}; 13 14var escape_html = function (string) { 15 if (typeof string !== 'string') { 16 return string; 17 } 18 return string.replace(/[&'`"<>]/g, function(match) { 19 return { 20 '&': '&', 21 '\'': ''', 22 '`': '`', 23 '"': '"', 24 '<': '<', 25 '>': '>', 26 }[match] 27 }); 28} 29 30var run = function() { 31 var key = 'rdemail'; 32 var v = escape_html(getUrlParameter(key)); 33 if (v !== undefined) { 34 try { 35 jQuery('input.rdemail').val(v); 36 } catch (e) { 37 console.error(e); 38 return false; 39 } 40 } 41} 42 43run();
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.