Browser Level Web Notification Plugin With jQuery - desktopify

Browser Level Web Notification Plugin With jQuery - desktopify
File Size: 4.33 KB
Views Total: 5185
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

Desktopify is a small and simple to use jQuery plugin which helps you create browser-level web notifications with custom messages and icons using Notifications API Standard.

How to use it:

1. Add jQuery JavaScript library and the jQuery Desktopify plugin to your webpage.

<script src="//code.jquery.com/jquery-2.2.2.min.js"></script>
<script src="desktopify.js"></script>

2. Show a web notification on your screen.

  • icon: custom icon
  • title: custom notification title
  • body: custom notification message
notify(icon, title, body)

3. Default parameters.

icon:
  'data:image/gif;base64,' +
  'R0lGODlhAQABAID/AMDAwAAAACH5BAEA' +
  'AAAALAAAAAABAAEAAAICRAEAOw%3D%3D',
title: '',
remove: true,
timeout: 15000

This awesome jQuery plugin is developed by pham. For more Advanced Usages, please check the demo page or visit the official website.