2011-11-21 22:02:11 -07:00
|
|
|
<!DOCTYPE html>
|
2011-12-07 21:47:58 -07:00
|
|
|
<!--
|
|
|
|
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/>.
|
|
|
|
-->
|
2011-11-21 22:02:11 -07:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>LADD Scoreboard</title>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<style type="text/css">
|
|
|
|
@font-face {
|
|
|
|
font-family: Most Wazted;
|
|
|
|
src: url(Mostwasted.ttf);
|
|
|
|
}
|
|
|
|
body {
|
2011-12-08 00:42:03 -07:00
|
|
|
background: url(bg.jpg) #222;
|
2011-12-08 11:39:39 -07:00
|
|
|
background-size: 100% auto;
|
2011-11-21 22:02:11 -07:00
|
|
|
color: #eee;
|
|
|
|
font-family: Most Wazted, fantasy;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
#scoreboard {
|
2011-12-09 21:28:31 -07:00
|
|
|
font-size: 5em;
|
2011-11-21 22:02:11 -07:00
|
|
|
width: 100%;
|
|
|
|
}
|
2011-12-09 21:28:31 -07:00
|
|
|
|
2011-12-20 22:38:56 -07:00
|
|
|
#penalties.notice {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
#notice div {
|
|
|
|
font-family: sans-serif;
|
|
|
|
font-size: 800%;
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
#notice .active {
|
|
|
|
display: block;
|
|
|
|
-moz-animation-duration: 0.5s;
|
|
|
|
-moz-animation-name: grow;
|
|
|
|
-moz-animation-iteration-count: infinite;
|
|
|
|
-moz-animation-direction: alternate;
|
|
|
|
}
|
|
|
|
|
|
|
|
@-moz-keyframes grow {
|
|
|
|
0% {color: red;}
|
|
|
|
50% {color: yellow;}
|
|
|
|
75% {color: blue;}
|
|
|
|
100% {color: magenta;}
|
|
|
|
}
|
2011-12-09 21:28:31 -07:00
|
|
|
|
2011-11-21 22:02:11 -07:00
|
|
|
</style>
|
|
|
|
<link rel="stylesheet" type="text/css" href="scoreboard.css">
|
2011-11-23 21:43:09 -07:00
|
|
|
<script type="text/javascript" src="logos.js"></script>
|
2011-11-21 22:02:11 -07:00
|
|
|
<script type="text/javascript" src="scoreboard.js"></script>
|
2011-12-12 19:36:09 -07:00
|
|
|
<script type="text/javascript" src="penalties.js"></script>
|
2011-11-21 22:02:11 -07:00
|
|
|
<script type="text/javascript">
|
2011-12-20 22:38:56 -07:00
|
|
|
var notice_timer;
|
|
|
|
|
|
|
|
function notice_expire(n) {
|
|
|
|
var p = document.getElementById("penalties");
|
|
|
|
var pClassName = "";
|
|
|
|
|
|
|
|
for (var i = 0; i < 10; i += 1) {
|
|
|
|
var e = document.getElementById("notice-" + i);
|
|
|
|
|
|
|
|
if (! e) continue;
|
|
|
|
if (i == n) {
|
|
|
|
e.className = "active";
|
|
|
|
pClassName = "notice";
|
|
|
|
} else {
|
|
|
|
e.className = "";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (p) p.className = pClassName;
|
|
|
|
}
|
|
|
|
|
|
|
|
function notice(n) {
|
|
|
|
clearTimeout(notice_timer);
|
|
|
|
notice_timer = setTimeout(function() {notice_expire()}, 8000);
|
|
|
|
notice_expire(n);
|
|
|
|
}
|
|
|
|
|
2011-11-21 22:02:11 -07:00
|
|
|
window.onkeypress = key;
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<table id="scoreboard">
|
|
|
|
<tr>
|
|
|
|
<td width="20%" class="team">
|
|
|
|
<span id="name-a" onclick="handle(event);">-</span>
|
|
|
|
<br>
|
2011-11-23 21:43:09 -07:00
|
|
|
<img src="" alt="☻" id="logo-a" onclick="handle(event);">
|
2011-11-21 22:02:11 -07:00
|
|
|
</td>
|
|
|
|
<td width="60%" rowspan="2">
|
|
|
|
<p>
|
|
|
|
<span id="period" onclick="handle(event);">--:--</span>
|
|
|
|
<br>
|
2011-12-08 13:20:30 -07:00
|
|
|
<span id="timeouts-a" onclick="handle(event);">0</span>
|
2011-11-21 22:02:11 -07:00
|
|
|
<span id="periodtext" onclick="handle(event);">-</span>
|
2011-12-08 13:20:30 -07:00
|
|
|
<span id="timeouts-b" onclick="handle(event);">0</span>
|
2011-11-21 22:02:11 -07:00
|
|
|
</p>
|
|
|
|
<p>
|
2011-12-08 13:20:30 -07:00
|
|
|
<span id="jammer-a" onclick="handle(event);">★</span>
|
2011-11-21 22:02:11 -07:00
|
|
|
<span id="jamtext">-</span>
|
2011-12-08 13:20:30 -07:00
|
|
|
<span id="jammer-b" onclick="handle(event);">★</span>
|
2011-11-21 22:02:11 -07:00
|
|
|
<br>
|
2011-12-08 13:20:30 -07:00
|
|
|
<span id="jam" onclick="handle(event);">-:--.-</span>
|
2011-11-21 22:02:11 -07:00
|
|
|
</p>
|
|
|
|
</td>
|
|
|
|
<td width="20%" class="team">
|
|
|
|
<span id="name-b" onclick="handle(event);">-</span>
|
|
|
|
<br>
|
2011-11-23 21:43:09 -07:00
|
|
|
<img src="" alt="☻" id="logo-b" onclick="handle(event);">
|
2011-11-21 22:02:11 -07:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<span id="score-a" onclick="handle(event);">-</span>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<span id="score-b" onclick="handle(event);">-</span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2011-12-09 21:28:31 -07:00
|
|
|
|
|
|
|
<div id="penalties">
|
|
|
|
<table id="penalties-a">
|
|
|
|
<tr class="majors"></tr>
|
|
|
|
<tr class="minors"></tr>
|
|
|
|
<tr class="sk8ers"></tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<table id="penalties-b">
|
|
|
|
<tr class="majors"></tr>
|
|
|
|
<tr class="minors"></tr>
|
|
|
|
<tr class="sk8ers"></tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
2011-12-20 22:38:56 -07:00
|
|
|
<div id="notice">
|
|
|
|
<div id="notice-1">Power Jam</div>
|
|
|
|
<div id="notice-2">Grand Slam</div>
|
|
|
|
<div id="notice-3">Ouch!</div>
|
|
|
|
</div>
|
2011-11-21 22:02:11 -07:00
|
|
|
</body>
|
|
|
|
</html>
|