noty-rails 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,34 @@
1
+ ;(function($) {
2
+
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
+
34
+ })(jQuery);
@@ -0,0 +1,41 @@
1
+ ;(function($) {
2
+
3
+ $.noty.layouts.bottomCenter = {
4
+ name: 'bottomCenter',
5
+ options: { // overrides options
6
+
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
+
24
+ $(this).css({
25
+ left: ($(window).width() - $(this).outerWidth()) / 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
+
41
+ })(jQuery);
@@ -0,0 +1,43 @@
1
+ ;(function($) {
2
+
3
+ $.noty.layouts.bottomLeft = {
4
+ name: 'bottomLeft',
5
+ options: { // overrides options
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
+ });
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
+
43
+ })(jQuery);
@@ -0,0 +1,43 @@
1
+ ;(function($) {
2
+
3
+ $.noty.layouts.bottomRight = {
4
+ name: 'bottomRight',
5
+ options: { // overrides options
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
+ });
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
+
43
+ })(jQuery);
@@ -0,0 +1,56 @@
1
+ ;(function($) {
2
+
3
+ $.noty.layouts.center = {
4
+ name: 'center',
5
+ options: { // overrides options
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
+ });
21
+
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()) / 2 + 'px',
33
+ top: ($(window).height() - actual_height) / 2 + 'px'
34
+ });
35
+ } else {
36
+ $(this).animate({
37
+ left: ($(window).width() - $(this).outerWidth()) / 2 + 'px',
38
+ top: ($(window).height() - actual_height) / 2 + 'px'
39
+ }, 500);
40
+ }
41
+
42
+ }
43
+ },
44
+ parent: {
45
+ object: '<li />',
46
+ selector: 'li',
47
+ css: {}
48
+ },
49
+ css: {
50
+ display: 'none',
51
+ width: '310px'
52
+ },
53
+ addClass: ''
54
+ };
55
+
56
+ })(jQuery);
@@ -0,0 +1,61 @@
1
+ ;(function($) {
2
+
3
+ $.noty.layouts.centerLeft = {
4
+ name: 'centerLeft',
5
+ options: { // overrides options
6
+
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
+
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
+
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
+ }
40
+
41
+ if (window.innerWidth < 600) {
42
+ $(this).css({
43
+ left: 5
44
+ });
45
+ }
46
+
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
+ };
60
+
61
+ })(jQuery);
@@ -0,0 +1,61 @@
1
+ ;(function($) {
2
+
3
+ $.noty.layouts.centerRight = {
4
+ name: 'centerRight',
5
+ options: { // overrides options
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
+ });
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();
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
+ }
40
+
41
+ if (window.innerWidth < 600) {
42
+ $(this).css({
43
+ right: 5
44
+ });
45
+ }
46
+
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
+ };
60
+
61
+ })(jQuery);
@@ -0,0 +1,31 @@
1
+ ;(function($) {
2
+
3
+ $.noty.layouts.inline = {
4
+ name: 'inline',
5
+ options: {},
6
+ container: {
7
+ object: '<ul id="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
+
31
+ })(jQuery);
@@ -0,0 +1,34 @@
1
+ ;(function($) {
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
+ };
33
+
34
+ })(jQuery);
@@ -0,0 +1,41 @@
1
+ ;(function($) {
2
+
3
+ $.noty.layouts.topCenter = {
4
+ name: 'topCenter',
5
+ options: { // overrides options
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
+ });
23
+
24
+ $(this).css({
25
+ left: ($(window).width() - $(this).outerWidth()) / 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
+
41
+ })(jQuery);