moth/www/projector.html

43 lines
902 B
HTML
Raw Normal View History

2015-06-04 00:02:51 -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%;
height: 100%;
border: none;
margin: 0;
padding: 0;
}
</style>
<script>
var urls = ["scoreboard.html", "credits.html", "tanks.html"];
var i = 0;
function reload() {
// alternate between scoreboard and other things
var url = i%2 ? urls[0] : urls[i%urls.length];
document.getElementById('reloader').src = url;
i++;
}
function init() {
window.timeout = setTimeout(reload, 6000);
}
window.addEventListener("load", init);
</script>
</head>
<body>
<iframe id="reloader" src="scoreboard.html"></iframe>
</body>
</html>