Skip to content

whoami-shubham/Alert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Alert

Customizable alert with Zero dependencies.

Demo

Example

Usage

<script src="alert.js"></script>
<link rel="stylesheet" href="alert.css">

Examples

The most basic message:

Alert({message:'Hello World !'})

A message with title:

Alert({title:'Alert1',message:'Hello There !, I am using Alert.'});

Chaining Multiple Alerts:

function onOk(title, msg) { // callback function have to return Alert
          return () => {
                return Alert({ title: title, message: msg })
      }
 }
Alert({ title: 'Alert2', message: 'You Can Chain multiple Alerts.', callBacks: [onOk('First pop up !'), onOk('2nd pop up !'), onOk('3rd pop up !')] });

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published