117 lines
3.7 KiB
HTML
117 lines
3.7 KiB
HTML
<!DOCTYPE html>
|
|
<!--
|
|
Roller Derby Scoreboard Copyright © 2011 Neale Pickett
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful, but
|
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see
|
|
<http://www.gnu.org/licenses/>.
|
|
-->
|
|
<html>
|
|
<head>
|
|
<title>LADD Scoreboard</title>
|
|
<meta charset="utf-8">
|
|
<style type="text/css">
|
|
body {
|
|
background: url(bg.jpg) #222;
|
|
background-size: 100% auto;
|
|
font-size: 160px;
|
|
color: #eee;
|
|
margin: 0;
|
|
}
|
|
#scoreboard {
|
|
width: 100%;
|
|
}
|
|
</style>
|
|
<link rel="stylesheet" type="text/css" href="scoreboard.css">
|
|
<script type="text/javascript" src="logos.js"></script>
|
|
<script type="text/javascript" src="scoreboard.js"></script>
|
|
<script type="text/javascript">
|
|
|
|
function resize() {
|
|
var b = document.getElementsByTagName("body")[0];
|
|
var w, h;
|
|
|
|
// Internet Explorer makes everything a pain in the ass
|
|
if (window.innerWidth) {
|
|
w = window.innerWidth;
|
|
h = window.innerHeight;
|
|
} else if (document.documentElement && document.documentElement.clientWidth) {
|
|
w = document.documentElement.clientWidth;
|
|
h = document.documentElement.clientHeight;
|
|
} else if (document.body) {
|
|
w = document.body.clientWidth;
|
|
h = document.body.clientHeight;
|
|
} else {
|
|
// Punt
|
|
w = 800;
|
|
h = 600;
|
|
}
|
|
|
|
w /= 7;
|
|
h /= 5;
|
|
|
|
var fs = Math.min(w, h);
|
|
|
|
b.style.fontSize = fs + 'px';
|
|
}
|
|
|
|
function localstart() {
|
|
start();
|
|
resize();
|
|
}
|
|
|
|
window.onresize = resize;
|
|
window.onload = localstart;
|
|
window.onkeypress = key;
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<!--
|
|
HTML5 says not to use tables for layout. Since this is
|
|
a highly-styled page, it looks awful without CSS. Sorry.
|
|
-->
|
|
<div id="scoreboard">
|
|
<p>
|
|
<span id="name-a" onclick="handle(event);">Home</span>
|
|
<img src="" alt="A" id="logo-a" onclick="handle(event);">
|
|
<span id="timeouts-a" onclick="handle(event);">0</span>
|
|
<span id="jammer-a" onclick="handle(event);">★</span>
|
|
<span id="score-a" onclick="handle(event);">-</span>
|
|
</p>
|
|
|
|
<p>
|
|
<span id="period" onclick="handle(event);">--:--</span>
|
|
<span id="periodtext" onclick="handle(event);"></span>
|
|
<span id="jam" onclick="handle(event);">-:--.-</span>
|
|
<span id="jamtext" onclick="handle(event);"></span>
|
|
<span id="jamno" onclick="handle(event);">0</span>
|
|
</p>
|
|
|
|
<p>
|
|
<span id="name-b" onclick="handle(event);">Vis</span>
|
|
<img src="" alt="B" id="logo-b" onclick="handle(event);">
|
|
<span id="timeouts-b" onclick="handle(event);">0</span>
|
|
<span id="jammer-b" onclick="handle(event);">★</span>
|
|
<span id="score-b" onclick="handle(event);">-</span>
|
|
</p>
|
|
</table>
|
|
|
|
<div id="notice">
|
|
<div id="notice-1">Power Jam</div>
|
|
<div id="notice-2">Grand Slam</div>
|
|
<div id="notice-3">Ouch</div>
|
|
<div id="notice-4">OMG</div>
|
|
</div>
|
|
</body>
|
|
</html>
|