Giter Club home page Giter Club logo

jackbox's Introduction

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>
Adding notifications with custom settings
<script>
    var notificationCustomSettings = {
		time : 20,
		classNames: ["long-notification-class"]
	};
	
	Jackbox.information('Im a custom setting message!',notificationCustomSettings);
</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

jackbox's People

Contributors

alxlark avatar fredrik-oberg avatar godric3 avatar ja1984 avatar josephfusco avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

jackbox's Issues

Add per notification customizable settings

Should be able to add custom settings per each notification.

var notificationSettings = {
   time: 5, 
   classNames: "custom-class-name"
}
Jackbox.error("message", notificationSettings):

Update demo button wording

Everything currently says Im a success message. It should say the type of message for an improved demo experience.

screen shot 2016-10-03 at 1 58 07 pm

Minified files

  • Make sure that jackbox.min.js is based on latest updates.
  • Make minified version of css

Notifications sometimes stop counting down

Affected device
Desktop computer (Windows 10)

Browser
Chrome, latest version

Steps to reproduce
I haven't been able to reproduce at will, what I have done is open chrome dev tools, add a bunch of notifications and just drag mouse over them and sometimes they just seem to get stuck.

Add retry button with callback

A notification should be able to have an action, something like retry.

Action and title should be optional and replace the dismiss button if present

Mobile support

Clicking a notification will put stop it from counting down

Notifications sometimes start counting up

Affected device
Desktop computer (Windows 10)

Browser
Chrome, latest version

Steps to reproduce
I haven't been able to reproduce at will, it seems to be very random

Move buttons higher up in demo

I think getting rid of that .gif and moving the buttons up to that spot would clean things up a bit. In my opinion the .gif is good for the project readme, but the actual demo site feels redundant.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.