-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
110 lines (107 loc) · 3.14 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<title>Midpoint Rasterisation</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/midpoint.css" rel="stylesheet">
<script src="js/canvas.js"></script>
<script src="js/midpoint.js"></script>
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
</head>
<body>
<br>
<div class="container-fluid">
<div class="row">
<div class="col-md-9">
<canvas class="center-block" id="canvas" name="canvas" height="550" width="550"></canvas>
</div>
<div class="col-md-3">
<div class="thumbnail">
<div class="caption">
<div class="row">
<div class="col-md-6">
<h4>Radius</h4>
</div>
<div class="col-md-6">
<h4>Interval (ms)</h4>
</div>
</div>
<div class="row">
<div class="col-md-6">
<input type="text" class="form-control" id="radius" name="radius" value="5" onchange="radiusChange()">
</div>
<div class="col-md-6">
<input type="text" class="form-control" id="interval" name="interval" value="250" onchange="intervalChange()">
</div>
</div>
<br>
<div class="row">
<div class="col-md-12">
<h4>Step</h4>
</div>
</div>
<div class="row">
<div class="col-md-2">
<button type="button" class="btn btn-primary" onclick="stepDecrease(true)">
<span class="glyphicon glyphicon-minus"></span>
</button>
</div>
<div class="col-md-7">
<p class="lead text-center" id="step" name="step" size="15">0</p>
</div>
<div class="col-md-2">
<button type="button" class="btn btn-danger" onclick="stepIncrease(true)">
<span class="glyphicon glyphicon-plus"></span>
</button>
</div>
</div>
<div class="row">
<div class="col-md-12">
<h4>Actions</h4>
</div>
</div>
<div class="row center-block">
<div class="col-md-4">
<button class="btn btn-danger" onclick="reset(targetCanvas, targetTable)">Reset</button>
</div>
<div class="col-md-4">
<button class="btn btn-primary" onclick="startDrawTimer()">Draw</button>
</div>
<div class="col-md-4">
<button class="btn btn-primary" onclick="stopDrawTimer()">Stop</button>
</div>
</div>
</div>
</div>
<div class="thumbnail">
<div class="caption">
<div class="row">
<div class="col-md-12">
<div class="container-scrollbar">
<table class="table table-striped table-condensed table-hover table-bordered" id="results" name="results">
<thead align="center">
<td>Step</td>
<td>D</td>
<td>X</td>
<td>Y</td>
</thead>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
$(document).ready(function()
{
init();
radiusChange();
});
</script>
</body>
</html>