-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
63 lines (48 loc) · 1.91 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
<!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="icon" type="image/png" sizes="32x32" href="./assets/images/favicon-32x32.png">
<title>Frontend Mentor | Age calculator app</title>
<link rel="stylesheet" href="index.css">
</head>
<body>
<div class="age_container">
<div class="age_box">
<div class="d-txt">Day</div>
<div class="m-txt">Month</div>
<div class="y-txt">Year</div>
<div class="error-d"></div>
<div class="error-m"></div>
<div class="error-y"></div>
<div class="input_box">
<input type="text" class="in1" name="" id="day" placeholder="DD">
<input type="text" class="in2" name="" id="month" placeholder="MM">
<!-- <span id="m"></span> -->
<input type="text" name="" class="in3" id="year" placeholder="YYYY">
<!-- <span id="y"></span> -->
</div>
<p class="error"></p>
<svg class="svg" xmlns="http://www.w3.org/2000/svg" width="46" height="44" viewBox="0 0 46 44"
onclick="calculateAge()">
<g fill="none" stroke="#FFF" stroke-width="2">
<path d="M1 22.019C8.333 21.686 23 25.616 23 44M23 44V0M45 22.019C37.667 21.686 23 25.616 23 44" />
</g>
</svg>
<p id="result"></p>
<div class="agecalc">
<div class="y"><span class="dash1">--</span> years</div>
<div class="m"><span class="dash2">--</span> <span class="per">months</span></div>
<div class="d"><span class="dash3">--</span> days</div>
</div>
</div>
</div>
<div class="attribution">
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
Coded by <a href="https://github.com/favourachara07">Achara Favour</a>.
</div>
<script src="index.js"></script>
</body>
</html>