Tunable jamtext, mini tweaks
This commit is contained in:
parent
a6c7bcc200
commit
0d29c7d1ed
29
mini.html
29
mini.html
|
@ -22,15 +22,9 @@
|
|||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" type="text/css" href="scoreboard.css">
|
||||
<style type="text/css">
|
||||
@font-face {
|
||||
font-family: Most Wazted;
|
||||
src: url(Mostwasted.ttf);
|
||||
}
|
||||
body {
|
||||
background: black;
|
||||
background-size: 100% auto;
|
||||
color: #eee;
|
||||
font-family: Most Wazted, fantasy;
|
||||
color: white;
|
||||
text-align: center;
|
||||
}
|
||||
#scoreboard {
|
||||
|
@ -40,24 +34,35 @@
|
|||
#score-a, #score-b {
|
||||
font-size: 150px;
|
||||
position: absolute;
|
||||
top: 30%;
|
||||
top: 35%;
|
||||
}
|
||||
#score-a {
|
||||
#jammer-a, #jammer-b {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
}
|
||||
#jammer-a.lead, #jammer-b.lead {
|
||||
color: white;
|
||||
}
|
||||
#jamtext {
|
||||
font-family: monospace;
|
||||
}
|
||||
#score-a, #jammer-a {
|
||||
left: 10px;
|
||||
}
|
||||
#score-b {
|
||||
#score-b, #jammer-b {
|
||||
right: 10px;
|
||||
}
|
||||
html, p {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
</style>
|
||||
<script type="text/javascript" src="logos.js"></script>
|
||||
<script type="text/javascript" src="scoreboard.js"></script>
|
||||
<script type="text/javascript">
|
||||
window.onkeypress = key;
|
||||
jamtext = ["J", "L", "T", "Setup"];
|
||||
tenths = true;
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
@ -67,7 +72,9 @@ window.onkeypress = key;
|
|||
</p>
|
||||
<p>
|
||||
<span id="score-a" onclick="handle(event);">-</span>
|
||||
<span id="jammer-a" onclick="handle(event);">★</span>
|
||||
<span id="jamtext">-</span>
|
||||
<span id="jammer-b" onclick="handle(event);">★</span>
|
||||
<span id="score-b" onclick="handle(event);">-</span>
|
||||
</p>
|
||||
<p>
|
||||
|
|
|
@ -32,6 +32,7 @@ var LINEUP = 2; // P J 1:00
|
|||
var TIMEOUT = 3; // !P J 1:00
|
||||
|
||||
var periodtext = ["Period 1", "Halftime", "Period 2", "Break"];
|
||||
var jamtext = ["Jam", "Lineup", "Timeout", "Setup"];
|
||||
var period = 0;
|
||||
|
||||
var state = SETUP;
|
||||
|
@ -156,12 +157,12 @@ function transition(newstate) {
|
|||
pt.start();
|
||||
jt.set(120000);
|
||||
jt.start();
|
||||
jtext.innerHTML = "Jam";
|
||||
jtext.innerHTML = jamtext[0];
|
||||
} else if (state == LINEUP) {
|
||||
pt.start();
|
||||
jt.set(30000, "lineup");
|
||||
jt.start();
|
||||
jtext.innerHTML = "Lineup";
|
||||
jtext.innerHTML = jamtext[1];
|
||||
} else if (state == TIMEOUT) {
|
||||
pt.stop();
|
||||
if (pt.remaining() <= 0) {
|
||||
|
@ -169,7 +170,7 @@ function transition(newstate) {
|
|||
}
|
||||
jt.set(0, "timeout");
|
||||
jt.start();
|
||||
jtext.innerHTML = "Timeout";
|
||||
jtext.innerHTML = jamtext[2];
|
||||
}
|
||||
|
||||
// Reset lead jammer indicators
|
||||
|
@ -454,7 +455,7 @@ function start() {
|
|||
}
|
||||
|
||||
e("periodtext").innerHTML = periodtext[period];
|
||||
e("jamtext").innerHTML = "Setup";
|
||||
e("jamtext").innerHTML = jamtext[3];
|
||||
transition();
|
||||
|
||||
c = Number(ls.rdsb_period_clock || 1800000);
|
||||
|
|
Loading…
Reference in New Issue