moth/www/scoreboard-reloader.html

38 lines
816 B
HTML

<!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%;
height: 100%;
border: none;
margin: 0;
padding: 0;
}
</style>
<script>
var i = 0;
function init() {
setInterval(function(){
window.document.getElementById('reloader').src = window.document.getElementById('reloader').src;
},2000);
}
window.addEventListener("load", init);
</script>
</head>
<body>
<iframe id="reloader" src="//koth/scoreboard.html">
<div id="scoreboard"></div>
</body>
</html>