GitHub - jauyou/notifyMe · GitHub
Skip to content

Latest commit

 

History

10 Commits

Folders and files

Repository files navigation

notifyMe

Introduction

notifyMe is a library used to create web Notification Object With default setting. Before send a notification, you can change appear time and click event handler through setter function.

Create Object

var notifyMeObject = new notifyMe();

Setter function

set onclick callback function

notifyMeObject.setOnClick(function callback(parameters...){});

set appear time to 1000 millisecond

notifyMeObject.setAppearTime(1000);

set icon url

notifyMeObject.setIconUrl("your url link");

Request a Notification

notifyMeObject.requestPermission();

Send a Notification

notifyMeObject.sendNotification("display a string");

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages