-
Notifications
You must be signed in to change notification settings - Fork 0
/
line-fitter.html
53 lines (48 loc) · 2.42 KB
/
line-fitter.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
<!DOCTYPE html>
<html>
<head>
<title>Line Fitting Visualization</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script src="https://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link href="line-fitter.css" rel="stylesheet">
<link rel="stylesheet" href="https://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
</head>
<body>
<div class='container-fluid well'>
<div class='col-sm-7'>
<div class='row chart-container'>
</div>
<div class='row'>
<div class='row'>
<div class='col-sm-6'><span class='a-header'>m:</span>
<div class='a-slider'></div>
<div class='a-label'></div>
</div>
<div class='col-sm-6'><span class='b-header'>b:</span>
<div class='b-slider'></div>
<div class='b-label'></div>
</div>
</div>
<div class='row'>
<div class='col-sm-6'>
<input type='checkBox' class='plot-fit'><span style='margin-left:5px;'>Plot Best-Fit</span></div>
<div class='col-sm-6'><span class='equation' style='margin-left:10px'>y=ax<sup>2</sup>+bx+c</span></div>
</div>
<div class='row'>
<div class='col-sm-6'>
<input class='point-number' placeholder='# of points' style='margin-right:10px; width:30%'>
<button class='randomize'>Randomize Points</button>
</div>
</div>
</div>
</div>
<div class='col-sm-5'>
<div class='graph-container'></div>
<div class='info-container'></div>
</div>
<script src="line-fitter.js"></script>
</body>
</html>