ja1984 / jackbox Goto Github PK
View Code? Open in Web Editor NEWJavascript library to display notifications
Home Page: https://ja1984.github.io/jackbox/
License: GNU General Public License v3.0
Javascript library to display notifications
Home Page: https://ja1984.github.io/jackbox/
License: GNU General Public License v3.0
Show how to change settings globally and per notification.
I opened https://ja1984.github.io/jackbox/ in android6.0 chrome mobile browser and clicked on "Try it Out" buttons (Success,Warning,etc..) , but notification is not coming up . Tried in android Firefox , it works very well there ,
Thanks,
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
Should be fairly easy since we don't use forEach and classList that much.
The icons become blurry in phones
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.
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.
Current implementation of adding and removing class is very ugly with replace.
Look in to changing to use classList, support is not 100% on all browsers so this needs to be taken care of.
Browser support
http://caniuse.com/#search=classlist
Information about classList
https://developer.mozilla.org/en/docs/Web/API/Element/classList
Existing pollyfill to look into
https://github.com/eligrey/classList.js/blob/master/classList.js
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
Clicking a notification will put stop it from counting down
Should be able to add custom settings per each notification.
var notificationSettings = {
time: 5,
classNames: "custom-class-name"
}
Jackbox.error("message", notificationSettings):
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.