Greasy Fork is available in English.

Notify Library

Very Simple JS Notifications Library

Dette scriptet burde ikke installeres direkte. Det er et bibliotek for andre script å inkludere med det nye metadirektivet // @require https://update.greasyfork.org/scripts/401626/1109786/Notify%20Library.js

Forfatter
PIZIDAVI
Versjon
2.0
Lagd
21.04.2020
Oppdatert
14.04.2021
Lisens
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();