| Server IP : 121.121.20.254 / Your IP : 216.73.216.59 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/KnowledgeBase/wp-content/plugins/enable-media-replace/js/ |
Upload File : |
window.addEventListener('load', function(event) {
var url = new URL(window.location.href);
url.searchParams.set('emr_success', 1);
var timeout = 10;
if (emr_success_options.timeout)
timeout = emr_success_options.timeout;
var counter = document.getElementById('redirect_counter');
var redirectUrl = document.getElementById('redirect_url');
var redirected = false;
counter.textContent = timeout;
var t = window.setInterval(function () {
counter.textContent = timeout;
timeout--;
if (timeout <= 0 && false == redirected)
{
window.location.href = redirectUrl;
redirected = true;
window.clearInterval(t);
}
}, 1000);
});