dnet45/modules/uoa-repository-dashboard-gui/branches/new-ui/src/assets/js/pages/plugins_push_notifications.js @ 57088
1 | 57088 | stefania.m | $(function() { |
---|---|---|---|
2 | altair_push_notifications.init(); |
||
3 | });
|
||
4 | |||
5 | altair_push_notifications = { |
||
6 | init: function() { |
||
7 | |||
8 | $('#pushDemo').on('click',function(e){ |
||
9 | e.preventDefault(); |
||
10 | Push.create("Hello!", { |
||
11 | body: "How's it hangin'?", |
||
12 | icon: 'assets/img/avatars/avatar_11@2x.png', |
||
13 | timeout: 10000, |
||
14 | onClick: function () { |
||
15 | window.focus(); |
||
16 | this.close(); |
||
17 | }
|
||
18 | });
|
||
19 | })
|
||
20 | |||
21 | }
|
||
22 | };
|