commit
34d5ecea09
3 changed files with 5 additions and 4 deletions
BIN
img/favicon.ico
Normal file
BIN
img/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.3 KiB |
|
|
@ -9,6 +9,7 @@
|
||||||
<link rel="stylesheet" href="css/foundation-icons.css">
|
<link rel="stylesheet" href="css/foundation-icons.css">
|
||||||
<link rel="stylesheet" href="lib/angular/angular-csp.css">
|
<link rel="stylesheet" href="lib/angular/angular-csp.css">
|
||||||
<link rel="stylesheet" href="css/main.css">
|
<link rel="stylesheet" href="css/main.css">
|
||||||
|
<link rel="shortcut icon" href="img/favicon.ico">
|
||||||
</head>
|
</head>
|
||||||
<body ng-cloak class="ng-cloak">
|
<body ng-cloak class="ng-cloak">
|
||||||
<div id="wrap">
|
<div id="wrap">
|
||||||
|
|
|
||||||
|
|
@ -17,13 +17,13 @@ angular.module('notifications', []).
|
||||||
details: true,
|
details: true,
|
||||||
localStorage: false,
|
localStorage: false,
|
||||||
html5Mode: false,
|
html5Mode: false,
|
||||||
html5DefaultIcon: '../img/satoshi.gif'
|
html5DefaultIcon: 'img/favicon.ico'
|
||||||
};
|
};
|
||||||
|
|
||||||
function html5Notify(icon, title, content, ondisplay, onclose){
|
function html5Notify(icon, title, content, ondisplay, onclose){
|
||||||
if(window.webkitNotifications.checkPermission() === 0){
|
if(window.webkitNotifications.checkPermission() === 0){
|
||||||
if(!icon){
|
if(!icon){
|
||||||
icon = '../img/favicon.ico';
|
icon = 'img/favicon.ico';
|
||||||
}
|
}
|
||||||
var noti = window.webkitNotifications.createNotification(icon, title, content);
|
var noti = window.webkitNotifications.createNotification(icon, title, content);
|
||||||
if(typeof ondisplay === 'function'){
|
if(typeof ondisplay === 'function'){
|
||||||
|
|
@ -113,7 +113,7 @@ angular.module('notifications', []).
|
||||||
|
|
||||||
info: function(title, content, userData){
|
info: function(title, content, userData){
|
||||||
console.log(title, content);
|
console.log(title, content);
|
||||||
return this.awesomeNotify('info','info', title, content, userData);
|
return this.awesomeNotify('info','loop', title, content, userData);
|
||||||
},
|
},
|
||||||
|
|
||||||
error: function(title, content, userData){
|
error: function(title, content, userData){
|
||||||
|
|
@ -220,7 +220,7 @@ angular.module('notifications', []).
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'<div class="dr-notification">' +
|
'<div class="dr-notification">' +
|
||||||
'<div class="dr-notification-image dr-notification-type-{{noti.type}}" ng-switch on="noti.image">' +
|
'<div class="dr-notification-image dr-notification-type-{{noti.type}}" ng-switch on="noti.image">' +
|
||||||
'<i class="icon-{{noti.icon}}" ng-switch-when="false"></i>' +
|
'<i class="fi-{{noti.icon}}" ng-switch-when="false"></i>' +
|
||||||
'<img ng-src="{{noti.image}}" ng-switch-default />' +
|
'<img ng-src="{{noti.image}}" ng-switch-default />' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'<div class="dr-notification-content">' +
|
'<div class="dr-notification-content">' +
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue