From c3f4a227ef49c63ea10a387863b7a255a5fbce35 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Sat, 15 Feb 2014 20:19:35 -0700 Subject: [PATCH] Fix banana --- res/scoreboard.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/res/scoreboard.js b/res/scoreboard.js index 9489fbb..47afbe3 100644 --- a/res/scoreboard.js +++ b/res/scoreboard.js @@ -245,7 +245,7 @@ function transition(newstate) { */ var notices = { - "banana": '' + "banana": '' }; var notice_timer; @@ -628,10 +628,10 @@ function fgColor(color) { for (var i = 0; i < 3; i += 1) { v += parseInt(color.substr(1+i*2, 2), 16) } - if (v / 3 >= 0x88) { - return "#000000" - } else { + if (v / 3 < 0x88) { return "#ffffff" + } else { + return "#000000" } }