by bgwhn · 11y ago · 0 comments
<script>
document.getElementById("bonus").innerHTML = 'body { font-family: "Comic Sans MS", "Chalkboard SE", "Comic Neue", cursive, sans-serif; }'
window.onscroll = function() {
document.getElementById("bonus").innerHTML = 'body { font-family: serif; }'
window.onscroll = null
}
</script>I see that the font changes to serif, when the text is scrolled. Is that funny? How does this HTML work?
This gag rewards people who read more than the first couple of lines before bouncing just because of the ugly font.
Maybe I'm reading too much into it, but even if just an unintentional byproduct - isn't that a nice "additional" reward for people that don't allow running unnecessary scripts on random web sites?
Note The OpenBSD Foundation does not ;^).