Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 924 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 924 Bytes

superpowers-nofityjs-plugin

NotifyJS plugin for Superpowers, the extensible HTML5 2D+3D game engine.

A handy wrapper for using the Web Notifications API. Notify.js aims to simplify requesting user permission and associated Web Notification API events, as well as providing a few extra callbacks and convenience methods.

Documentation

Echo notification :

var myFirstNotification = new Notify('Hi there!', {
    body: 'This is an awesome notification',
    notifyShow: function() {
        console.log('notification was shown!');
    }
});

myFirstNotification.show();

Find more here :

https://github.com/alexgibson/notify.js

Installation

Download the latest release, unzip it, rename the folder to Jquery, move it inside app/plugins/fraxken/ then restart your server.