Notificationer V1

Notificationer non-intrusively notifies users from client-side JavaScript.

Quick Start

Make sure to set the script with type='module'.

<script type='module'>
  import * as nf from 'https://joelgrayson.com/software/notificationer/notificationer.js'; //Import notificationer
  nf.config(); //check full documentation's for config() options
  nf.notify('Hello world');
  nf.notify('Success', 'green');
  nf.notify('Confirmation required <button>confirm</button>', 'red');
</script>

Result: result

Full Documentation

Demos

Interactive Sandbox

Try the code sandbox at https://joelgrayson.com/software/notificationer/sandbox.

Example: Notify() & Close()

let errorNotificationId=nf.notify('Error', 'red'); //store notification id
nf.close(errorNotificationId); //close notification