From 4038f1667cf224b5a42e4f4205435a69bf491b3c Mon Sep 17 00:00:00 2001 From: Micho Date: Sun, 19 May 2013 09:54:41 +0200 Subject: [PATCH] adding stop button --- clients/anim/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/clients/anim/main.js b/clients/anim/main.js index bb2ac27..5443331 100644 --- a/clients/anim/main.js +++ b/clients/anim/main.js @@ -44,6 +44,10 @@ function init() { })(); } + var node = $('Stop'); + node.click(stop); + menu.append(node); + var index = -1; for (var time = -60; time <= (4*24+1)*60; time++) { while (data.times[index+1] <= time) index++;