-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
56 lines (56 loc) · 2.06 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- displays site properly based on user's device -->
<link rel="stylesheet" href="main.css">
<title> Age Calculator App</title>
</head>
<body>
<main>
<div class="container">
<!-- Input birth date -->
<div class="main-inputs">
<div class="individual-input">
<p id="day-descrip">Day</p>
<input type=text name='day' placeholder="DD" class="birth-data" id="day">
<span class="field-error" id="day-error"> </span>
</div>
<div class="individual-input">
<p id="month-descrip">Month</p>
<input type=text name='month' placeholder="MM" class="birth-data" id="month">
<span class="field-error" id="month-error"> </span>
</div>
<div class="individual-input">
<p id="year-descrip">Year</p>
<input type=text name='year' placeholder="YYYY" class="birth-data" id="year">
<span class="field-error" id="year-error"> </span>
</div>
</div>
<div class="divider">
<hr>
<div id="down-arrow">
<img src="./assets/images/icon-arrow.svg" alt="">
</div>
</div>
<!-- Display age based on inputted date -->
<div class="results-container">
<div class="individual-result">
<h1 class="results-number" id="result-years"> - - </h1>
<h1 class="results-text"> years</h1>
</div>
<div class="individual-result">
<h1 class="results-number" id="result-months"> - - </h1>
<h1 class="results-text"> months</h1>
</div>
<div class="individual-result">
<h1 class="results-number" id="result-days"> - - </h1>
<h1 class="results-text"> days</h1>
</div>
</div>
</div>
</main>
<script src="https://cdn.jsdelivr.net/momentjs/latest/moment.min.js"></script>
<script src="script.js"></script>
</body>
</html>