-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
425 lines (401 loc) · 28.5 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
<!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" />
<meta name="google-site-verification" content="h5e9b1b0SoiCSoN6FcJ4ZJZ1QJis6ElMUdIiFEawMkw" />
<title>ReLoia</title>
<meta name="title" content="ReLoia" />
<meta name="description" content="Ciao! I'm Renato Loiacono, I love programming and creating websites. I'm currently studying in Italy and I'm 17" />
<meta name="language" content="English" />
<meta name="author" content="Renato Loiacono" />
<link rel="icon" href="https://upload.wikimedia.org/wikipedia/commons/5/59/Empty.png" type="image/png" />
<link rel="stylesheet" href="reset.css" />
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="general.css" />
<script src="utils.js"></script>
<script defer src="base.js"></script>
<script defer src="canvas/mouse-anim.js"></script>
</head>
<body>
<hover>
<div head>
<div spotify >
<a target="_blank" class="mouse-hover"></a>
<img src="https://upload.wikimedia.org/wikipedia/commons/5/59/Empty.png" alt="" />
<div>
<div info translate="no">
<t>Loading...</t>
<c></c>
<p>loading</p>
</div>
<div other>
<p>Click to open</p>
<div icons>
<span>E</span>
<a title="Add song to SotD" sotd class="mouse-hover" data-hoveranimationicon="like">
<svg height="1.3rem" viewBox="-4 0 32 32" xmlns="http://www.w3.org/2000/svg">
<path d="M18.188 6.094c5.188 0 6.906 6 5.094 9.281-2.781 5.094-11.281 10.5-11.281 10.5s-8.531-5.406-11.281-10.5c-1.813-3.281-0.125-9.281 5.094-9.281 4.813 0 6.031 4.156 6.188 4.781 0.156-0.625 1.375-4.781 6.188-4.781z"></path>
</svg>
</a>
</div>
</div>
<div time translate="no">
<style barLen>
curtain > div[spotify] > div > div[time] bar {
--temp: 50%;
}
</style>
<t></t>
<bar>
<t>Not playing</t>
</bar>
<t></t>
</div>
</div>
<script>
let paused = true;
const spotifyElem = document.querySelector("div[spotify]"),
barLen = spotifyElem.querySelector("div > div[time] bar"),
progEl = spotifyElem.querySelector("div > div[time] t:first-of-type"),
tmpEl = spotifyElem.querySelector("div > div[time] t:not(:first-of-type)"),
expEl = spotifyElem.querySelector("div > div[icons] > span"),
nomEl = spotifyElem.querySelector("div > div > t"),
autEl = spotifyElem.querySelector("div > div > p"),
canEl = spotifyElem.querySelector("div > div > c"),
styEl = spotifyElem.querySelector("div style");
/**
* @param {{
* name: string,
* playing: boolean,
* explicit: boolean,
* author: string,
* progress: number,
* duration: number,
* song_link: string,
* album_image: string
* }} data
*/
function setMusicPlayerInfo(data) {
// Shows the number of people connected to the websocket
if (data.clients) onlineCont.innerText = data.clients;
if (data.playing) {
paused = false;
barLen.firstElementChild.innerText = "";
} else {
paused = true;
barLen.firstElementChild.innerText = "Not playing";
}
if (window.sotd && window.sotd.length && window.sotd.filter((el) => el.name == data.name).length) spotifyElem.querySelector("a[sotd]").classList.add("active");
else spotifyElem.querySelector("a[sotd]").classList.remove("active");
styEl.innerText = `div[f] div[artist="${data.author.toLowerCase()}"] { outline: 2px solid #c49922; z-index: 1; } curtain>div[spotify]>div>div[time] bar { --temp: ${(100 * data.progress) / data.duration}% !important; }`;
if (data.explicit) expEl.style = "display: unset";
else expEl.style = "";
if (data.name.length > 31) nomEl.setAttribute("anim", "");
else nomEl.removeAttribute("anim");
spotifyElem.querySelector("a").href = data.song_link;
nomEl.innerText = data.name;
autEl.innerText = data.author;
progEl.innerText = formatMS(data.progress);
progEl.setAttribute("ms", String(data.progress));
if (tmpEl.innerText != formatMS(data.duration)) {
tmpEl.innerText = formatMS(data.duration);
tmpEl.setAttribute("ms", data.duration);
}
spotifyElem.querySelector("div > img").src = data.album_image;
// (canEl width - el width) < 0 | el è più grande del massimo
function scrollEle(mento) {
if (canEl.offsetWidth - mento.offsetWidth < 0) mento.style = `--end: ${canEl.offsetWidth - mento.offsetWidth}px`;
else mento.style = "";
}
scrollEle(autEl);
scrollEle(nomEl);
document.querySelector("[head]").style = `--offSet: 0px`;
}
function wssFallback() {
console.log("Websocket not available");
// Some italian IPS block glitch.me so I need use this proxy
let waiting = false;
// Delete the online counter if the websocket is not available
onlineCont.parentElement.remove();
async function fetchData() {
if (waiting) return;
try {
const response = await fetch("https://glitch-proxy.vercel.app/reloia-listen/api");
if (response.status != 200) {
if (response.status == 403) {
waiting = true;
setTimeout(() => {
waiting = false;
}, 18000);
} else throw new Error(response);
}
setMusicPlayerInfo(await response.json());
} catch (error) {
setMusicPlayerInfo({
author: "An error occurred",
name: "There was an error",
song_link: "",
duration: 2 ** 52,
progress: 0,
});
console.warn(error);
}
}
fetchData();
setInterval(fetchData, 6000);
}
let usingProxy = false;
// WSS handlers
const wssHandlers = {
onmessage: (event) => {
try {
setMusicPlayerInfo(JSON.parse(event.data));
} catch (error) {
setMusicPlayerInfo({
author: "An error occurred",
name: "There was an error",
song_link: "",
duration: 2 ** 52,
progress: 0,
album_image: "https://upload.wikimedia.org/wikipedia/commons/5/59/Empty.png"
});
console.warn(error);
}
},
onclose: () => {
if (this.retries < 3) {
console.log("Websocket closed, retrying...");
if (usingProxy) {
console.log("Websocket has died, switching to proxy...");
this.retries = 3;
return;
}
this.retries++;
setTimeout(() => {
wss = new WebSocket("wss://reloia-listen.glitch.me");
wss.onmessage = wssHandlers.onmessage;
wss.onclose = wssHandlers.onclose;
wss.onerror = wssHandlers.onerror;
}, 4000 * this.retries);
} else wssFallback();
},
onerror: (...e) => {
console.warn("Websocket error:");
console.error(e);
},
retries: 0,
};
let wss, retries;
(async () => {
console.log("Connecting to websocket...");
wss = await new Promise(resolve => {
const ws = new WebSocket("wss://reloia-listen.glitch.me");
ws.onopen = () => resolve(ws);
ws.onerror = () => resolve(ws);
});
retries = 0;
if (wss.readyState != 3) {
wss.onmessage = wssHandlers.onmessage;
wss.onclose = wssHandlers.onclose;
} else wssFallback();
})();
setInterval(() => {
if (Number(progEl.getAttribute("ms")) && !paused && Number(progEl.getAttribute("ms")) < Number(tmpEl.getAttribute("ms"))) {
const newNum = Number(progEl.getAttribute("ms")) + 1000;
progEl.innerText = formatMS(newNum);
progEl.setAttribute("ms", newNum);
barLen.style = `--temp: ${(100 * newNum) / Number(tmpEl.getAttribute("ms"))}%`;
}
}, 1000);
</script>
</div>
<div info translate="no">Bari, Italy - <t>loading</t></div>
<div online translate="no">Online: <t>loading</t></div>
</div>
</hover>
<div mouse class="nomobile">
<!-- Icons for the custom icon hoveranimationicon -->
<svg xmlns="http://www.w3.org/2000/svg" id="like-icon" viewBox="0 0 34 34" width="28" height="28">
<path d="M18.188 6.094c5.188 0 6.906 6 5.094 9.281-2.781 5.094-11.281 10.5-11.281 10.5s-8.531-5.406-11.281-10.5c-1.813-3.281-0.125-9.281 5.094-9.281 4.813 0 6.031 4.156 6.188 4.781 0.156-0.625 1.375-4.781 6.188-4.781z"></path>
</svg>
<!-- star-icon -->
<svg xmlns="http://www.w3.org/2000/svg" id="star-icon" viewBox="0 0 74 74">
<path d="M26.285,2.486l5.407,10.956c0.376,0.762,1.103,1.29,1.944,1.412l12.091,1.757 c2.118,0.308,2.963,2.91,1.431,4.403l-8.749,8.528c-0.608,0.593-0.886,1.448-0.742,2.285l2.065,12.042 c0.362,2.109-1.852,3.717-3.746,2.722l-10.814-5.685c-0.752-0.395-1.651-0.395-2.403,0l-10.814,5.685 c-1.894,0.996-4.108-0.613-3.746-2.722l2.065-12.042c0.144-0.837-0.134-1.692-0.742-2.285l-8.749-8.528 c-1.532-1.494-0.687-4.096,1.431-4.403l12.091-1.757c0.841-0.122,1.568-0.65,1.944-1.412l5.407-10.956 C22.602,0.567,25.338,0.567,26.285,2.486z"/>
</svg>
<!-- arrow-down-icon -->
<svg xmlns="http://www.w3.org/2000/svg" id="arrow-down-icon" viewBox="0 0 44 44">
<path xmlns="http://www.w3.org/2000/svg" style="fill:#030104;" d="M32,16.016l-5.672-5.664c0,0-3.18,3.18-6.312,6.312V0h-8.023v16.664l-6.32-6.32L0,16.016L16,32 L32,16.016z"/>
</svg>
<!-- Fast mouse -->
<div data-type="fast"></div>
</div>
<page>
<div logo translate="no" class="mouse-hover" data-hoveranimationicon="arrow-down">
<quote>L</quote>
<p>Re</p>
<p>Loia</p>
<quote>L</quote>
</div>
<p><msg>Press any key</msg> to continue</p>
</page>
<fake-footer>
<links>
<div>
<a href="https://github.com/ReLoia" target="_blank"
><svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 24 24">
<path d="M12 0C5.374 0 0 5.373 0 12c0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23A11.509 11.509 0 0 1 12 5.803c1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576C20.566 21.797 24 17.3 24 12c0-6.627-5.373-12-12-12z" />
</svg>
</a>
<a href="https://discord.com/users/371027932082208768" target="_blank"
><svg width="33" height="33" viewBox="0 -28.5 256 256" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid">
<path d="M216.856 16.597A208.502 208.502 0 0 0 164.042 0c-2.275 4.113-4.933 9.645-6.766 14.046-19.692-2.961-39.203-2.961-58.533 0-1.832-4.4-4.55-9.933-6.846-14.046a207.809 207.809 0 0 0-52.855 16.638C5.618 67.147-3.443 116.4 1.087 164.956c22.169 16.555 43.653 26.612 64.775 33.193A161.094 161.094 0 0 0 79.735 175.3a136.413 136.413 0 0 1-21.846-10.632 108.636 108.636 0 0 0 5.356-4.237c42.122 19.702 87.89 19.702 129.51 0a131.66 131.66 0 0 0 5.355 4.237 136.07 136.07 0 0 1-21.886 10.653c4.006 8.02 8.638 15.67 13.873 22.848 21.142-6.58 42.646-16.637 64.815-33.213 5.316-56.288-9.08-105.09-38.056-148.36ZM85.474 135.095c-12.645 0-23.015-11.805-23.015-26.18s10.149-26.2 23.015-26.2c12.867 0 23.236 11.804 23.015 26.2.02 14.375-10.148 26.18-23.015 26.18Zm85.051 0c-12.645 0-23.014-11.805-23.014-26.18s10.148-26.2 23.014-26.2c12.867 0 23.236 11.804 23.015 26.2 0 14.375-10.148 26.18-23.015 26.18Z" />
</svg>
</a>
<a href="https://t.me/reloiaa" target="_blank"
><svg width="33" height="33" viewBox="0 0 28 28" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule: evenodd; clip-rule: evenodd; stroke-linejoin: round; stroke-miterlimit: 1.41421">
<path d="M18.384 22.779a1.19 1.19 0 0 0 1.107.145 1.16 1.16 0 0 0 .724-.84C21.084 18 23.192 7.663 23.983 3.948a.78.78 0 0 0-.26-.758.8.8 0 0 0-.797-.14C18.733 4.602 5.82 9.447.542 11.4a.827.827 0 0 0-.542.799c.012.354.25.661.593.764 2.367.708 5.474 1.693 5.474 1.693s1.452 4.385 2.209 6.615c.095.28.314.5.603.576a.866.866 0 0 0 .811-.207l3.096-2.923s3.572 2.619 5.598 4.062Zm-11.01-8.677 1.679 5.538.373-3.507 10.185-9.186a.277.277 0 0 0 .033-.377.284.284 0 0 0-.376-.064L7.374 14.102Z" />
</svg>
</a>
<a href="https://www.last.fm/it/user/ReLoia" target="_blank">
<svg height="30" width="30" xmlns="http://www.w3.org/2000/svg" viewBox="-271 324 256 154" xml:space="preserve">
<g stroke-width="0" />
<g stroke-linecap="round" stroke-linejoin="round" />
<path d="M-54.3 387.3c-2.2-.7-4.4-1.4-6.5-2.1-15.9-5-25.5-8-25.5-20.4 0-10.1 7.8-17.4 18.5-17.4 8.2 0 14.3 3.4 19.8 11.1.5.7 1.5 1 2.3.6l15.9-8.3c.4-.2.8-.6.9-1.1s.1-1-.2-1.4c-8.6-15.3-21-22.7-38-22.7-25.8 0-42.4 15.6-42.4 39.7 0 24.7 16.1 34.7 45.8 44.4 17.2 5.7 24.8 8.8 24.8 21 0 13.8-12.4 23.7-29.4 23.1-17.8-.6-23.2-10-29.9-25.4-11.5-26.1-24.5-56.6-24.6-56.9-13.1-30.2-39-47.5-71.2-47.5-42.5 0-77 34.5-77 77s34.5 77 77 77c23.2 0 44.9-10.3 59.5-28.2.4-.5.5-1.2.3-1.8l-9.7-22.4c-.3-.6-.9-1-1.6-1.1-.7 0-1.3.4-1.7 1-9.2 17.5-27.1 28.4-46.9 28.4-29.1 0-52.8-23.7-52.8-52.9 0-29.1 23.7-52.9 52.8-52.9 21.2 0 40.6 12.6 48.4 31.4l24 54.8 2.8 6.2c10.9 25.3 26.8 36.6 51.8 36.7 29.7 0 52.1-19.7 52.1-45.8.2-26.1-14.3-36-39.3-44.1z" />
</svg>
</a>
<a href="https://www.linkedin.com/in/renato-loiacono/" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" height="30" width="30" viewBox="0 0 24 24">
<path d="M19 0H5a5 5 0 0 0-5 5v14a5 5 0 0 0 5 5h14a5 5 0 0 0 5-5V5a5 5 0 0 0-5-5M8 19H5V8h3zM6.5 6.732c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764M20 19h-3v-5.604c0-3.368-4-3.113-4 0V19h-3V8h3v1.765c1.396-2.586 7-2.777 7 2.476z"/>
</svg>
</a>
<a href="https://profile.codersrank.io/user/reloia/" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" height="30" width="30" viewBox="0 0 24 24"><path xmlns="http://www.w3.org/2000/svg" d="m23.134 8.64-5.973-3.62a.286.286 0 0 0-.412.125l-1.4 3.286 2.842 1.696a.53.53 0 0 1 0 .921l-5.335 3.14-2.267 5.274a.127.127 0 0 0 .052.203.12.12 0 0 0 .134-.035l3.914-2.365 1.545 2.219a.37.37 0 0 0 .309.167h3.708a.37.37 0 0 0 .327-.2.38.38 0 0 0-.018-.386l-2.513-3.852 5.088-3.077q.865-.524.865-1.172V9.813q0-.649-.866-1.172zM13.082 4.35.845 12.052q-.865.523-.845 1.171v1.173q.021.648.866 1.15l6.056 3.496a.286.286 0 0 0 .412-.146l1.36-3.286-2.884-1.633a.52.52 0 0 1-.275-.384.53.53 0 0 1 .254-.537l5.295-3.245 2.183-5.316a.13.13 0 0 0-.04-.142.12.12 0 0 0-.146-.005z"/></svg>
</a>
</div>
<sepv></sepv>
Some <a href="https://www.svgrepo.com" target="_blank">Icons by svgrepo.com</a>
</links>
</fake-footer>
<content>
<div i>
<h1><ita>Ciao</ita>! I'm Renato Loiacono</h1>
<p>I'm a <age>17</age> years old student from <ita>Italy</ita>, I love programming and creating websites.</p>
<p>My favourite programming language is Kotlin, but I'm more experienced in JavaScript and I've also got experience in C++, C#, Java, Kotlin and Lua.</p>
<p>I'm currently a student at <a regu href="https://www.iissvoltadegemmis.edu.it/" target="_blank">Volta de Gemmis</a>.</p>
</div>
<div p>
<h2>My Projects</h2>
<div>
<div>
<h3>ReLoia.</h3>
<p>This website</p>
<br />
<a regu href="https://reloia.github.io" target="_blank">reloia.github.io</a> - <a regu href="https://github.com/ReLoia/reloia.github.io" target="_blank">GitHub</a> page
</div>
<div>
<h3>ReLoia Listen</h3>
<p>Api endpoint to see what I'm listening to and other spotify-related stuff</p>
<br />
<a regu href="https://reloia-listen.glitch.me" target="_blank">reloia-listen.glitch.me</a> - <a regu href="https://github.com/ReLoia/reloia_listen" target="_blank">GitHub</a> page
</div>
<div>
<h3>ArgoScuolaNext-NodeJS</h3>
<p>A NodeJS library that allows you to interact with ArgoScuolaNext API</p>
<br />
<a regu href="https://github.com/ReLoia/ArgoScuolaNext-NodeJS" target="_blank" target="_blank">ReLoia/ArgoScuolaNext-NodeJS</a> - <a regu href="https://github.com/ReLoia/ArgoScuolaNext-NodeJS/blob/main/README.md" target="_blank">Readme</a>.md
</div>
<div>
<h3>SmartWheelChair</h3>
- <grade bronze></grade>
<p>Android application created for the "Welcome to Automation" contest with a friend of mine where we placed third. For more information about the project read the ReadMe.</p>
<br />
<a regu href="https://github.com/gabdevele/SmartWheelChair" target="_blank">gabdevele/SmartWheelChair</a> - <a regu href="https://github.com/gabdevele/SmartWheelChair/blob/master/README.md" target="_blank">Readme</a>.md
</div>
<div>
<h3>MeYou - the social for two</h3>
<p>The frontend of MeYou's home page, a new social made in Italy</p>
<br />
<a regu href="https://meyou.site/" target="_blank">MeYou - the social for two</a>
</div>
<div>
<h3>liberMobile</h3>
<p>An OpenSource Android App that allows you to read books from the LiberLiber website</p>
<br />
<a regu href="https://github.com/ReLoia/liberMobile" target="_blank">ReLoia/liberMobile</a> - <a regu href="https://github.com/ReLoia/liberMobile/blob/master/README.md" target="_blank">Readme</a>.md
</div>
See my GitHub Profile for more <a regu href="https://github.com/ReLoia" target="_blank">github.com/ReLoia</a>
</div>
</div>
<div f>
<h2>Favourite artists</h2>
<c>Images from Last.fm</c>
<div>
<div artist="caparezza" class="mouse-hover" data-hoveranimationicon="star">
<img src="https://static.sky.it/images/skytg24/it/spettacolo/musica/2022/05/15/caparezza-exuvia-tour/caparezza.jpg.transform/hero-desktop/4b31e9dbb14c7bf400aed4ea6e4f53a5eaee4e07/img.jpg" alt="" />
<span>Caparezza</span>
</div>
<div artist="deftones" style="--offset: 0.5em" class="mouse-hover" data-hoveranimationicon="star">
<img src="https://lastfm.freetls.fastly.net/i/u/avatar300s/c2428255383f4cc7525b661c4fdf6d48.jpg" alt="" />
<span>Deftones</span>
</div>
<div artist="system of a down" style="--offset: 1em" class="mouse-hover" data-hoveranimationicon="star">
<img src="https://lastfm.freetls.fastly.net/i/u/avatar300s/05d78b59cf1242f09fab2176c8bf07df.jpg" alt="" />
<span>System of a Down</span>
</div>
<div artist="radiohead" style="--offset: 0.5em" class="mouse-hover" data-hoveranimationicon="star">
<img src="https://lastfm.freetls.fastly.net/i/u/avatar300s/582e918114eb83dd0061b6ba87fa25f6.jpg" alt="" />
<span>Radiohead</span>
</div>
<div artist="arctic monkeys" class="mouse-hover" data-hoveranimationicon="star">
<img src="https://lastfm.freetls.fastly.net/i/u/avatar300s/bcc5bfe70c101882ff81021a5039f14e.jpg" alt="" />
<span>Arctic Monkeys</span>
</div>
</div>
<a href="https://www.last.fm/it/user/ReLoia" target="_blank">and much more...</a> <br />
</div>
<div s>
<h2>Song of the day<a regu>See more</a></h2>
<div id="sotd">Loading...</div>
</div>
<div w>
<h2>How does this webpage work?</h2>
<div>
<div>
<h2>Music Player</h2>
<p>It fetches my currently or last played song from my <a regu href="https://github.com/ReLoia/reloia_listen" target="_blank">API hosted on Glitch.com</a> and loads it.</p>
<span code="js">/* I make a GET request to my backend server to get my currently or last played song */\nl const response = await fetch('https://glitch-proxy.vercel.app/reloia-listen/api');\nl /* Next, I convert the response to JSON */\nl const json = await response.json();\nl /* And I pass that to my <a href="https://github.com/ReLoia/ReLoia.github.io/blob/master/index.html#L78-L129">function that handles all the changes to the player</a> */\nl setInfo(json); </span>
</div>
<div>
<h2>
<ita>Italian text</ita>
</h2>
<p>It's just a simple CSS hack.</p>
<span code="css">/* I made a custom tag called ita */\nl ita {\nl \ta /* I set the display to inline-block to make it work in text fields */\nl \ta display: inline-block;\nl \ta /* Then I used the property background to make a gradient */\nl \ta background: linear-gradient (90deg, #009246 0%, #ffffff 50%, #ce2b37 100%);\nl \ta /* I used the property color to make the text transparent */\nl \ta color: transparent;\nl \ta /* And finally I used the property -webkit-background-clip to make the background visible only in the text */\nl \ta -webkit-background-clip: text;\nl } </span>
</div>
</div>
</div>
<div c>
<h2>Contact me</h2>
<div>
<div>You can contact me by:</div>
<br />
<ul style="margin-left: 1em">
<li>Github - <a regu href="https://github.com/ReLoia" target="_blank">ReLoia</a></li>
<li>Discord - <a regu href="https://discord.com/users/371027932082208768" target="_blank">Re.</a></li>
<li>eMail - <a regu href="mailto:zrennyz@gmail.com?subject=Hi, I would like to ask you ...">GMail</a></li>
<li>Telegram - <a regu href="https://t.me/reloiaa" target="_blank">ReLoia</a></li>
</ul>
</div>
</div>
</content>
<showcase>
<div>
<p><t>X</t><close onclick="(() => document.querySelector('showcase').style.display = 'none')()">X</close></p>
<img src="" alt="" />
</div>
</showcase>
<canvas id="canvas"></canvas>
</body>
</html>