Skip to content

Instantly share code, notes, and snippets.

@girvan
Created April 6, 2015 05:01
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 girvan/4e30115cb66e18276f9d to your computer and use it in GitHub Desktop.
Save girvan/4e30115cb66e18276f9d to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<meta charset="utf-8" />
<style type="text/css">
#main { font-family: arial; font-size:18px; }
#time { position:fixed; bottom:5px; right:5px; color:lightgray;}
</style>
<body>
<span id="time"></span>
<span id="main">Loading<span id="dot">.</span></span>
<script type="text/javascript">
var d= document, l = location;
d.getElementById('time').innerHTML = (new Date());
setTimeout(function(){
l.href = l.pathname + "#ref=500";
l.reload();
}, 5000);
setInterval(function(){
d.getElementById('dot').innerHTML += '.';
}, 1000);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment