topCenter.js
717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
;(function($) {
$.noty.layouts.topCenter = {
name: 'topCenter',
options: { // overrides options
},
container: {
object: '<ul id="noty_topCenter_layout_container" />',
selector: 'ul#noty_topCenter_layout_container',
style: function() {
$(this).css({
top: 20,
left: 0,
position: 'fixed',
width: '310px',
height: 'auto',
margin: 0,
padding: 0,
listStyleType: 'none',
zIndex: 10000000
});
$(this).css({
left: ($(window).width() - $(this).outerWidth(false)) / 2 + 'px'
});
}
},
parent: {
object: '<li />',
selector: 'li',
css: {}
},
css: {
display: 'none',
width: '310px'
},
addClass: ''
};
})(jQuery);