moth/www/scoreboard-reloader.html

36 lines
801 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>
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>