From 0d29c7d1ed23ce77bb0d3414082b51c8a7ed7f59 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Sat, 7 Apr 2012 21:41:09 -0600 Subject: [PATCH] Tunable jamtext, mini tweaks --- mini.html | 71 ++++++++++++++++++++++++++++----------------------- scoreboard.js | 9 ++++--- 2 files changed, 44 insertions(+), 36 deletions(-) diff --git a/mini.html b/mini.html index ae504cc..204ceba 100644 --- a/mini.html +++ b/mini.html @@ -22,42 +22,47 @@ @@ -67,7 +72,9 @@ window.onkeypress = key;

- - - + + - + -

diff --git a/scoreboard.js b/scoreboard.js index 12af1ec..828ceed 100644 --- a/scoreboard.js +++ b/scoreboard.js @@ -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);