-
Notifications
You must be signed in to change notification settings - Fork 78
/
years.html
141 lines (141 loc) · 3.54 KB
/
years.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Your Life in Years - Interactive</title>
<meta name="description" content="Enter your date of birth, to see your life in years. Based on the post by Tim Urban, from Wait by Why.">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="years-favicon.png" sizes="32x32">
<link rel="stylesheet" href="your-life.css">
</head>
<body>
<div class="title-box">
<h1 class="title">Your Life in <label for="unitbox" class="unitbox-label visuallyhidden">Years</label></h1>
<select name="unitbox" class="unitbox" id="unitbox" required>
<option value="years" selected>Years</option>
<option value="months">Months</option>
<option value="weeks">Weeks</option>
</select>
</div>
<form class="dob" action="#">
<p class="instruction"><span class="print-hide">Enter your </span>Date of Birth</p>
<label for="month" class="visuallyhidden">Month</label>
<select name="month" class="month" id="month" required>
<option value="0">January</option>
<option value="1">February</option>
<option value="2">March</option>
<option value="3">April</option>
<option value="4">May</option>
<option value="5">June</option>
<option value="6">July</option>
<option value="7">August</option>
<option value="8">September</option>
<option value="9">October</option>
<option value="10">November</option>
<option value="11">December</option>
</select>
<label for="day" class="visuallyhidden">Day</label>
<input type="text" class="day" id="day" placeholder="31" pattern="\d{0,2}" required/>
<label for="year" class="visuallyhidden">Year</label>
<input type="text" class="year" id="year" placeholder="1999" pattern="\d{4}" required/>
</form>
<ol class="chart years group">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ol>
<div class="credits">
<p>Based on the <a href="http://waitbutwhy.com/2014/05/life-weeks.html">Your Life in Weeks</a> post by Tim Urban, from <a href="http://waitbutwhy.com/">Wait But Why</a>.</p>
<p class="print-hide"><a href="https://github.com/bryanbraun/your-life">See the code on Github.</a></p>
<p class="print-hide"><a href="javascript:window.print()">Print this page.</a></p>
</div>
<script src="your-life.js"></script>
</body>
</html>