lolz/web_head.html
github-actions[bot] f52e2e8a01 fetch web page
2024-08-31 00:07:27 +00:00

37 lines
1.4 KiB
HTML

<!-- proven.lol verification -->
<link rel="me" title="proven.lol" href="https://proven.lol/4cc26c">
<!-- cabin analytics -->
<script async defer src="https://cabin.jbowdre.lol/hello.js"></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>