-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
136 lines (128 loc) · 3.19 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<!DOCTYPE html>
<html>
<head>
<title> PolarOfACurve2D </title>
<script type="text/javascript" src="polar2D.js"> </script>
<script type="text/javascript" src="utilityFunc.js"> </script>
<style type="text/css">
#addBtn
{
-webkit-border-radius: 20px;
-moz-border-radius: 20px;
border-radius: 20px;
color: #FFFFFF;
font-family: Open Sans;
font-size: 14px;
font-weight: 100;
padding: 13px;
background-color: #618D88;
text-decoration: none;
display: inline-block;
cursor: pointer;
text-align: center;
}
#addBtn:hover
{
background: #D2B09B;
border: solid #FFFFFF 1px;
-webkit-border-radius: 46px;
-moz-border-radius: 46px;
border-radius: 46px;
text-decoration: none;
}
#drawCurveBtn
{
-webkit-border-radius: 20px;
-moz-border-radius: 20px;
border-radius: 20px;
color: #FFFFFF;
font-family: Open Sans;
font-size: 14px;
font-weight: 100;
padding: 13px;
background-color: #618D88;
text-decoration: none;
display: inline-block;
cursor: pointer;
text-align: center;
}
#drawCurveBtn:hover
{
background: #D2B09B;
border: solid #FFFFFF 1px;
-webkit-border-radius: 46px;
-moz-border-radius: 46px;
border-radius: 46px;
text-decoration: none;
}
#drawPolarBtn
{
-webkit-border-radius: 20px;
-moz-border-radius: 20px;
border-radius: 20px;
color: #FFFFFF;
font-family: Open Sans;
font-size: 14px;
font-weight: 100;
padding: 13px;
background-color: #618D88;
text-decoration: none;
display: inline-block;
cursor: pointer;
text-align: center;
}
#drawPolarBtn:hover
{
background: #D2B09B;
border: solid #FFFFFF 1px;
-webkit-border-radius: 46px;
-moz-border-radius: 46px;
border-radius: 46px;
text-decoration: none;
}
#clearBtn
{
-webkit-border-radius: 20px;
-moz-border-radius: 20px;
border-radius: 20px;
color: #FFFFFF;
font-family: Open Sans;
font-size: 14px;
font-weight: 100;
padding: 13px;
background-color: #618D88;
text-decoration: none;
display: inline-block;
cursor: pointer;
text-align: center;
}
#clearBtn:hover
{
background: #D2B09B;
border: solid #FFFFFF 1px;
-webkit-border-radius: 46px;
-moz-border-radius: 46px;
border-radius: 46px;
text-decoration: none;
}
</style>
</head>
<body onload="start()">
<h2>Polar 2D</h2>
<canvas id = "canvas" width = "640" height = "480" style="border:2px solid #000000;">
Canvas is not supported.
</canvas>
<br>
<!--MenuButtons-->
<button onclick="btnAddControlPoints_OnClick()" id= "addBtn" > Start adding control points </button>
<button onclick="btnDrawCurve_OnClick()" id= "drawCurveBtn"> Draw curve </button>
<button onclick="btnDrawPolar_OnClick()" id= "drawPolarBtn"> Draw polar </button>
<button onclick="btnClear_OnClick()" id="clearBtn"> Clear </button>
<!--TxtBox-->
<form >
<label for="fname">t value:</label><br>
<input type="text" value="0" id="txtT"><br><br>
</form>
<br>
</body>
</html>