-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
35 lines (28 loc) · 1.65 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Linear Regression</title>
<link rel="stylesheet" href="./css/main.css">
</head>
<body>
<div class="plot-wrapper">
<svg width="400" height="400" class="plot"></svg>
<p class="equation">f(x) = ?</p>
<p class="rSquared">
r
<sup>2</sup> = ?
</p>
<div class="data">
<form class="form">
<textarea rows="8" type="text" name="points" placeholder="Add an array of points e.g. [{'x': 0, 'y':0}, ...]">[{"x":0,"y":16},{"x":8,"y":-4},{"x":16,"y":40},{"x":24,"y":4},{"x":32,"y":48},{"x":40,"y":60},{"x":48,"y":8},{"x":56,"y":68},{"x":64,"y":8},{"x":72,"y":36},{"x":80,"y":48},{"x":88,"y":68},{"x":96,"y":88},{"x":104,"y":20},{"x":112,"y":96},{"x":120,"y":100},{"x":128,"y":72},{"x":136,"y":92},{"x":144,"y":72},{"x":152,"y":84},{"x":160,"y":112},{"x":168,"y":100},{"x":176,"y":80},{"x":184,"y":52},{"x":192,"y":56},{"x":200,"y":76},{"x":208,"y":64},{"x":216,"y":116},{"x":224,"y":144},{"x":232,"y":148},{"x":240,"y":160},{"x":248,"y":84},{"x":256,"y":112},{"x":264,"y":100},{"x":272,"y":96},{"x":280,"y":124},{"x":288,"y":136},{"x":296,"y":140},{"x":304,"y":136},{"x":312,"y":172},{"x":320,"y":160},{"x":328,"y":156},{"x":336,"y":184},{"x":344,"y":140},{"x":352,"y":184},{"x":360,"y":164},{"x":368,"y":160},{"x":376,"y":172},{"x":384,"y":152},{"x":392,"y":236},{"x":400,"y":168}]
</textarea>
<button type="submit">Calculate</button>
</form>
</div>
</div>
<script src="./scripts.js"></script>
</body>
</html>