mirror of
https://github.com/jbowdre/lolz.git
synced 2024-11-25 06:12:17 +00:00
web: implement typo
This commit is contained in:
parent
1b8fe443a2
commit
59578496ad
2 changed files with 13 additions and 4 deletions
2
web.md
2
web.md
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<span class="kudos">Hi!<button class="tinylytics_kudos"></button></span>
|
<span class="kudos">Hi!<button class="tinylytics_kudos"></button></span>
|
||||||
|
|
||||||
I write code to make imaginary computers run code written by less imaginary developers
|
<div 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</div>
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
<!-- add pride bar for june -->
|
<!-- add pride bar for june -->
|
||||||
<link rel="stylesheet" href="https://cdn.pride.codes/css/bar_body.css">
|
<link rel="stylesheet" href="https://cdn.pride.codes/css/bar_body.css">
|
||||||
<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://paste.lol/jbowdre/typo.js/raw"></script>
|
||||||
<script>
|
<script>
|
||||||
// get weather data from pastebin
|
// get weather data from pastebin
|
||||||
document.addEventListener("DOMContentLoaded", function() {
|
document.addEventListener("DOMContentLoaded", function() {
|
||||||
|
@ -144,5 +145,13 @@ 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>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue