adding stop button

This commit is contained in:
Micho 2013-05-19 09:54:41 +02:00
parent dfcc2055dd
commit 4038f1667c
1 changed files with 4 additions and 0 deletions

View File

@ -44,6 +44,10 @@ function init() {
})(); })();
} }
var node = $('<span class="button">Stop</span>');
node.click(stop);
menu.append(node);
var index = -1; var index = -1;
for (var time = -60; time <= (4*24+1)*60; time++) { for (var time = -60; time <= (4*24+1)*60; time++) {
while (data.times[index+1] <= time) index++; while (data.times[index+1] <= time) index++;