-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
84 lines (84 loc) · 4.55 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
<!DOCTYPE html>
<html>
<head>
<title>Design Designer</title>
<link rel="stylesheet" href="lib/css/bootstrap.min.css">
<link rel="stylesheet" href="lib/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-slider/9.4.1/css/bootstrap-slider.min.css" />
</head>
<body style="padding: 5px;">
<div class="row" style="margin-bottom: 10px;">
</div>
<div class="row">
<div class="col-md-3" id="controls">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Controls</h3>
</div>
<div class="panel-body">
<form name="control-form">
<div class="row" id="big-radius-panel">
<div class="col-md-12">
<label for="big-radius">Radius of big circle</label>
<input
type="text"
name="big-radius"
id="big-radius"
data-provide="slider"
data-slider-id="big-radius-slider"
data-slider-min="50"
data-slider-max="300"
data-slider-step="1"
data-slider-value="250"
required="required">
</div>
</div>
<div class="row" id="small-radius-panel">
<div class="col-md-12">
<label for="big-radius">Radius of small circle</label>
<input
type="text"
name="small-radius"
id="small-radius"
data-provide="slider"
data-slider-id="small-radius-slider"
data-slider-min="20"
data-slider-max="250"
data-slider-step="1"
data-slider-value="137"
required="required">
</div>
</div>
<div class="row" id="color-panel">
<div class="col-md-12">
<label for="big-radius">Color</label>
<input type="color" name="drawing-color" id="drawing-color" class="form-control" value="" required="required" title="Color">
</div>
</div>
<div class="row" id="control-panel" style="margin-top: 10px;">
<div class="col-md-6">
<button type="button" class="btn btn-primary" onclick="start()" id="start-btn">Start</button>
</div>
<div class="col-md-6">
<button type="button" class="btn btn-default" onclick="stop()" id="stop-btn">Stop</button>
</div>
</div>
<div class="row" id="point-panel" style="margin-top: 10px;">
<div class="col-md-12">
<label>Select Point on smaller (yellow) circle </label>
</div>
</div>
</form>
</div>
</div>
</div>
<div class="col-md-9" id="canvas-area">
<canvas id="drawingArea" style="border: 1px solid black;" width="1000" height="600" onclick="setPoint(event)"> </canvas>
</div>
</div>
<script type="text/javascript" src="lib/js/jquery-3.1.1.min.js"></script>
<script type="text/javascript" src="lib/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-slider/9.4.1/bootstrap-slider.min.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</body>
</html>