-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
104 lines (104 loc) · 5.36 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="mobile-web-app-capable" content="yes">
<meta name="theme-color" content="#311B92">
<meta property="og:url" content="https://fblupi.github.io/interpolator/"/>
<meta property="og:site_name" content="Interpolator"/>
<meta property="og:type" content="website"/>
<meta property="og:title" content="Interpolator"/>
<meta property="og:description" content="Make linear interpolations easy and quickly!"/>
<meta property="og:image" content="https://fblupi.github.io/interpolator/img/LinearInterpolation.png"/>
<meta property="og:image:height" content="240"/>
<meta property="og:image:width" content="240"/>
<meta property="og:image:alt" content="Given the two red points, the blue line is the linear interpolant between the points, and the value y at x may be found by linear interpolation."/>
<title>Interpolator</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/interpolator.css">
<link href="img/icon.png" rel="icon" sizes="192x192">
</head>
<body>
<nav class="navbar navbar-toggleable-md navbar-dark bg-primary fixed-top">
<a class="navbar-brand" href="#">Interpolator</a>
</nav>
<div class="container">
<div class="starter-template">
<h1>Linear interpolation</h1>
<p class="lead">Enter your parameters and let's start to interpolate!</p>
<hr>
<div class="row">
<div class="col-lg-6">
<p class="left">Enter your parameters here:</p>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label>x<sub>0</sub></label>
<input id="x0" name="x0" type="number" placeholder="0">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>y<sub>0</sub></label>
<input id="y0" name="y0" type="number" placeholder="255">
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label>x<sub>1</sub></label>
<input id="x1" name="x1" type="number" placeholder="20">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>y<sub>1</sub></label>
<input id="y1" name="y1" type="number" placeholder="128">
</div>
</div>
</div>
<p class="left">Enter x here and gets its value:</p>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label>x</label>
<input id="x" name="x" type="number" placeholder="15">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>y</label>
<input id="y" name="y" type="number" readonly>
</div>
</div>
</div>
<div class="float-right">
<button id="btn-clear" type="reset" class="btn btn-default">Clear</button>
<button id="btn-submit" class="btn btn-primary">Let's interpolate!</button>
</div>
<div id="alert-wrong-number" class="alert-custom alert alert-danger fade" role="alert">
<strong>Error!</strong> I can't recognize the number you have introduced.
</div>
</div>
<div class="col-lg-6">
<p class="left">Check the image below to know what the parameters mean:</p>
<img class="help-image" src="img/LinearInterpolation.svg">
<p><small><a href="https://en.wikipedia.org/wiki/File:LinearInterpolation.svg">Image Source</a></small></p>
</div>
</div>
<hr>
<h1><small>Contact</small></h1>
<p>You can download the code from <a href="http://github.com/fblupi/interpolator">GitHub</a> and contact with me on <a href="http://twitter.com/fblupi">Twitter</a> or by <a href="mailto:franciscojavierbolivarlupianez@gmail.com?subject=Feedback%20Interpolator">email</a>.</p>
</div>
</div>
<script src="js/jquery.slim.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/tether.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/interpolator/linear.js"></script>
<script src="js/interpolator/events.js"></script>
</body>
</html>