Greasy Fork is available in English.

Notify Library

Very Simple JS Notifications Library

สคริปต์นี้ไม่ควรถูกติดตั้งโดยตรง มันเป็นคลังสำหรับสคริปต์อื่น ๆ เพื่อบรรจุด้วยคำสั่งเมทา // @require https://update.greasyfork.org/scripts/401626/1109786/Notify%20Library.js

ผู้เขียน
PIZIDAVI
เวอร์ชัน
2.0
สร้างเมื่อ
21-04-2020
อัปเดตเมื่อ
14-04-2021
สัญญาอนุญาต
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();