1.0.0 • Published 6 years ago
@wideassessment/wa-furball v1.0.0
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)
1.0.0
6 years ago