mirror of https://github.com/dirtbags/moth.git
Changed from reloader to projector
This commit is contained in:
parent
d6cb477dcb
commit
470a5c35b9
|
@ -9,7 +9,7 @@ function shuf (ul) {
|
|||
var lists = document.getElementsByClassName("shuf");
|
||||
for (var l = 0; l < lists.length; l += 1) {
|
||||
var ul = lists[l];
|
||||
|
||||
|
||||
for (var i = ul.children.length; i >= 0; i--) {
|
||||
ul.appendChild(ul.children[Math.random() * i | 0]);
|
||||
}
|
||||
|
@ -27,10 +27,10 @@ window.addEventListener("load", init);
|
|||
</head>
|
||||
<body>
|
||||
<h1>Credits</h1>
|
||||
|
||||
|
||||
<section>
|
||||
<h2>Created By</h2>
|
||||
|
||||
|
||||
<ul class="shuf">
|
||||
<!-- Added in order of date -->
|
||||
<li>Neale Pickett</li>
|
||||
|
@ -48,13 +48,14 @@ window.addEventListener("load", init);
|
|||
<li>Erin Ochoa</li>
|
||||
<li>William Phillips</li>
|
||||
<li>Jeremy Hefner</li>
|
||||
<li>James Wernicke</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<p>
|
||||
Should your name be here? Please remind me!
|
||||
</p>
|
||||
</section>
|
||||
|
||||
|
||||
<section>
|
||||
<h2>Inspiration</h2>
|
||||
<ul class="shuf">
|
||||
|
@ -63,7 +64,7 @@ window.addEventListener("load", init);
|
|||
<li>Sandia National Laboratories</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
|
||||
<section>
|
||||
<h2>Thanks</h2>
|
||||
<p>
|
||||
|
|
|
@ -0,0 +1,42 @@
|
|||
<!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>
|
|
@ -13,24 +13,25 @@
|
|||
}
|
||||
iframe {
|
||||
width: 100%;
|
||||
height: 100;
|
||||
height: 100%;
|
||||
border: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
var i = 0;
|
||||
function init() {
|
||||
setTimeout(function(){
|
||||
window.document.getElementById('reloader').src = window.document.getElementById('reloader').src;
|
||||
},60000);
|
||||
setInterval(function(){
|
||||
window.document.getElementById('reloader').src = window.document.getElementById('reloader').src;
|
||||
},2000);
|
||||
}
|
||||
|
||||
window.addEventListener("load", init);
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="reloader" src="http://localhost/tf6/scoreboard.html">
|
||||
<iframe id="reloader" src="//koth/scoreboard.html">
|
||||
<div id="scoreboard"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue