1function openFoundersPurchaseLink(baseUrl, queryParams) { 2 if (baseUrl === null || baseUrl === "") return; 3 4 const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent); 5 const isIOS = /(iPad|iPhone|iPod)/g.test(navigator.userAgent); 6 var formTarget = "_blank"; 7 if (isSafari && isIOS) { 8 formTarget = "_self"; 9 } 10 11 var f = document.createElement("form"); 12 f.method = "GET"; 13 f.action = baseUrl; 14 f.target = formTarget; 15 16 for (const [key, value] of Object.entries(queryParams)) { 17 var input = document.createElement("input"); 18 input.type = "hidden"; 19 input.name = key; 20 input.value = value; 21 f.appendChild(input); 22 } 23 24 document.body.appendChild(f); 25 f.submit(); 26 document.body.removeChild(f); 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.