var head = $("#allinaHeaderScript"); var hostURL = document.createElement('a'); hostURL.href = head.attr("src"); var host = "//" + hostURL.host; var localAccountHost = host; var AH_doDigexQ = head.attr("data-digexq") === "true"; var AH_showSub = head.attr("data-subnav") !== "false"; var AH_showRecent = head.attr("data-recent") !== "false"; var AH_showSearch = head.attr("data-search") !== "false"; var AH_debug = head.attr("data-debug") === "true"; var AH_showMessage = head.attr("data-message") === "true"; var AH_isSC = head.attr("data-issc") === "true"; var AH_careNow = head.attr("data-carenow") !== "false"; var AH_URLs; var AH_Environ = $("#allinaHeaderScript").attr("data-environ"); var contentHost = ""; switch (AH_Environ) { case "local": contentHost = "http://localhost:3009"; break; case "dev": contentHost = "https://wc-assets.dx-dev.allinahealth.org"; break; case "prod": contentHost = "https://content.wellclicks.com"; break; default: contentHost = "https://content.wellclicks.com"; } console.log("using contentHost=" + contentHost); $.getJSON(contentHost + "/Scripts/" + AH_Environ + ".config.json", function (response) { AH_URLs = response; if (!$("link[href='" + AH_URLs.contenthost + "/content/css/responsive_style.css']").length && !$("link[href='" + AH_URLs.contenthost + "/content/css/headerfooter.css']").length) { $("").appendTo("head"); } if (AH_doDigexQ) { if (!$("script[src='" + AH_URLs.contenthost + "/Scripts/allina/digexQ.js']").length) { $("