HEX
Server: Apache
System: Linux flamboyant-gauss.194-164-62-186.plesk.page 6.8.0-55-generic #57-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 12 23:42:21 UTC 2025 x86_64
User: gamesamphora (10001)
PHP: 7.4.33
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/amphoragames.com/httpdocs/wp-content/plugins/enable-media-replace/js/emr_success.js
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);

});