mirror of https://github.com/dirtbags/moth.git
Added scoreboard reloader
This commit is contained in:
parent
fec278db6f
commit
bc32b85e39
|
@ -0,0 +1,36 @@
|
|||
<!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>
|
||||
function init() {
|
||||
setTimeout(function(){
|
||||
window.document.getElementById('reloader').src = window.document.getElementById('reloader').src;
|
||||
},60000);
|
||||
}
|
||||
|
||||
window.addEventListener("load", init);
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="reloader" src="http://localhost/tf6/scoreboard.html">
|
||||
<div id="scoreboard"></div>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue