cap maximum time to 60

This commit is contained in:
Felix Niklas 2014-07-19 18:26:57 +02:00
parent d165d7b67a
commit 5a6aad3db1

View file

@ -99,6 +99,8 @@ class Index extends App.ControllerContent
canvas.attr 'width', 2 * radius canvas.attr 'width', 2 * radius
canvas.attr 'height', 2 * radius canvas.attr 'height', 2 * radius
time = 60 if time > 60
handlingTimeColors = handlingTimeColors =
5: '#38AE6A' # supergood 5: '#38AE6A' # supergood
10: '#A9AC41' # good 10: '#A9AC41' # good