godric3 / jackbox

Javascript library to display notifications

Home Page:https://ja1984.github.io/jackbox/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jackbox

Display timed notifications easy

Preview

Getting started is easy
<script>
    Jackbox.init();
</script>
Adding notifications is just as easy
<script>
    Jackbox.error("Oh noes, something went wrong!");

    Jackbox.warning("Yeah, you might want to check in to that");

    Jackbox.success("Woop woop!");

    Jackbox.information("I'm only here because I can");
</script>
Customization is a breeze
<script>
    var customSettings = {
        notification: {
            time : 10, //in seconds, default is set to 5
            classNames : ["custom-class-name", "another-class-name"] //Array of classes
        }
    }
    Jackbox.init(customSettings);
</script>

Browser support

The file jackbox.polyfills.js can be used for modern browser support. IE8 and less, needs to use polyfill for Array.prototype.forEach

About

Javascript library to display notifications

https://ja1984.github.io/jackbox/

License:GNU General Public License v3.0


Languages

Language:CSS 46.7%Language:JavaScript 37.1%Language:HTML 16.3%