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.
@@ -1,61 +1,62 @@
1
1
  (function($) {
2
2
 
3
- $.noty.layouts.centerRight = {
4
- name: 'centerRight',
5
- options: { // overrides options
3
+ $.noty.layouts.centerRight = {
4
+ name : 'centerRight',
5
+ options : { // overrides options
6
6
 
7
- },
8
- container: {
9
- object: '<ul id="noty_centerRight_layout_container" />',
10
- selector: 'ul#noty_centerRight_layout_container',
11
- style: function() {
12
- $(this).css({
13
- right: 20,
14
- position: 'fixed',
15
- width: '310px',
16
- height: 'auto',
17
- margin: 0,
18
- padding: 0,
19
- listStyleType: 'none',
20
- zIndex: 10000000
21
- });
7
+ },
8
+ container: {
9
+ object : '<ul id="noty_centerRight_layout_container" />',
10
+ selector: 'ul#noty_centerRight_layout_container',
11
+ style : function() {
12
+ $(this).css({
13
+ right : 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
- // 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();
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
- if ($(this).hasClass('i-am-new')) {
32
- $(this).css({
33
- top: ($(window).height() - actual_height) / 2 + 'px'
34
- });
35
- } else {
36
- $(this).animate({
37
- top: ($(window).height() - actual_height) / 2 + 'px'
38
- }, 500);
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
- if (window.innerWidth < 600) {
42
- $(this).css({
43
- right: 5
44
- });
45
- }
42
+ if(window.innerWidth < 600) {
43
+ $(this).css({
44
+ right: 5
45
+ });
46
+ }
46
47
 
47
- }
48
- },
49
- parent: {
50
- object: '<li />',
51
- selector: 'li',
52
- css: {}
53
- },
54
- css: {
55
- display: 'none',
56
- width: '310px'
57
- },
58
- addClass: ''
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);
@@ -1,31 +1,31 @@
1
1
  (function($) {
2
2
 
3
- $.noty.layouts.inline = {
4
- name: 'inline',
5
- options: {},
6
- container: {
7
- object: '<ul class="noty_inline_layout_container" />',
8
- selector: 'ul.noty_inline_layout_container',
9
- style: function() {
10
- $(this).css({
11
- width: '100%',
12
- height: 'auto',
13
- margin: 0,
14
- padding: 0,
15
- listStyleType: 'none',
16
- zIndex: 9999999
17
- });
18
- }
19
- },
20
- parent: {
21
- object: '<li />',
22
- selector: 'li',
23
- css: {}
24
- },
25
- css: {
26
- display: 'none'
27
- },
28
- addClass: ''
29
- };
3
+ $.noty.layouts.inline = {
4
+ name : 'inline',
5
+ options : {},
6
+ container: {
7
+ object : '<ul class="noty_inline_layout_container" />',
8
+ selector: 'ul.noty_inline_layout_container',
9
+ style : function() {
10
+ $(this).css({
11
+ width : '100%',
12
+ height : 'auto',
13
+ margin : 0,
14
+ padding : 0,
15
+ listStyleType: 'none',
16
+ zIndex : 9999999
17
+ });
18
+ }
19
+ },
20
+ parent : {
21
+ object : '<li />',
22
+ selector: 'li',
23
+ css : {}
24
+ },
25
+ css : {
26
+ display: 'none'
27
+ },
28
+ addClass : ''
29
+ };
30
30
 
31
31
  })(jQuery);
@@ -1,34 +1,34 @@
1
1
  (function($) {
2
2
 
3
- $.noty.layouts.top = {
4
- name: 'top',
5
- options: {},
6
- container: {
7
- object: '<ul id="noty_top_layout_container" />',
8
- selector: 'ul#noty_top_layout_container',
9
- style: function() {
10
- $(this).css({
11
- top: 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
- };
3
+ $.noty.layouts.top = {
4
+ name : 'top',
5
+ options : {},
6
+ container: {
7
+ object : '<ul id="noty_top_layout_container" />',
8
+ selector: 'ul#noty_top_layout_container',
9
+ style : function() {
10
+ $(this).css({
11
+ top : 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
- $.noty.layouts.topCenter = {
4
- name: 'topCenter',
5
- options: { // overrides options
3
+ $.noty.layouts.topCenter = {
4
+ name : 'topCenter',
5
+ options : { // overrides options
6
6
 
7
- },
8
- container: {
9
- object: '<ul id="noty_topCenter_layout_container" />',
10
- selector: 'ul#noty_topCenter_layout_container',
11
- style: function() {
12
- $(this).css({
13
- top: 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
- });
7
+ },
8
+ container: {
9
+ object : '<ul id="noty_topCenter_layout_container" />',
10
+ selector: 'ul#noty_topCenter_layout_container',
11
+ style : function() {
12
+ $(this).css({
13
+ top : 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
- $(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
- };
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
- $.noty.layouts.topLeft = {
4
- name: 'topLeft',
5
- options: { // overrides options
6
-
7
- },
8
- container: {
9
- object: '<ul id="noty_topLeft_layout_container" />',
10
- selector: 'ul#noty_topLeft_layout_container',
11
- style: function() {
12
- $(this).css({
13
- top: 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.topLeft = {
4
+ name : 'topLeft',
5
+ options : { // overrides options
23
6
 
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
- };
7
+ },
8
+ container: {
9
+ object : '<ul id="noty_topLeft_layout_container" />',
10
+ selector: 'ul#noty_topLeft_layout_container',
11
+ style : function() {
12
+ $(this).css({
13
+ top : 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
- $.noty.layouts.topRight = {
4
- name: 'topRight',
5
- options: { // overrides options
6
-
7
- },
8
- container: {
9
- object: '<ul id="noty_topRight_layout_container" />',
10
- selector: 'ul#noty_topRight_layout_container',
11
- style: function() {
12
- $(this).css({
13
- top: 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.topRight = {
4
+ name : 'topRight',
5
+ options : { // overrides options
23
6
 
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
- };
7
+ },
8
+ container: {
9
+ object : '<ul id="noty_topRight_layout_container" />',
10
+ selector: 'ul#noty_topRight_layout_container',
11
+ style : function() {
12
+ $(this).css({
13
+ top : 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);