-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
109 lines (95 loc) · 3.12 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
105
106
107
108
109
<!DOCTYPE html>
<!--
Authors : Glenn Patrick Mariano
John Laryn Corsino
Thea Isabelle Langit
-->
<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">
<link rel="stylesheet" href="assets/master.css">
<title>YaLikeMath | Interpolation</title>
</head>
<body>
<div class="wrapper" id="wrapper">
<!-- Header -->
<div class="logo">
<img class="img"src="assets/logo.png">
</div>
<div class="title">
<h1>Interpolation Calculator</h1>
</div>
<!-- Mode Selector -->
<div>
Mode :
<select id="orderOption" class="options" onchange="generateForms()">
<option value="Order 1">Order 1</option>
<option value="Order 2">Order 2</option>
<option value="Order 3">Order 3</option>
</select>
</div>
<!-- Forms -->
<div class="forms">
<form class="myForm" >
<label for="x0">x<sub>0</sub></label>
<input type="text" id="x0" name="x0" value="0">
<label for="y0">y<sub>0</sub></label>
<input type="text" id="y0" name="y0" value="0">
</form>
<form class="myForm">
<label for="x1">x<sub>1</sub></label>
<input type="text" id="x1" name="x1" value="0">
<label for="y1">y<sub>1</sub></label>
<input type="text" id="y1" name="y1" value="0">
</form>
<form class="myForm" id="formTwo" style="display: none;">
<label for="x2">x<sub>2</sub></label>
<input type="text" id="x2" name="x2" value="0">
<label for="y1">y<sub>2</sub></label>
<input type="text" id="y2" name="y2" value="0">
</form>
<form class="myForm" id="formThree" style="display: none;">
<label for="x3">x<sub>3</sub></label>
<input type="text" id="x3" name="x3" value="0">
<label for="y3">y<sub>3</sub></label>
<input type="text" id="y3" name="y3" value="0">
</form>
</div>
<div class="calc-button">
<a href="#sec"><button class ="button" type="button" name="button" onclick="calculate()">Calculate</button></a>
</div>
</div>
<!-- Solution -->
<div class="sec-wrapper" id="sec">
<h1>Solution</h1>
<!-- Substitution -->
<div id="sol" class="fdiv" style="display: none;">
<div class="left">
<h2>y = </h2>
</div>
</div>
<!-- Evaluate x -->
<div id="answer" class="ans" style="display: none;">
<div>
<form>
<h2>Evaluate f(x)</h2>
<input type="text" id="x" name="x" value="0">
</form>
</div>
<div>
<button class ="button" type="button" name="evaluateB" onclick="findX()">Calculate</button>
</div>
<div>
<h2 class="ans" id="xtext"></h2>
</div>
</div>
<!-- Graph -->
<div class="calculator" id="calculator"></div>
<a href="#wrapper"><button type="button" name="button" id="backToTop" >Back to Top</button></a>
</div>
<script src="https://www.desmos.com/api/v1.5/calculator.js?apiKey=dcb31709b452b1cf9dc26972add0fda6"></script>
<script type="text/javascript" src="assets/scripts.js"></script> <!--DO NOT REMOVE AND DO NOT CHANGE -->
</body>
</html>