-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
66 lines (60 loc) · 2.08 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
64
65
66
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Age Calculator</title>
<link rel="stylesheet" href="index.css" />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0"
/>
</head>
<body>
<div class="can">
<canvas class="confetti" id="canvas"></canvas>
</div>
<main>
<div class="container">
<div class="age__cont">
<div class="date">
<div class="day">
<label for="day" class="days" id="day2">DAY</label>
<input type="number" name="day" id="day" required />
<p class="error1">Must be a valid day</p>
</div>
<div class="day" id="months">
<label for="day2" class="day34">MONTH</label>
<input type="number" name="day2" id="month" required />
<p class="error2">Must be a valid month</p>
</div>
<div class="day" id="years">
<label for="day3" class="day3">YEAR</label>
<input type="number" name="day3" id="year" required />
<p class="error3">Must be in the past</p>
</div>
</div>
<div class="icon">
<span onclick="cal()" class="material-symbols-outlined">
motion_photos_auto
</span>
<span onclick="reload()" class="material-symbols-outlined">
move
</span>
</div>
<div class="display">
<p><span class="num1">--</span> years</p>
<p><span class="num2">--</span> months</p>
<p><span class="num3">--</span> days</p>
</div>
</div>
<div class="tag">
<p>created by <span> @AiyusTech</span></p>
</div>
</div>
</main>
<script src="index.js" derfer></script>
<script src="confetti.js" defer></script>
</body>
</html>