-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
45 lines (39 loc) · 2.04 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1> HTML Test </h1>
<p> Now, we'll need to create a HTML frontend for our JavaScript. If you haven't done the JavaScript exercises, go do those now.</p>
<p>Replace this placeholder HTML with a calculator, that satisfies the following stories:</p>
<ul>
<li>The user can enter their height, in cm, into a text input field.</li>
<li>The user can enter their weight, in kg, into a text input field.</li>
<li>The user can press a "calculate" button, that displays the user's calculated BMI.</li>
<li>The user sees a box, next to the form, with the results of the calculation (BMI and Diagnosis).</li>
<li>The user sees their calculated BMI, in large black text.</li>
<li>The user sees text, to the right of the numeric BMI, that displays "obese", "overweight", "normal weight", or "underweight".</li>
<li>The user sees the result in large red text if the result is "obese" or "underweight".</li>
<li>The user sees the result in large dark yellow text if the result is "overweight".</li>
<li>The user sees the result in large green text if the result is "normal weight".</li>
</ul>
<h2> Here is a very ugly screenshot.</h2>
<img src="https://i.imgur.com/H6jN810.png">
<p> As always, feel free to make things more beautiful. This is only the bare minimum. Good luck!</p>
<h3>FAQ</h3>
<ul>
<li>Should I create a new javascript file, or import and edit the js-1.js file?</li>
<li>We recommend you create a new JavaScript file, just to link to this HTML.</li>
<br/>
<li>Should I create a new CSS file?</li>
<li>Yes.</li>
<br/>
<li>Should I keep these instructions?</li>
<li>No, please replace these instructions with a new file.</li>
</ul>
<em>Note: you'll need to create (and link) a CSS file. </em>
</body>
</html>