// // Hide spinning "wait" wheel, and display original wait text if browser doesn't support animation // var browserSupportsAnimation = false; var domPrefixes = 'Webkit,Moz,O,ms'.split(','); var waitingWheelDiv = document.getElementById("WaitingWheel"); // Check if animation is supported without a DOM prefix if (waitingWheelDiv.style.animationName !== undefined) { browserSupportsAnimation = true; } if (browserSupportsAnimation === false) { // Check all the DOM prefixes to see if keyframes are supported with a prefix for (var i = 0; i < domPrefixes.length; i++) { if (waitingWheelDiv.style[domPrefixes[i] + 'AnimationName'] !== undefined) { browserSupportsAnimation = true; break; } } } if (browserSupportsAnimation === false) { document.getElementById("cookiePullPageText").style.display = ''; waitingWheelDiv.style.display = 'none'; } var bssoOptions = { forceTiles: false, overallTimeoutMs: 4000, statusCallback: function (status) { if (status.message && status.debugMode) { console.log(status.message); } // // Note: We append the cookie pull query parameter to the PageActionUrl, then we set the parameter value below // if (status.state == WindowsBrowserSso.STATE.END) { window.location.replace("https://fs1.fbi.gov/adfs/ls/?wa=wsignin1.0&wtrealm=http%3a%2f%2flogin-ndcac.fbi.gov%2fadfs%2fservices%2ftrust&wctx=723c4efa-db87-461a-a075-a18af4cb7666&client-request-id=203e0120-a510-446c-3f1f-0040010000cd&pullStatus=0"); } else if (status.state == WindowsBrowserSso.STATE.END_SSO) { window.location.replace("https://fs1.fbi.gov/adfs/ls/?wa=wsignin1.0&wtrealm=http%3a%2f%2flogin-ndcac.fbi.gov%2fadfs%2fservices%2ftrust&wctx=723c4efa-db87-461a-a075-a18af4cb7666&client-request-id=203e0120-a510-446c-3f1f-0040010000cd&pullStatus=1"); } else if (status.state == WindowsBrowserSso.STATE.END_USERS) { window.location.replace("https://fs1.fbi.gov/adfs/ls/?wa=wsignin1.0&wtrealm=http%3a%2f%2flogin-ndcac.fbi.gov%2fadfs%2fservices%2ftrust&wctx=723c4efa-db87-461a-a075-a18af4cb7666&client-request-id=203e0120-a510-446c-3f1f-0040010000cd&pullStatus=" + status.message.count.toString()); } } }; BrowserSso.Initialize(bssoOptions); BrowserSso.PullBrowserSsoCookie();