var uc = ""; /* if(!window.jQuery){ var script = document.createElement('script'); script.type = "text/javascript"; script.src = "https://live.networkreach.com/apps/production/arkflux/jquery/jquery-ui-1.11.4/external/jquery/jquery.js"; document.getElementsByTagName('head')[0].prepend(script); var script = document.createElement('script'); script.type = "text/javascript"; script.src = "https://live.networkreach.com/apps/production/arkflux/jquery/jquery-ui-1.11.4/jquery-ui.js"; document.getElementsByTagName('head')[0].prepend(script); } else { if(typeof $ == "undefined") { $ = window.jQuery; } } */ window.addEventListener('load', (event) => { console.log(document.cookie); var a = gAFXParam("afxd"); if(a != null) { document.cookie="arkflux="+a+"; Expires=Fri, 24 Nov 2034 20:08:23 GMT; SameSite=None; Secure; Path=/;"; } var a = gAFXCookie("arkflux"); if(a != null) { registerPageVisit(a); } }); function registerPageVisit(uc) { fetch("https://afxca6ce9ea.networkreach.com/apps/production/arkflux/monitor/processing/monitor.website.track.php", { method: "POST", headers: { "Content-Type": "application/x-www-form-urlencoded", }, body: "&page="+window.location.href+"&uc="+ uc }).then(res => { console.log("Request complete! response:", res); }); //$.post("https://afxca6ce9ea.networkreach.com/apps/production/arkflux/monitor/processing/monitor.website.track.php", { "page": window.location.href, "uc": uc}); } window.addEventListener("message", function(event) { if(typeof event.data['action'] != "undefined") { console.log(event.data['action']); switch(event.data['action']) { case "AFResizeIFrame": var iframe = document.getElementById(_args.token); iframe.style.height = (event.data['height']+60) + 'px'; iframe.scrollTop = 0; break; } } }); function gAFXParam(name, url = window.location.href) { name = name.replace(/[\[\]]/g, '\\$&'); var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'), results = regex.exec(url); if (!results) return null; if (!results[2]) return ''; return decodeURIComponent(results[2].replace(/\+/g, ' ')); } function gAFXCookie(name) { var match = document.cookie.match(new RegExp('(^| )' + name + '=([^;]+)')); if (match) return match[2]; }