-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
44 lines (37 loc) · 1.44 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
<!DOCTYPE html>
<head>
<title>Household data</title>
<link rel="stylesheet" href="styles.css"/>
<script type="text/javascript" src="functions.js"></script>
</head>
<body>
<div align="center">
<form id="number-of-members">
<h3> How many people are there in your household?</h3>
<input type="number" id="family-members">
<br><br>
<button type="submit" id="next-step">Next step</button>
</form>
<div id="reveal-after">
<form id ="family-ages"><h3>Please fill in the following boxes with the ages of your family members</h3>
<div id="add-rows">
</div>
<br>
<button type="reset">Clear form</button>
<button type="submit" id="go-back">Go back</button>
</form>
<button type="submit" id="calculate">Calculate</button>
<form id="results">
<label for="oldest-member" class="result-labels">Oldest member</label>
<input type="text" disabled id="oldest-member">
<label for="youngest-member" class="result-labels">Youngest member</label>
<input type="text" disabled id="youngest-member">
<label for="age-average" class="result-labels">Age average</label>
<input type="text" disabled id="age-average">
</form>
</div>
</div>
<script type="text/javascript" src="household-data.js"></script>
<script type="text/javascript" src="pruebas.js"></script>
</body>
</html>