3 ms·
Well played: <script> document.getElementById("bonus").innerHTML = 'body { font-family: "Comic Sans MS", "Chalkboard SE", "Comic Neue", cursive, sans-s
by pipeep 12y ago
Well played:
<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>
- sj4nz 12y agoThanks for this, I wouldn't have noticed this gag because I don't have any of the fonts in question installed. :)
- clort 12y agoCan you explain the gag, for those of us who do not include HTML & CSS in our area of expertise? I see that the font changes to serif, when the text is scrolled. Is that funny? How does this HTML work?
- maxerickson 12y agoThere is an ongoing gag of using Comic Sans to hassle people that complain about fonts. This gag rewards people who read more than the first couple of lines before bouncing just because of the ugly font.
- nailer 12y agoTo the point where LibreSSL and other OpenBSD sites use Comic Sans in their 'logos'. Note The OpenBSD Foundation does not ;^).
- spash 12y agoWell, browsing with NoScript, I wasn't even aware of this gag until I returned to read HN comments some 20 hours later (as it looks, the Comic Sans is firstly set via JavaScript, along with the subsequent flip back to the 'normal' serif.) 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?
- mjevans 12y agoWhile I don't notice it because I, by default, deny all scripts.
- snoopybbt 12y agoThat made me wonder too! Well played Ted, well played.