-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcanvas.html
54 lines (45 loc) · 1.53 KB
/
canvas.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
<!DOCTYPE html>
<html>
<head>
<title>A simple canvas</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="canvas.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="container">
<div class="row">
<form>
<div class="mx-button">
<input type="radio" name="mx" id="butRect" checked>
<label for="butRect" unselectable>Rectangle</label>
</div>
<div class="mx-button">
<input type="radio" name="mx" id="butLine" checked>
<label for="butLine" unselectable>Line</label>
</div>
</form>
<input id="spinnerWidth" type="number" min="1" max="50" step="1" value="5" size="4">
<input id="colour" type="color">
<input id="save" type="button" value="save" onclick="save()">
</div>
<br/>
<div class="row">
<div class="col-md-8" id="canvasDiv">
<canvas class="myCanvas" id="myCanvas"></canvas>
</div>
<div class="col-md-4">
<ul class="list-unstyled" id="shapeList">
</ul>
</div>
</div>
</div>
<script src="jquery-2.1.3.min.js" type="text/javascript"></script>
<script src="bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="model.js" type="text/javascript"></script>
<script src="view.js" type="text/javascript"></script>
<script src="interaction.js" type="text/javascript"></script>
<script src="controller.js" type="text/javascript"></script>
<script src="main.js" type="text/javascript"></script>
</body>
</html>