noty-rails 2.2.2 → 2.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/noty-rails/version.rb +1 -1
- data/vendor/assets/javascripts/noty/jquery.noty.js +180 -166
- data/vendor/assets/javascripts/noty/layouts/bottom.js +30 -30
- data/vendor/assets/javascripts/noty/layouts/bottomCenter.js +35 -35
- data/vendor/assets/javascripts/noty/layouts/bottomLeft.js +38 -38
- data/vendor/assets/javascripts/noty/layouts/bottomRight.js +38 -38
- data/vendor/assets/javascripts/noty/layouts/center.js +51 -50
- data/vendor/assets/javascripts/noty/layouts/centerLeft.js +53 -52
- data/vendor/assets/javascripts/noty/layouts/centerRight.js +53 -52
- data/vendor/assets/javascripts/noty/layouts/inline.js +27 -27
- data/vendor/assets/javascripts/noty/layouts/top.js +30 -30
- data/vendor/assets/javascripts/noty/layouts/topCenter.js +35 -35
- data/vendor/assets/javascripts/noty/layouts/topLeft.js +38 -38
- data/vendor/assets/javascripts/noty/layouts/topRight.js +38 -38
- data/vendor/assets/javascripts/noty/packaged/jquery.noty.packaged.js +879 -767
- data/vendor/assets/javascripts/noty/packaged/jquery.noty.packaged.min.js +10 -1
- data/vendor/assets/javascripts/noty/themes/bootstrap.js +62 -0
- data/vendor/assets/javascripts/noty/themes/default.js +175 -143
- metadata +6 -5
@@ -1,34 +1,34 @@
|
|
1
1
|
(function($) {
|
2
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
|
-
|
3
|
+
$.noty.layouts.bottom = {
|
4
|
+
name : 'bottom',
|
5
|
+
options : {},
|
6
|
+
container: {
|
7
|
+
object : '<ul id="noty_bottom_layout_container" />',
|
8
|
+
selector: 'ul#noty_bottom_layout_container',
|
9
|
+
style : function() {
|
10
|
+
$(this).css({
|
11
|
+
bottom : 0,
|
12
|
+
left : '5%',
|
13
|
+
position : 'fixed',
|
14
|
+
width : '90%',
|
15
|
+
height : 'auto',
|
16
|
+
margin : 0,
|
17
|
+
padding : 0,
|
18
|
+
listStyleType: 'none',
|
19
|
+
zIndex : 9999999
|
20
|
+
});
|
21
|
+
}
|
22
|
+
},
|
23
|
+
parent : {
|
24
|
+
object : '<li />',
|
25
|
+
selector: 'li',
|
26
|
+
css : {}
|
27
|
+
},
|
28
|
+
css : {
|
29
|
+
display: 'none'
|
30
|
+
},
|
31
|
+
addClass : ''
|
32
|
+
};
|
33
33
|
|
34
34
|
})(jQuery);
|
@@ -1,41 +1,41 @@
|
|
1
1
|
(function($) {
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
$.noty.layouts.bottomCenter = {
|
4
|
+
name : 'bottomCenter',
|
5
|
+
options : { // overrides options
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
7
|
+
},
|
8
|
+
container: {
|
9
|
+
object : '<ul id="noty_bottomCenter_layout_container" />',
|
10
|
+
selector: 'ul#noty_bottomCenter_layout_container',
|
11
|
+
style : function() {
|
12
|
+
$(this).css({
|
13
|
+
bottom : 20,
|
14
|
+
left : 0,
|
15
|
+
position : 'fixed',
|
16
|
+
width : '310px',
|
17
|
+
height : 'auto',
|
18
|
+
margin : 0,
|
19
|
+
padding : 0,
|
20
|
+
listStyleType: 'none',
|
21
|
+
zIndex : 10000000
|
22
|
+
});
|
23
23
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
24
|
+
$(this).css({
|
25
|
+
left: ($(window).width() - $(this).outerWidth(false)) / 2 + 'px'
|
26
|
+
});
|
27
|
+
}
|
28
|
+
},
|
29
|
+
parent : {
|
30
|
+
object : '<li />',
|
31
|
+
selector: 'li',
|
32
|
+
css : {}
|
33
|
+
},
|
34
|
+
css : {
|
35
|
+
display: 'none',
|
36
|
+
width : '310px'
|
37
|
+
},
|
38
|
+
addClass : ''
|
39
|
+
};
|
40
40
|
|
41
41
|
})(jQuery);
|
@@ -1,43 +1,43 @@
|
|
1
1
|
(function($) {
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
},
|
8
|
-
container: {
|
9
|
-
object: '<ul id="noty_bottomLeft_layout_container" />',
|
10
|
-
selector: 'ul#noty_bottomLeft_layout_container',
|
11
|
-
style: function() {
|
12
|
-
$(this).css({
|
13
|
-
bottom: 20,
|
14
|
-
left: 20,
|
15
|
-
position: 'fixed',
|
16
|
-
width: '310px',
|
17
|
-
height: 'auto',
|
18
|
-
margin: 0,
|
19
|
-
padding: 0,
|
20
|
-
listStyleType: 'none',
|
21
|
-
zIndex: 10000000
|
22
|
-
});
|
3
|
+
$.noty.layouts.bottomLeft = {
|
4
|
+
name : 'bottomLeft',
|
5
|
+
options : { // overrides options
|
23
6
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
7
|
+
},
|
8
|
+
container: {
|
9
|
+
object : '<ul id="noty_bottomLeft_layout_container" />',
|
10
|
+
selector: 'ul#noty_bottomLeft_layout_container',
|
11
|
+
style : function() {
|
12
|
+
$(this).css({
|
13
|
+
bottom : 20,
|
14
|
+
left : 20,
|
15
|
+
position : 'fixed',
|
16
|
+
width : '310px',
|
17
|
+
height : 'auto',
|
18
|
+
margin : 0,
|
19
|
+
padding : 0,
|
20
|
+
listStyleType: 'none',
|
21
|
+
zIndex : 10000000
|
22
|
+
});
|
23
|
+
|
24
|
+
if(window.innerWidth < 600) {
|
25
|
+
$(this).css({
|
26
|
+
left: 5
|
27
|
+
});
|
28
|
+
}
|
29
|
+
}
|
30
|
+
},
|
31
|
+
parent : {
|
32
|
+
object : '<li />',
|
33
|
+
selector: 'li',
|
34
|
+
css : {}
|
35
|
+
},
|
36
|
+
css : {
|
37
|
+
display: 'none',
|
38
|
+
width : '310px'
|
39
|
+
},
|
40
|
+
addClass : ''
|
41
|
+
};
|
42
42
|
|
43
43
|
})(jQuery);
|
@@ -1,43 +1,43 @@
|
|
1
1
|
(function($) {
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
},
|
8
|
-
container: {
|
9
|
-
object: '<ul id="noty_bottomRight_layout_container" />',
|
10
|
-
selector: 'ul#noty_bottomRight_layout_container',
|
11
|
-
style: function() {
|
12
|
-
$(this).css({
|
13
|
-
bottom: 20,
|
14
|
-
right: 20,
|
15
|
-
position: 'fixed',
|
16
|
-
width: '310px',
|
17
|
-
height: 'auto',
|
18
|
-
margin: 0,
|
19
|
-
padding: 0,
|
20
|
-
listStyleType: 'none',
|
21
|
-
zIndex: 10000000
|
22
|
-
});
|
3
|
+
$.noty.layouts.bottomRight = {
|
4
|
+
name : 'bottomRight',
|
5
|
+
options : { // overrides options
|
23
6
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
7
|
+
},
|
8
|
+
container: {
|
9
|
+
object : '<ul id="noty_bottomRight_layout_container" />',
|
10
|
+
selector: 'ul#noty_bottomRight_layout_container',
|
11
|
+
style : function() {
|
12
|
+
$(this).css({
|
13
|
+
bottom : 20,
|
14
|
+
right : 20,
|
15
|
+
position : 'fixed',
|
16
|
+
width : '310px',
|
17
|
+
height : 'auto',
|
18
|
+
margin : 0,
|
19
|
+
padding : 0,
|
20
|
+
listStyleType: 'none',
|
21
|
+
zIndex : 10000000
|
22
|
+
});
|
23
|
+
|
24
|
+
if(window.innerWidth < 600) {
|
25
|
+
$(this).css({
|
26
|
+
right: 5
|
27
|
+
});
|
28
|
+
}
|
29
|
+
}
|
30
|
+
},
|
31
|
+
parent : {
|
32
|
+
object : '<li />',
|
33
|
+
selector: 'li',
|
34
|
+
css : {}
|
35
|
+
},
|
36
|
+
css : {
|
37
|
+
display: 'none',
|
38
|
+
width : '310px'
|
39
|
+
},
|
40
|
+
addClass : ''
|
41
|
+
};
|
42
42
|
|
43
43
|
})(jQuery);
|
@@ -1,56 +1,57 @@
|
|
1
1
|
(function($) {
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
},
|
8
|
-
container: {
|
9
|
-
object: '<ul id="noty_center_layout_container" />',
|
10
|
-
selector: 'ul#noty_center_layout_container',
|
11
|
-
style: function() {
|
12
|
-
$(this).css({
|
13
|
-
position: 'fixed',
|
14
|
-
width: '310px',
|
15
|
-
height: 'auto',
|
16
|
-
margin: 0,
|
17
|
-
padding: 0,
|
18
|
-
listStyleType: 'none',
|
19
|
-
zIndex: 10000000
|
20
|
-
});
|
3
|
+
$.noty.layouts.center = {
|
4
|
+
name : 'center',
|
5
|
+
options : { // overrides options
|
21
6
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
7
|
+
},
|
8
|
+
container: {
|
9
|
+
object : '<ul id="noty_center_layout_container" />',
|
10
|
+
selector: 'ul#noty_center_layout_container',
|
11
|
+
style : function() {
|
12
|
+
$(this).css({
|
13
|
+
position : 'fixed',
|
14
|
+
width : '310px',
|
15
|
+
height : 'auto',
|
16
|
+
margin : 0,
|
17
|
+
padding : 0,
|
18
|
+
listStyleType: 'none',
|
19
|
+
zIndex : 10000000
|
20
|
+
});
|
29
21
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
22
|
+
// getting hidden height
|
23
|
+
var dupe = $(this).clone().css({visibility: "hidden", display: "block", position: "absolute", top: 0, left: 0}).attr('id', 'dupe');
|
24
|
+
$("body").append(dupe);
|
25
|
+
dupe.find('.i-am-closing-now').remove();
|
26
|
+
dupe.find('li').css('display', 'block');
|
27
|
+
var actual_height = dupe.height();
|
28
|
+
dupe.remove();
|
29
|
+
|
30
|
+
if($(this).hasClass('i-am-new')) {
|
31
|
+
$(this).css({
|
32
|
+
left: ($(window).width() - $(this).outerWidth(false)) / 2 + 'px',
|
33
|
+
top : ($(window).height() - actual_height) / 2 + 'px'
|
34
|
+
});
|
35
|
+
}
|
36
|
+
else {
|
37
|
+
$(this).animate({
|
38
|
+
left: ($(window).width() - $(this).outerWidth(false)) / 2 + 'px',
|
39
|
+
top : ($(window).height() - actual_height) / 2 + 'px'
|
40
|
+
}, 500);
|
41
|
+
}
|
42
|
+
|
43
|
+
}
|
44
|
+
},
|
45
|
+
parent : {
|
46
|
+
object : '<li />',
|
47
|
+
selector: 'li',
|
48
|
+
css : {}
|
49
|
+
},
|
50
|
+
css : {
|
51
|
+
display: 'none',
|
52
|
+
width : '310px'
|
53
|
+
},
|
54
|
+
addClass : ''
|
55
|
+
};
|
55
56
|
|
56
57
|
})(jQuery);
|
@@ -1,61 +1,62 @@
|
|
1
1
|
(function($) {
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
$.noty.layouts.centerLeft = {
|
4
|
+
name : 'centerLeft',
|
5
|
+
options : { // overrides options
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
7
|
+
},
|
8
|
+
container: {
|
9
|
+
object : '<ul id="noty_centerLeft_layout_container" />',
|
10
|
+
selector: 'ul#noty_centerLeft_layout_container',
|
11
|
+
style : function() {
|
12
|
+
$(this).css({
|
13
|
+
left : 20,
|
14
|
+
position : 'fixed',
|
15
|
+
width : '310px',
|
16
|
+
height : 'auto',
|
17
|
+
margin : 0,
|
18
|
+
padding : 0,
|
19
|
+
listStyleType: 'none',
|
20
|
+
zIndex : 10000000
|
21
|
+
});
|
22
22
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
23
|
+
// getting hidden height
|
24
|
+
var dupe = $(this).clone().css({visibility: "hidden", display: "block", position: "absolute", top: 0, left: 0}).attr('id', 'dupe');
|
25
|
+
$("body").append(dupe);
|
26
|
+
dupe.find('.i-am-closing-now').remove();
|
27
|
+
dupe.find('li').css('display', 'block');
|
28
|
+
var actual_height = dupe.height();
|
29
|
+
dupe.remove();
|
30
30
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
31
|
+
if($(this).hasClass('i-am-new')) {
|
32
|
+
$(this).css({
|
33
|
+
top: ($(window).height() - actual_height) / 2 + 'px'
|
34
|
+
});
|
35
|
+
}
|
36
|
+
else {
|
37
|
+
$(this).animate({
|
38
|
+
top: ($(window).height() - actual_height) / 2 + 'px'
|
39
|
+
}, 500);
|
40
|
+
}
|
40
41
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
42
|
+
if(window.innerWidth < 600) {
|
43
|
+
$(this).css({
|
44
|
+
left: 5
|
45
|
+
});
|
46
|
+
}
|
46
47
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
48
|
+
}
|
49
|
+
},
|
50
|
+
parent : {
|
51
|
+
object : '<li />',
|
52
|
+
selector: 'li',
|
53
|
+
css : {}
|
54
|
+
},
|
55
|
+
css : {
|
56
|
+
display: 'none',
|
57
|
+
width : '310px'
|
58
|
+
},
|
59
|
+
addClass : ''
|
60
|
+
};
|
60
61
|
|
61
62
|
})(jQuery);
|