-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
56 lines (49 loc) · 2.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Function Plotter</title>
<link rel="stylesheet" href="./style/style.css" />
<link rel="apple-touch-icon" sizes="180x180" href="./style/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="./style/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="./style/favicon/favicon-16x16.png">
<link rel="manifest" href="./style/favicon/site.webmanifest">
<!-- <script src="https://cdn.plot.ly/plotly-latest.min.js"></script> -->
<script src="./scripts/plotly.js"></script>
</head>
<body>
<div class="main">
<div class="center">
<h1>Function Plotter</h1>
<form method="post" id="form">
<div class="txt_field">
<input name="formula" placeholder="    x^2" type="text" id="formula" required />
<span></span>
<label>F(x)=</label>
</div>
<label">Min</label>
<div class="txt_field">
<input type="number" placeholder="Min" id="min" value="-100" required />
<span></span>
</div>
<label">Max</label>
<div class="txt_field">
<input type="number" placeholder="Max" id="max" value="100" required />
<span></span>
</div>
<input type="submit" value="Plot" />
<div id="error" style=" display: none">
<h3 style="color: #a80019;">Errors:</h3>
<ul id="error_list"></ul>
</div>
</form>
<br />
<div id="graph"></div>
</div>
</div>
</body>
<!-- <script type="module" src="plot.js"></script> -->
<script type="module" src="./scripts/process.js"></script>
</html>