Skip to content

juliocesar/schmoones

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Schmoones

Inspired by Choones, this started off as a Prototype port, but I ended up adding message queueing and transitions to it.

Refer to Choones' README for more info about the pattern.

The gist: growl-like notifications, but for the web!

##Usage

Refer to the global SCHMOONES object that gets declared when you initialize a page:

SCHMOONES.message({title: "Hola", message: "Mundo"})

Messages will display for 5 seconds by default. If there's any other message in the queue, it'll transition to it, otherwise, the container will go away.

SCHMOONES.message({title: "Lasts for 3 seconds", message: "Countdown: 3... 2... 1...", duration: 3})

##Styling

Schmoones comes with default settings for padding, margins, and sizes. You should be able to override them with a CSS file, or messing with the code.

##Oh but...

It still doesn't have multiple types of message (e.g.: success, or failure). I'll give it some thought and come up with something soon.

About

a Prototype port of Choones

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published