-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
76 lines (76 loc) · 2.96 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
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<script src="formula_checker.js" type="text/javascript"></script>
<script src="MathGraph.js" type="text/javascript"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<title></title>
<style>
.value {
text-align: right;
width: 100px;
}
input[type="button"], button {
border: none;
backgroud-color: gray;
padding: 5px;
}
.panelButton {
display: inline-block;
background-color: pink;
padding: 1px 3px;
}
.panelButton.active {
background-color: red;
}
.panel {
display: none;
}
.panel.active {
display: block;
}
</style>
</head>
<body>
<div style='width:100%;'>
<div style='float:left;'>
<canvas id='MathGraph' width='400' height='400' style="width:100%;"></canvas>
</div>
<div id="panel">
<form method=''>
<button type="button" id="zoomIn"><span class="fa fa-search-plus"></span></button>
<button type="button" id="zoomOut"><span class="fa fa-search-minus"></span></button>
<input type='button' id='resetOrigin' value='原点を中心に表示' />
<button type='button' id='draw' onclick='drawAll();' ><span class="fa fa-refresh"></span></button>
<div class="panelButtons">
<div class="panelButton active" data-panel-id="explicitPanel">Explicit</div>
<div class="panelButton" data-panel-id="parametricPanel">Parametric</div>
<div class="panelButton"></div>
</div>
<div class="panel active" id="explicitPanel">
<div id='explicitFunctions'>
<div>y = <input type='text' name='explicit' value='x * x - 3 * x - 5' /><button name="remove" type="button"><span class="fa fa-trash-o"></span></button></div>
<div>y = <input type='text' name='explicit' value='x - 1' /><button name="remove" type="button"><span class="fa fa-trash-o"></span></button></div>
</div>
<input type='button' id='add' value='追加' />
</div>
<div id='parametricPanel' class="panel">
<div id='parametricFunctions'>
<div name='parametric'>
x = <input type='text' name='parametricX' value='t' /><br />
y = <input type='text' name='parametricY' value='3 / t' /><br />
t = [
<input type='number' name='parameterMin' class='value' value='-0.1' />,
<input type='number' name='parameterMax' class='value' value='0.1' />
]
</div>
<input type='button' id='addParametric' value='追加' />
</div>
</div>
</form>
</div>
</div>
</body>
</html>