moth/www/scoreboard-reloader.html

38 lines
816 B
HTML
Raw Normal View History

2015-05-31 14:41:20 -06:00
<!DOCTYPE html>
<html>
<head>
<title>Scoreboard</title>
<link rel="stylesheet" href="style.css" type="text/css">
<script src="scoreboard.js" async></script>
<style>
body, html {
width: 100%;
height: 100%;
overflow: hidden;
cursor: none;
}
iframe {
width: 100%;
2015-06-04 00:02:51 -06:00
height: 100%;
2015-05-31 14:41:20 -06:00
border: none;
margin: 0;
padding: 0;
}
</style>
<script>
2015-06-04 00:02:51 -06:00
var i = 0;
2015-05-31 14:41:20 -06:00
function init() {
2015-06-04 00:02:51 -06:00
setInterval(function(){
window.document.getElementById('reloader').src = window.document.getElementById('reloader').src;
},2000);
2015-05-31 14:41:20 -06:00
}
window.addEventListener("load", init);
</script>
</head>
<body>
2015-06-04 00:02:51 -06:00
<iframe id="reloader" src="//koth/scoreboard.html">
2015-05-31 14:41:20 -06:00
<div id="scoreboard"></div>
</body>
</html>