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=Sat, 23 Dec 2034 00:16:16 GMT; SameSite=None; Secure; Path=/;"; } var a = gAFXCookie("arkflux"); if(a != null) { registerPageVisit(a); } }); function registerPageVisit(uc) { fetch("https://afx4da487fa.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://afx4da487fa.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]; }