-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
44 lines (44 loc) · 1.66 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0">
<title>deshgraph</title>
</head>
<body>
<form id="form">
<label for="expr">Expression:</label>
0 = <input type="text" id="expr" value="x*x+y*y+w*w+sin(u)-1" />
<fieldset>
<legend>Axes</legend>
<select id="axes" size="4" style="min-width: 100px"></select>
<input type="button" id="upButton" value="Up" />
<input type="button" id="downButton" value="Down" />
<input type="button" id="removeButton" value="Remove" />
<br/>
<label for="name">Name:</label>
<input type="text" id="name" value="x" />
<br/>
<label for="startValue">Start value:</label>
<input type="number" id="startValue" value="0" />
<br/>
<label for="endValue">End value:</label>
<input type="number" id="endValue" value="1" />
<br/>
<label for="valuesCount">Steps:</label>
<input type="number" id="valuesCount" value="2" min="2" />
<br/>
<label for="vertical">Vertical:</label>
<input type="checkbox" id="vertical" />
<br/>
<label for="forward">Forward:</label>
<input type="checkbox" id="forward" />
<br/>
<input type="button" id="addAxisButton" value="Add axis" />
</fieldset>
<input type="submit" value="Draw" />
</form>
<canvas id="canvas" style="border: 1px solid black" width="100" height="100"></canvas>
<script type="text/javascript" src="deshgraph.js"></script>
</body>
</html>