diff --git a/res/scoreboard.css b/res/scoreboard.css index b15d2a4..892f02a 100644 --- a/res/scoreboard.css +++ b/res/scoreboard.css @@ -24,6 +24,10 @@ body { cursor: default; } +#scoreboard * { + -webkit-user-select: none; + +} input { border: 0px; @@ -97,14 +101,12 @@ input { .timeouts { -<<<<<<< HEAD - margin-top: 4.8em; - font-size: 20%; -======= position: absolute; - width: 1.8em; - bottom: 0.1em; ->>>>>>> master + right: 1em; + top: 0.92em; + width: 3em; + height: 0.1em; + z-index: 12; } diff --git a/res/scoreboard.html b/res/scoreboard.html index bda31b0..e5a8b8d 100644 --- a/res/scoreboard.html +++ b/res/scoreboard.html @@ -34,7 +34,7 @@ - - +
@@ -45,7 +45,7 @@
- - +
diff --git a/res/scoreboard.js b/res/scoreboard.js index 8bf4aa7..de41a6a 100644 --- a/res/scoreboard.js +++ b/res/scoreboard.js @@ -287,6 +287,10 @@ function transition(newstate) { e("jammer-a").className = "jammer"; e("jammer-b").className = "jammer"; + // Make team names read-only + e("name-a").readOnly = true + e("name-b").readOnly = true + var setupElements = document.getElementsByClassName("setup") for (var i = 0; i < setupElements.length; i += 1) { var el = setupElements[i] @@ -389,6 +393,12 @@ function handle(event) { case "load-b": changeLogo(team) break + case "name-a": + case "name-b": + if (tgt.readOnly) { + score(team, -adj); + } + break; case "img-a": case "img-b": case "kitty-a": @@ -642,6 +652,8 @@ function start() { resize(); load(); + ei("name-a") + ei("name-b") ei("logo-a"); ei("logo-b"); ei("score-a");