-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvertex.html
More file actions
197 lines (185 loc) · 10 KB
/
vertex.html
File metadata and controls
197 lines (185 loc) · 10 KB
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Finding the Vertex</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"
rel="stylesheet" />
<link
href="https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap"
rel="stylesheet" />
<link
href="https://fonts.googleapis.com/css2?family=Teko:wght@300..700&display=swap"
rel="stylesheet" />
<link
rel="stylesheet"
href="https://www.w3schools.com/w3css/4/w3.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
<link rel="stylesheet" href="styles.css" />
<script src="vertex.js"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
</head>
<body>
<!-- Header -->
<div class="w3-container spartan">
<h1><a href="index.html"><i class="fa fa-home"></i></a> ACAD Math Apps</h1>
<img src="Images/Spartan-Logo2.png" height="50" class="logo" />
</div>
<!-- Body -->
<div class="w3-container">
<h2>Finding the Vertex</h2>
<p>
Click the START button to generate a quadratic or absolute value function, and identify where it's vertex is.
Then click the CHECK button to check your answer.
</p>
</div>
<div class="w3-container">
<div class="w3-panel w3-border-green w3-leftbar w3-topbar">
<h3>Vertex of a Quadratic Function in Vertex Form</h3>
<p>\(f(x)=a(x-h)^2+k\) has a vertex at \((h,k)\)</p>
</div>
<button onclick="startFresh()" class="start" id="startFresh">Start</button><button onclick="debug()" style="visibility: hidden">Debug</button><button onclick="check()" class="next" id="check" style="visibility: hidden;">Check Answer</button><button onclick="nextProb()" class="next" id="nextProb" style="visibility: hidden;">Next Problem</button>
<div><br/></div>
<div id="newScores" class="scoreGrid">
<div class="scoreCard">
<span class="scoreText">CORRECT:</span>
<br /><span class="scoreText" id="correct">0</span>
</div>
<div class="scoreCard">
<span class="scoreText">GUESSES:</span>
<br /><span class="scoreText" id="guesses">0</span>
</div>
<div class="scoreCard">
<span class="scoreText">PERCENT:</span>
<br /><span class="scoreText" id="percent">0</span>
</div>
</div>
<div id="result"><h2> </h2></div>
<div id="problem"><h2> </h2></div>
<br />
<input id="quadVertex" style="visibility: hidden;">
<br /><br />
<br /><br />
</div>
<div class="w3-container">
<div class="w3-panel w3-border-green w3-leftbar w3-topbar">
<h3>Vertex of a Quadratic Function in Standard Form</h3>
<p>\(f(x)=ax^2+bx+c\) has a vertex at \(x=\frac{-b}{2a}\)</p>
<p>Find the \(x\) coordinate of the vertex.</p>
</div>
<button onclick="startFresh3()" class="start" id="startFresh3">Start</button><button onclick="debug3()" style="visibility: hidden">Debug</button><button onclick="check3()" class="next" id="check3" style="visibility: hidden;">Check Answer</button><button onclick="nextProb3()" class="next" id="nextProb3" style="visibility: hidden;">Next Problem</button>
<div><br/></div>
<div id="newScores3" class="scoreGrid">
<div class="scoreCard">
<span class="scoreText">CORRECT:</span>
<br /><span class="scoreText" id="correct3">0</span>
</div>
<div class="scoreCard">
<span class="scoreText">GUESSES:</span>
<br /><span class="scoreText" id="guesses3">0</span>
</div>
<div class="scoreCard">
<span class="scoreText">PERCENT:</span>
<br /><span class="scoreText" id="percent3">0</span>
</div>
</div>
<div id="result3"><h2> </h2></div>
<div id="problem3"><h2> </h2></div>
<br />
<p>\(x=\) <input id="quadVertex3" style="visibility: hidden;"></p>
<br /><br />
<br /><br />
</div>
<div class="w3-container">
<div class="w3-panel w3-border-green w3-leftbar w3-topbar">
<h3>Vertex of a Quadratic Function in Factored Form</h3>
<p>\(f(x)=a(x-z_1)(x-z_2)\) has a vertex at \(x=\frac{z_1+z_2}{2}\)</p>
<p>Find the \(x\) coordinate of the vertex.</p>
</div>
<button onclick="startFresh4()" class="start" id="startFresh4">Start</button><button onclick="debug4()" style="visibility: hidden">Debug</button><button onclick="check4()" class="next" id="check4" style="visibility: hidden;">Check Answer</button><button onclick="nextProb4()" class="next" id="nextProb4" style="visibility: hidden;">Next Problem</button>
<div><br/></div>
<div id="newScores4" class="scoreGrid">
<div class="scoreCard">
<span class="scoreText">CORRECT:</span>
<br /><span class="scoreText" id="correct4">0</span>
</div>
<div class="scoreCard">
<span class="scoreText">GUESSES:</span>
<br /><span class="scoreText" id="guesses4">0</span>
</div>
<div class="scoreCard">
<span class="scoreText">PERCENT:</span>
<br /><span class="scoreText" id="percent4">0</span>
</div>
</div>
<div id="result4"><h2> </h2></div>
<div id="problem4"><h2> </h2></div>
<br />
<p>\(x=\) <input id="quadVertex4" style="visibility: hidden;"></p>
<br /><br />
<br /><br />
</div>
<div class="w3-container">
<div class="w3-panel w3-border-green w3-leftbar w3-topbar">
<h3>Vertex of a Quadratic Function in a Random Form</h3>
<p>Find the \(x\) coordinate of the vertex.</p>
</div>
<button onclick="startFresh5()" class="start" id="startFresh5">Start</button><button onclick="debug5()" style="visibility: hidden">Debug</button><button onclick="check5()" class="next" id="check5" style="visibility: hidden;">Check Answer</button><button onclick="nextProb5()" class="next" id="nextProb5" style="visibility: hidden;">Next Problem</button>
<div><br/></div>
<div id="newScores5" class="scoreGrid">
<div class="scoreCard">
<span class="scoreText">CORRECT:</span>
<br /><span class="scoreText" id="correct5">0</span>
</div>
<div class="scoreCard">
<span class="scoreText">GUESSES:</span>
<br /><span class="scoreText" id="guesses5">0</span>
</div>
<div class="scoreCard">
<span class="scoreText">PERCENT:</span>
<br /><span class="scoreText" id="percent5">0</span>
</div>
</div>
<div id="result5"><h2> </h2></div>
<div id="problem5"><h2> </h2></div>
<br />
<p><label for="quadVertex5" id="label5">\(x=\) </label><input id="quadVertex5" style="visibility: hidden;"></p>
<br /><br />
<br /><br />
</div>
<div class="w3-container">
<div class="w3-panel w3-border-green w3-leftbar w3-topbar">
<h3>Vertex of an Absolute Value Function</h3>
<p>\(f(x)=a|x-h|+k\) has a vertex at \((h,k)\)</p>
</div>
<button onclick="startFresh2()" class="start" id="startFresh2">Start</button><button onclick="debug2()" style="visibility: hidden">Debug</button><button onclick="check2()" class="next" id="check2" style="visibility: hidden;">Check Answer</button><button onclick="nextProb2()" class="next" id="nextProb2" style="visibility: hidden;">Next Problem</button>
<div><br/></div>
<div id = "newScores2" class="scoreGrid">
<div class="scoreCard">
<span class="scoreText">CORRECT:</span>
<br /><span class="scoreText" id="correct2">0</span>
</div>
<div class="scoreCard">
<span class="scoreText">GUESSES:</span>
<br /><span class="scoreText" id="guesses2">0</span>
</div>
<div class="scoreCard">
<span class="scoreText">PERCENT:</span>
<br /><span class="scoreText" id="percent2">0</span>
</div>
</div>
<div id ="result2"><h2> </h2></div>
<div id="problem2"><h2> </h2></div>
<br />
<input id="absVertex" style="visibility: hidden;">
<br /><br />
<br /><br />
</div>
</body>
</html>