Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
a pure JavaScript solution for adding a dock badge (Fluid/Prism) or just a number to the title of current page (for any browser).
tree: 5643eadb25

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
dockbadger.js

README.md

dockBadger

About

a pure JavaScript solution for adding a dock badge (for Fluid and Mozilla Prism) or just a number to the title of current page (for any browser). Very small and useful for displaying unread messages count in mail/chat webapps.

Usage

in your $(window).load(function(){})/window.onload/etc. init function: dockBadger.init()

when you need to set a number (for example, user receives a message): dockBadger.set(number)

when you need to clear the badge (tip: put this in $('body').hover(function() {})): dockBadger.set(0)

Something went wrong with that request. Please try again.