wa-furball
v2.5.5
Published
A TS alert service
Downloads
27
Readme
FURBALL
A pure JS library for showing alerts, information and errors
Use
Load index.js as script when loading page
How it works
Furball coughs up a fixed container element on the body tag element on the page. Alerts (furballs) are added to the container and then removed after a given amount of time.
There are three types of color coded alerts
Info - Blue Warning - Orange Error - Red Success - Green
Default attributes
furball.info('info message')
furballCreator(message = '!', messageType = 'info', alertTimeout: '3000' )
Example
furball.info("This is a simple info message")
furball.error("This is an error")
furballCreator("This is a successmessage with long duration", "success", 10000)
Version 2.5.0
Rewrote alot of the logic to now support stacking of messages. Identical messages will now show with 2x,3x and so on.
Added also an exist button.