-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabout.html
78 lines (69 loc) · 1.96 KB
/
about.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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="assets/css/about.css">
<style>
body {
margin: 0;
padding: 0;
font-family: "SF Pro Text";
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.container {
text-align: center;
}
p {
margin-bottom: 1em;
line-height: 1.5;
}
h3 {
color:lightsalmon
}
h1 {
font-size: 2em;
margin-bottom: 0.5em;
color: #FFFFFF
}
.bold-label {
font-weight: bold;
}
.g { color: #4285F4; }
.o1 { color: #DB4437; }
.o2 { color: #F4B400; }
.l { color: #0F9D58; }
.e { color: #DB4437; }
</style>
<title>About me</title>
</head>
<body>
<div class="container">
<h1>Nonprawich Intakaew (<span class="g">G</span><span class="o1">o</span><span class="o2">o</span><span class="g">g</span><span class="l">l</span><span class="e">e</span>)</h1>
<p>
<span id="age"></span> years old
<br> Bangkok, Thailand
<br> Student
</p>
<p>
<span class="bold-label">Previous:</span> The Prince Royal's College
<br> <span class="bold-label">Current:</span> SIIT (Computer Engineering), Thammasat University
</p>
<h3>
<i>New page coming soon.</i>
</h3>
</div>
<script>
function updateAge() {
const birthday = new Date('2004-12-26T00:00:00');
const now = new Date();
const ageInMilliseconds = now - birthday;
const ageInYears = ageInMilliseconds / (365.25 * 24 * 60 * 60 * 1000);
document.getElementById('age').textContent = ageInYears.toFixed(26);
}
updateAge();
setInterval(updateAge, 50);
</script>
</body>
</html>