File tree Expand file tree Collapse file tree 2 files changed +20
-9
lines changed Expand file tree Collapse file tree 2 files changed +20
-9
lines changed Original file line number Diff line number Diff line change 2020 < label for ="message "> Notification Text</ label >
2121 < textarea class ="form-control " rows ="3 " id ="message " placeholder ="Notification Text "> </ textarea >
2222 </ div >
23- < button class ="show-button btn btn-primary " notification-title ="title " notification-text ="text "> Show Notification</ button >
23+ < button type =" button " class ="show-button btn btn-primary " notification-title ="title " notification-text ="text "> Show Notification</ button >
2424 </ form >
2525 </ body >
2626</ html >
Original file line number Diff line number Diff line change 66 * @param {function } [hide] - The hide notification function
77 */
88
9- ( function create ( context , factory ) {
9+ /**
10+ * A simplified web notification API.
11+ *
12+ * @name webNotification
13+ * @namespace webNotification
14+ * @author Sagie Gur-Ari
15+ */
16+
17+ /**
18+ * Initializes the web notification API.
19+ *
20+ * @function
21+ * @memberof ! webNotification
22+ * @alias webNotification.initWebNotification
23+ * @private
24+ * @param {Object } context - The root context (window/global/...)
25+ * @param {function } factory - Returns a new instance of the API
26+ */
27+ ( function initWebNotification ( context , factory ) {
1028 'use strict' ;
1129
1230 var webNotification = factory ( context . Notification ) ;
2442} ( this , function initWebNotification ( NotifyLib ) {
2543 'use strict' ;
2644
27- /**
28- * A simplified web notification API.
29- *
30- * @name webNotification
31- * @namespace webNotification
32- * @author Sagie Gur-Ari
33- */
3445 var service = { } ;
3546
3647 /**
You can’t perform that action at this time.
0 commit comments