Last active
October 13, 2022 21:01
-
-
Save nolanlawson/9b7ac0dcc23a3569925f1ffc62219497 to your computer and use it in GitHub Desktop.
Unread indicator
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> | |
<head> | |
<title>Tab title</title> | |
</head> | |
<body> | |
<h1>Unread indicator – load, pin and wait 10 seconds</h1> | |
<script type=module> | |
let count = 0 | |
const title = document.title | |
setInterval(() => { | |
document.title = `(${++count}) ${title}` | |
}, 10000) | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment