web: typo tweaks

This commit is contained in:
John Bowdre 2024-06-14 14:46:33 -05:00
parent 5fddecee5e
commit f8045a9ba6
2 changed files with 9 additions and 11 deletions

2
web.md
View file

@ -10,7 +10,7 @@
<span class="kudos">Hi!<button class="tinylytics_kudos"></button></span> <span class="kudos">Hi!<button class="tinylytics_kudos"></button></span>
<div style="height: 5rem;"><span id="typo" data-typo-chance="2" data-typing-delay="40" data-typing-jitter="20">I write code to make imaginary computers run code written by less imaginary developers</span></div> <div style="height: 5rem;"><span id="typo" data-typo-chance="2" data-typing-delay="40" data-typing-jitter="20"></span></div>
--- ---

View file

@ -4,6 +4,14 @@
<script src="https://tinylytics.app/embed/QUH6xcnWKYeUUYaMkDKd.js?kudos=👋" defer></script> <script src="https://tinylytics.app/embed/QUH6xcnWKYeUUYaMkDKd.js?kudos=👋" defer></script>
<script src="https://cdn.jbowdre.lol/typo.js"></script> <script src="https://cdn.jbowdre.lol/typo.js"></script>
<script> <script>
// implement typo
document.addEventListener('DOMContentLoaded', function() {
let element = document.getElementById('typo');
let text = "I write code to make imaginary computers run code written by less imaginary developers";
typo(element, text);
});
</script>
<script>
// get weather data from pastebin // get weather data from pastebin
document.addEventListener("DOMContentLoaded", function() { document.addEventListener("DOMContentLoaded", function() {
const hasWeather = document.getElementById('conditions'); const hasWeather = document.getElementById('conditions');
@ -145,13 +153,3 @@ document.addEventListener("DOMContentLoaded", function() {
} }
}); });
</script> </script>
<script>
// implement typo
document.addEventListener('DOMContentLoaded', function() {
var element = document.getElementById('typo');
var text = element.innerHTML;
typo(element, text);
});
</script>