1$(document).ready(function () { 2 handleAffiliateUrls(); 3}); 4 5function handleAffiliateUrls() { 6 let params = new URLSearchParams(window.location.search); 7 let affiliate_user = params.get("affiliate_user"); 8 let affiliate_user_name = params.get("affiliate_user_name"); 9 if (affiliate_user) { 10 sessionStorage.setItem("affiliate_user", affiliate_user); 11 sessionStorage.setItem("affiliate_user_name", affiliate_user_name); 12 } 13 14 if (!sessionStorage.getItem("affiliate_user")) { 15 return; 16 } 17 let trackingParams = 18 "tracking=website&affiliate_user=" + 19 sessionStorage.getItem("affiliate_user"); 20 /* "&affiliate_user_name=" + 21 sessionStorage.getItem("affiliate_user_name"); */ 22 sessionStorage.setItem("tracking_params", trackingParams); 23 24 $("a.track_link").each(function () { 25 let link = $(this).attr("href"); 26 if (link.includes("?")) { 27 link += "&" + trackingParams; 28 } else { 29 link += "?" + trackingParams; 30 } 31 $(this).attr("href", link); 32 }); 33}
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.