Skip to content

kig/faviconNotify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

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

No packages published