-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
26 lines (26 loc) · 1.07 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<html>
<head>
<title>spirals</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script type="text/javascript">
var init = function() {
var canvas = document.getElementById('canvas');
var spirals = new SpiralControl(canvas);
document.getElementById('startButton').onclick = function() {spirals.start();};
document.getElementById('stopButton').onclick = function() {spirals.stop();};
document.getElementById('restartButton').onclick = function() {spirals.stop(); init(); spirals.start();};
};
</script>
</head>
<body onload="init();">
spirals
<div id="canvasContainer" class="canvasContainer">
<canvas id="canvas" class="canvas" width="600" height="300" style="border-style:solid"></canvas>
</div>
<span id="debug"> </span>
<button id="startButton">Start</button>
<button id="stopButton">Stop</button>
<button id="restartButton">Restart</button>
</body>
<script type="text/javascript" src="spirals.js"></script>
</html>