https://github.com/component/noticon
Notification bubble favicons
https://github.com/component/noticon
Last synced: 8 months ago
JSON representation
Notification bubble favicons
- Host: GitHub
- URL: https://github.com/component/noticon
- Owner: component
- Created: 2012-09-20T22:47:50.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-10-09T23:41:30.000Z (over 12 years ago)
- Last Synced: 2025-04-03T07:05:29.567Z (12 months ago)
- Language: JavaScript
- Size: 98.6 KB
- Stars: 15
- Watchers: 4
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Noticon
Favicon notifications inspired by original [tinycon](https://github.com/tommoor/tinycon). Styled
with CSS!

## Installation
$ component install component/noticon
## Styling
Noticon utilizes [component/style](https://github.com/component/style)
to enable CSS styling for Canvas rasters. For example the default
style is:
```css
.noticon {
color: white;
background: #ED372A;
}
```
## API
### new Noticon([selector])
Initialize a new `Noticon` with optional CSS `selector` used
for styling, this defaults to ".noticon".
### Noticon#update(n)
Update the number to `n`, this will automatically
draw the bubble and replace the favicon.
# License
MIT