From 5a6aad3db16ee8137cdade86070a343c5a3da05d Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Sat, 19 Jul 2014 18:26:57 +0200 Subject: [PATCH] cap maximum time to 60 --- app/assets/javascripts/app/controllers/dashboard.js.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/app/controllers/dashboard.js.coffee b/app/assets/javascripts/app/controllers/dashboard.js.coffee index 1f5427dd6..3d028da8a 100644 --- a/app/assets/javascripts/app/controllers/dashboard.js.coffee +++ b/app/assets/javascripts/app/controllers/dashboard.js.coffee @@ -99,6 +99,8 @@ class Index extends App.ControllerContent canvas.attr 'width', 2 * radius canvas.attr 'height', 2 * radius + time = 60 if time > 60 + handlingTimeColors = 5: '#38AE6A' # supergood 10: '#A9AC41' # good