Growlesque plugin in 20 lines of code

October 23, 2009

Introducing Vanilla Notify !

After Playing around with _lots_ Growl style plugins for jQuery, I came to the impression that whilst they mostly looked nice, they all were very bloated and difficult to customize.

So – of course – I rolled my own! Only this one is different.It doesn’t have curvy corners, or callbacks, or other distractions. It’s solid, works well, looks pretty decent and – oh – it’s only _20_ lines of code!

Being simple means it’s very easy to understand and easy to change to your own tastes.

Screeny
Screeny

Installation

  • include vanilla-notify.js
  • depends on jQuery (1.3.2 tested)
  • include the relevant CSS somewhere

Examples

 $.notify('Hello')
 $.notify('<h1>Hello</h1><p>Hi there</p>')
 $.notify('With class: error', {klass: 'error' })
 $.notify("I'll be here for 7610.4 years!", {delay: 1e10 })

Links

Compatibility

Tested in

  • Firefox 3.5
  • Safari 4
Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.