lineup, not rotation. This isn't volleyball.
This commit is contained in:
parent
bd6cdfafce
commit
b9ab984768
|
@ -49,6 +49,6 @@
|
||||||
#jam.timeout {
|
#jam.timeout {
|
||||||
background: #044;
|
background: #044;
|
||||||
}
|
}
|
||||||
#jam.rotate {
|
#jam.lineup {
|
||||||
background: #060;
|
background: #060;
|
||||||
}
|
}
|
|
@ -28,7 +28,7 @@
|
||||||
/* State names */
|
/* State names */
|
||||||
var SETUP = 0; // !P 30:00 !J 2:00
|
var SETUP = 0; // !P 30:00 !J 2:00
|
||||||
var JAM = 1; // P J 2:00
|
var JAM = 1; // P J 2:00
|
||||||
var ROTATE = 2; // P J 1:00
|
var LINEUP = 2; // P J 1:00
|
||||||
var TIMEOUT = 3; // !P J 1:00
|
var TIMEOUT = 3; // !P J 1:00
|
||||||
|
|
||||||
var periodtext = ["Period 1", "Halftime", "Period 2", "Break"];
|
var periodtext = ["Period 1", "Halftime", "Period 2", "Break"];
|
||||||
|
@ -143,11 +143,11 @@ function transition(newstate) {
|
||||||
jt.set(120000);
|
jt.set(120000);
|
||||||
jt.start();
|
jt.start();
|
||||||
jtext.innerHTML = "Jam";
|
jtext.innerHTML = "Jam";
|
||||||
} else if (state == ROTATE) {
|
} else if (state == LINEUP) {
|
||||||
pt.start();
|
pt.start();
|
||||||
jt.set(30000, "rotate");
|
jt.set(30000, "lineup");
|
||||||
jt.start();
|
jt.start();
|
||||||
jtext.innerHTML = "Rotation";
|
jtext.innerHTML = "Lineup";
|
||||||
} else if (state == TIMEOUT) {
|
} else if (state == TIMEOUT) {
|
||||||
pt.stop();
|
pt.stop();
|
||||||
if (pt.remaining() <= 0) {
|
if (pt.remaining() <= 0) {
|
||||||
|
@ -264,7 +264,7 @@ function handle(event) {
|
||||||
break;
|
break;
|
||||||
case "jam":
|
case "jam":
|
||||||
if (state == JAM) {
|
if (state == JAM) {
|
||||||
newstate = ROTATE;
|
newstate = LINEUP;
|
||||||
} else {
|
} else {
|
||||||
newstate = JAM;
|
newstate = JAM;
|
||||||
}
|
}
|
||||||
|
@ -290,7 +290,7 @@ function key(e) {
|
||||||
switch (String.fromCharCode(e.which || 0)) {
|
switch (String.fromCharCode(e.which || 0)) {
|
||||||
case " ":
|
case " ":
|
||||||
if (state == JAM) {
|
if (state == JAM) {
|
||||||
newstate = ROTATE;
|
newstate = LINEUP;
|
||||||
} else {
|
} else {
|
||||||
newstate = JAM;
|
newstate = JAM;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue