<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">// NEW GAME TIMER
function newGameTimer() {
	var countDownDate = Math.round(Number(lgd*1000)+(3600000*6));
	var now = new Date().getTime();
	// Update the count down every 1 second
	//console.log(countDownDate+' - '+now);
	if (countDownDate - now &gt; 0) {
		var x = setInterval(function() {

		  var now = new Date().getTime();
		  var distance = countDownDate - now;

		  var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
		  var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); if (minutes &lt; 10) {minutes = '0'+minutes;}
		  var seconds = Math.floor((distance % (1000 * 60)) / 1000); if (seconds &lt; 10) {seconds = '0'+seconds;}

		  if (hours &lt;= 0 &amp;&amp; minutes &lt;= 0 &amp;&amp; seconds &lt;= 0) {window.location.reload(1);} // Reload page when 0

		  document.getElementById("nextime").innerHTML = hours + ":" + minutes + ":" + seconds;

		}, 1000);
	}
	else {
		document.getElementById("nextime").innerHTML = "";
	}
}

// LOAD
window.onload = function() {
	try {newGameTimer();} catch{console.log("error NGR");}
};
</pre></body></html>