// IIFE namespace to avoid contamination of church pages (function( jsasp, undefined ) { var version = "2.0.6"; console.log("jsasp version:"+version); var scriptDomain = ""; function fnGetDomain(url) { return url.match(/:\/\/(.[^/]+)/)[1]; } var hostDomain=window.location.host; var scriptIdTag=document.getElementById("dScript"); var scriptIdSrc=scriptIdTag.src; scriptDomain=fnGetDomain(scriptIdSrc); var postingUrl='https://'+scriptDomain+''; var postingUrlAch='https://'+scriptDomain+''; console.log("Script source ID:"+scriptIdSrc); console.log("Script domain:"+scriptDomain); console.log("Posting Url:"+postingUrl); console.log("Posting Url (ACH):"+postingUrlAch); console.log("UID:sain901122"); console.log("System Domain:simplegive.com"); console.log("Http Host:my.simplegive.com"); console.log("Server Url:/inline/js.asp"); console.log("Server QS:uid=sain901122"); console.log("Refer:"); console.log("Label Url:"); console.log("Refer Domain:"); console.log("Url Host Check:"); console.log("Url Host Check Len:()"); console.log("Refer Domain Len:()"); console.log("// Invalid Host");