Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

HTML
<script>
	var destination = new URL(location).searchParams.get("original");
	if (destination) {
		var oldLink = jQuery("#old-site a");
		oldLink.attr("href", oldLink.attr("href") + "/" + decodeURIComponent(destination));
	}
 
	var countdown = jQuery("#countdown span");
	var seconds = 510;
	var count = function () {
		seconds -= 1;
		countdown.text(seconds);
		if (seconds < 1) location.href= jQuery("#new-docs a").attr("href");
		else setTimeout(count, 1000);
	}
	setTimeout(count, 1000);
	
</script>