Skip to content

Instantly share code, notes, and snippets.

@girvan girvan/500.html
Created Apr 6, 2015

Embed
What would you like to do?
<!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
You can’t perform that action at this time.