-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
130 lines (111 loc) · 4.36 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
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
<!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" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Unbounded:wght@500&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="style.css" />
<title>PolarizedIons.net</title>
</head>
<body>
<header id="main">
<img src="./img/me.jpg" alt="profile picture" />
<h1>PolarizedIons</h1>
</header>
<div id="canvas-container"></div>
<section>
<header>
<h2 class="red">Socials</h2>
</header>
<ul>
<li><a rel="me" href="https://github.com/PolarizedIons">Github</a></li>
<li>
<a rel="me" href="https://social.ions.sh/@polarized">Mastodon</a>
</li>
<li><a rel="me" href="mailto:[email protected]">Email</a></li>
<li><a rel="me" href="https://blog.polarizedions.net">Blog</a></li>
</ul>
</section>
<section>
<header>
<h2 class="purple">About Me</h2>
</header>
<dl>
<dt>What is your real name?</dt>
<dd>Stephan (IPA: /stɪpɦɑn/.)</dd>
<dt>How old are you?</dt>
<dd id="calculated-age"></dd>
<dt>Where are you from?</dt>
<dd>The south-western part of South Africa.</dd>
<dt>Why the name PolarizedIons?</dt>
<dd>
Well, I wanted a unique name for myself online, and one day in
chemisty class I saw something like that in a book. I decided there
and then that PolarizedIons will be me.
</dd>
<dt>What languages do you know?</dt>
<dd>
Afrikaans, English, with a few programming languages thrown in as well.
</dd>
<dt>Favourite game?</dt>
<dd>
Probably either Minecraft, Skyrim, or Portal 2. Oblivion, Celeste and
the Half Life series are cool too though!
</dd>
<dt>Favourite type of music?</dt>
<dd>
Hard question! I go through phases where I listen to the same artist a
lot, and sometimes nothing at all.
</dd>
<dt>What did you make this website with?</dt>
<dd>Plain html and css, hosted on Cloudflare.</dd>
<dt>What is your job/occupation?</dt>
<dd>
I'm currently a fulltime, fullstack software developer at a company in
South Africa.
</dd>
<dt>What is a random fact about you?</dt>
<dd id="calculated-fact"></dd>
</dl>
</section>
<script>
const age = () => {
const ageDifMs =
new Date().getTime() - new Date("1998/07/13").getTime();
const ageDate = new Date(ageDifMs);
return Math.abs(ageDate.getUTCFullYear() - 1970);
};
const facts = [
"I have bad social anxiety - if I don't answer your phone call, this is why!",
"I like pop music.",
"I can listen to almost any type of music, except rap/hard metal.",
"I love pumpkin soup.",
"Sometimes I listen to music all the time, sometimes I go weeks without listening to one song.",
"Sometimes on a whim, I'll rearange my bedroom completely.",
"I never studied at a universety, though people still think I'm good at what I do.",
"My cat's name is Zoey.",
"I stole this random-quote idea from my friend Ellpeck.",
"I almost never finish projects, but I'm pretty proud of those I do finish.",
"I've never left the country.",
"I have more international friends, than local ones.",
"I suck at public speaking.",
"According to 16personalities, I am an ISFP.",
"I have a discord snapback, whose import-costs, cost more than the actual hat.",
"I don't like scented candles.",
];
const getRandomFact = () =>
facts[Math.floor(Math.random() * facts.length)];
document.getElementById("calculated-age").innerText = age();
const randomFactEl = document.getElementById("calculated-fact");
const setRandomFact = () => (randomFactEl.innerText = getRandomFact());
randomFactEl.onclick = setRandomFact;
setRandomFact();
</script>
</body>
</html>