Notify Library

Very Simple JS Notifications Library

このスクリプトは単体で利用できません。右のようなメタデータを含むスクリプトから、ライブラリとして読み込まれます: // @require https://update.greasyfork.org/scripts/401626/1109786/Notify%20Library.js

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
作者
PIZIDAVI
バージョン
2.0
作成日
2020/04/21
更新日
2021/04/14
ライセンス
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();