XKit

XKit.notifications: show little notifications on the bottom-left corner of the screen.

Methods

# XKit.notifications.add(message, type, sticky, callback)

Show a notification. Set sticky to true if you want it to stay on the screen until the user clicks on it. The type parameter can be ok, warning, or error. Each notification, unless sticky, is shown for 5 seconds.

Usage

XKit.notifications.add("Click me for something new!", "ok", false, function() {
    XKit.notifications.add("Hehe, just kidding","ok");
});

Tips