-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
59 lines (47 loc) · 1.79 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
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<style type="text/css" media="screen">
body {
background-image: url("wallpaper.jpg");
}
h1 {
color: white;
}
</style>
<title>Graphing Calculator</title>
</head>
<body>
<h1 class="text-center">Graphing Calculator</h1>
<div class="container-fluid">
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">
<div class="jumbotron">
<div class="container-fluid">
<label for="input-id">Equation</label> <br>
<i>Use JavaScript syntax</i>
<input type="text" id="equation" class="form-control" required="required" value="1/(x*x+1)*10*Math.sin(x*2)" onChange="readParams()">
<label for="input-id">Step</label>
<input type="number" id="step" class="form-control" required="required" value="1" min="1" onChange="readParams()">
<label for="input-id">X Shift</label>
<input type="number" id="xShift" class="form-control" required="required" value="0" onChange="readParams()">
<label for="input-id">Y Shift</label>
<input type="number" id="yShift" class="form-control" required="required" value="0" onChange="readParams()">
<br>
<button type="button" class="btn btn-default" onClick="readParams()">Update</button>
</div>
<br>
</div>
</div>
<div class="col-xs-9 col-sm-9 col-md-9 col-lg-9">
<div class="jumbotron">
<div class="container text-center">
<canvas id="graphCanvas" width="1100" height="700"></canvas>
</div>
</div>
</div>
</div>
<script src="graph.js"></script>
</body>
</html>