Created
October 27, 2017 00:05
-
-
Save frumbert/d18a3abf00b382ea0e1d4aa7f91853f8 to your computer and use it in GitHub Desktop.
Make a marquee on the browser title
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>argh!</title> | |
<script type="text/javascript"> | |
message = "The quick brown 🦊 jumps over the lazy 🐶 "; | |
function step() { | |
message = message.substr(1) + message.substr(0,1); | |
document.title = message.substr(0,15); | |
} | |
</script> | |
</head> | |
<body onload="setInterval(step,100)"> | |
<p>Do not do this. Ever. Unless you're fixing Javascript's emoji bug in string manipulation.</p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i love you