mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-03 08:21:07 +00:00
updated width and positioning of pnotify items
This commit is contained in:
parent
eaa6b0c9fd
commit
abed47d80f
1 changed files with 7 additions and 1 deletions
|
|
@ -3,12 +3,18 @@
|
|||
*/
|
||||
angular.module("notificationServices", [])
|
||||
.factory("Notification", [function() {
|
||||
var stack_topright = {"dir1": "down", "dir2": "left", "spacing1": 15, "spacing2": 15, "firstpos1": 60};
|
||||
function notify(html, type, icon) {
|
||||
var notice = $.pnotify({
|
||||
type: type || 'warning', //('info', 'text', 'warning', 'success', 'gp', 'xp', 'hp', 'lvl', 'death', 'mp', 'crit')
|
||||
text: html,
|
||||
opacity: 1,
|
||||
opacity: .75,
|
||||
addclass: 'alert-' + type,
|
||||
delay: 7000,
|
||||
hide: (type == 'error') ? false : true,
|
||||
mouse_reset: false,
|
||||
width: "250px",
|
||||
stack: stack_topright,
|
||||
icon: icon || false
|
||||
}).click(function() { notice.pnotify_remove() });
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue