Put the buttons underneath the canvas instead.
Chris Pressey
10 years ago
20 | 20 | canvas.style.border = "1px solid black"; |
21 | 21 | config.canvas = canvas; |
22 | 22 | |
23 | var buttonPanel = yoob.makeDiv(container); | |
24 | yoob.makeButton(buttonPanel, 'Restart', function() { t.reset(); }); | |
25 | yoob.makeButton(buttonPanel, 'Pause', function() { t.pause(); }); | |
26 | yoob.makeButton(buttonPanel, 'Resume', function() { t.resume(); }); | |
27 | ||
23 | 28 | var controlPanel = config.controlPanel || container; |
24 | ||
25 | yoob.makeButton(controlPanel, 'Restart', function() { t.reset(); }); | |
26 | yoob.makeButton(controlPanel, 'Pause', function() { t.pause(); }); | |
27 | yoob.makeButton(controlPanel, 'Resume', function() { t.resume(); }); | |
28 | yoob.makeLineBreak(controlPanel); | |
29 | 29 | |
30 | 30 | var stylePanel = function(panel) { |
31 | 31 | panel.style.background = "#e0e0e0"; |