wa-furball
TypeScript icon, indicating that this package has built-in type declarations

2.5.5 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i wa-furball

Weekly Downloads

12

Version

2.5.5

License

MIT

Unpacked Size

13.6 kB

Total Files

13

Last publish

Collaborators

  • sindrema
  • andreashammerbeck