Skip to content

Instantly share code, notes, and snippets.

@uliwitness
Created January 7, 2017 17:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uliwitness/31f5a1bc38a6648fc2a726951dc7b585 to your computer and use it in GitHub Desktop.
Save uliwitness/31f5a1bc38a6648fc2a726951dc7b585 to your computer and use it in GitHub Desktop.
<html>
<head>
<title>Streaming - Back Soon</title>
</head>
<body bgcolor="#00ff00">
<div id="message" style="font-size: 80pt; font-family: Helvetica; font-weight: bold; color: white; text-shadow: 2px 2px #000000;">
Back in <span id="timer">5:00</span> minutes
</div>
<script>
window.onload = function(){
var minz = 5;
var secz = "00";
setInterval(function(){
document.getElementById("timer").innerHTML = minz +":" + secz ;
secz--;
if(secz == -1)
{
minz--;
secz = 59;
if (minz == -1)
{
document.getElementById("message").innerHTML = "Be right back!";
}
}
if( secz < 10 )
secz = "0" + secz
},500);
}
</script>
</body>
</html>
@uliwitness
Copy link
Author

HTML page that shows a countdown for displaying when streaming games.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment