Notify Library

Very Simple JS Notifications Library

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.org/scripts/401626/1109786/Notify%20Library.js

Autor
PIZIDAVI
Verzija
2.0
Napravljeno
21/04/2020
Ažurirano
14/04/2021
Licenca
MIT

Notify Library

Very simple JS Notifications Library with integrated CSS

Options:

  • text string - (required)
  • type string - (optional)
    • success
    • info / information
    • warn / warning
    • error
  • timeout int - optional (default: 5000 ms)

Example

  new Notify({
      text: 'Notification Text',
      type: 'success',
      timeout: false // Sticky Notification
  }).show();