-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweb_head.html
35 lines (34 loc) · 1.36 KB
/
web_head.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
<!-- proven.lol verification -->
<link rel="me" title="proven.lol" href="https://proven.lol/4cc26c">
<!-- bearlytics -->
<script data-site="JWMACSZ" src="https://bearlytics.jbowdre.lol/script.js" defer></script>
<!-- typo animation -->
<script src="https://res.jbowdre.lol/js/typo.js" defer></script>
<script>
// implement typo
document.addEventListener('DOMContentLoaded', function () {
let typoElement = document.getElementById('typo');
if (typoElement) {
let typoText = "I write code to make imaginary computers run code written by less imaginary developers";
typo(typoElement, typoText);
}
});
</script>
<script src="https://res.jbowdre.lol/js/weather.js" defer></script>
<script>
// replace theme-song placeholder text when the musicthread response comes in
document.addEventListener('DOMContentLoaded', function () {
const themeSongContainer = document.getElementById('theme-song');
if (themeSongContainer) {
const observer = new MutationObserver(function (mutations) {
mutations.forEach(function (mutation) {
if (mutation.type === 'childList' && themeSongContainer.childNodes.length > 2) {
themeSongContainer.removeChild(themeSongContainer.firstChild);
observer.disconnect();
}
});
});
observer.observe(themeSongContainer, {childList: true});
}
});
</script>