-
Notifications
You must be signed in to change notification settings - Fork 3
Small notification bubble hack for favicon
kig/faviconNotify
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
faviconNotify
-------------
A small library to display a red notification bubble in your favicon.
Done in JavaScript and Canvas, so should work in a drop-in fashion.
Works at least on Chrome and Firefox.
Usage:
FaviconNotify.set(string);
FaviconNotify.clear();
Example:
<html>
<head>
<link rel="icon" href="favicon.ico">
<script src="faviconNotify.js"></script>
<script>
window.onblur = function() {
FaviconNotify.set(1);
};
window.onfocus = function() {
FaviconNotify.clear();
};
</script>
</head>
</html>
About
Small notification bubble hack for favicon
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published