Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
1,413 additions
and
1,510 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,30 @@ | ||
(function($) { | ||
|
||
$.noty.layouts.bottom = { | ||
name : 'bottom', | ||
options : {}, | ||
container: { | ||
object : '<ul id="noty_bottom_layout_container" />', | ||
selector: 'ul#noty_bottom_layout_container', | ||
style : function() { | ||
$(this).css({ | ||
bottom : 0, | ||
left : '5%', | ||
position : 'fixed', | ||
width : '90%', | ||
height : 'auto', | ||
margin : 0, | ||
padding : 0, | ||
listStyleType: 'none', | ||
zIndex : 9999999 | ||
}); | ||
} | ||
}, | ||
parent : { | ||
object : '<li />', | ||
selector: 'li', | ||
css : {} | ||
}, | ||
css : { | ||
display: 'none' | ||
}, | ||
addClass : '' | ||
}; | ||
|
||
})(jQuery); | ||
$.noty.layouts.bottom = { | ||
name : 'bottom', | ||
options : {}, | ||
container: { | ||
object : '<ul id="noty_bottom_layout_container" />', | ||
selector: 'ul#noty_bottom_layout_container', | ||
style : function() { | ||
$(this).css({ | ||
bottom : 0, | ||
left : '5%', | ||
position : 'fixed', | ||
width : '90%', | ||
height : 'auto', | ||
margin : 0, | ||
padding : 0, | ||
listStyleType: 'none', | ||
zIndex : 9999999 | ||
}); | ||
} | ||
}, | ||
parent : { | ||
object : '<li />', | ||
selector: 'li', | ||
css : {} | ||
}, | ||
css : { | ||
display: 'none' | ||
}, | ||
addClass : '' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,38 @@ | ||
(function($) { | ||
$.noty.layouts.bottomCenter = { | ||
name : 'bottomCenter', | ||
options : { // overrides options | ||
|
||
$.noty.layouts.bottomCenter = { | ||
name : 'bottomCenter', | ||
options : { // overrides options | ||
}, | ||
container: { | ||
object : '<ul id="noty_bottomCenter_layout_container" />', | ||
selector: 'ul#noty_bottomCenter_layout_container', | ||
style : function() { | ||
$(this).css({ | ||
bottom : 20, | ||
left : 0, | ||
position : 'fixed', | ||
width : '310px', | ||
height : 'auto', | ||
margin : 0, | ||
padding : 0, | ||
listStyleType: 'none', | ||
zIndex : 10000000 | ||
}); | ||
|
||
}, | ||
container: { | ||
object : '<ul id="noty_bottomCenter_layout_container" />', | ||
selector: 'ul#noty_bottomCenter_layout_container', | ||
style : function() { | ||
$(this).css({ | ||
bottom : 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 : '' | ||
}; | ||
|
||
$(this).css({ | ||
left: ($(window).width() - $(this).outerWidth(false)) / 2 + 'px' | ||
}); | ||
} | ||
}, | ||
parent : { | ||
object : '<li />', | ||
selector: 'li', | ||
css : {} | ||
}, | ||
css : { | ||
display: 'none', | ||
width : '310px' | ||
}, | ||
addClass : '' | ||
}; | ||
|
||
})(jQuery); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,39 @@ | ||
(function($) { | ||
$.noty.layouts.bottomLeft = { | ||
name : 'bottomLeft', | ||
options : { // overrides options | ||
|
||
$.noty.layouts.bottomLeft = { | ||
name : 'bottomLeft', | ||
options : { // overrides options | ||
}, | ||
container: { | ||
object : '<ul id="noty_bottomLeft_layout_container" />', | ||
selector: 'ul#noty_bottomLeft_layout_container', | ||
style : function() { | ||
$(this).css({ | ||
bottom : 20, | ||
left : 20, | ||
position : 'fixed', | ||
width : '310px', | ||
height : 'auto', | ||
margin : 0, | ||
padding : 0, | ||
listStyleType: 'none', | ||
zIndex : 10000000 | ||
}); | ||
|
||
}, | ||
container: { | ||
object : '<ul id="noty_bottomLeft_layout_container" />', | ||
selector: 'ul#noty_bottomLeft_layout_container', | ||
style : function() { | ||
if(window.innerWidth < 600) { | ||
$(this).css({ | ||
bottom : 20, | ||
left : 20, | ||
position : 'fixed', | ||
width : '310px', | ||
height : 'auto', | ||
margin : 0, | ||
padding : 0, | ||
listStyleType: 'none', | ||
zIndex : 10000000 | ||
left: 5 | ||
}); | ||
|
||
if(window.innerWidth < 600) { | ||
$(this).css({ | ||
left: 5 | ||
}); | ||
} | ||
} | ||
}, | ||
parent : { | ||
object : '<li />', | ||
selector: 'li', | ||
css : {} | ||
}, | ||
css : { | ||
display: 'none', | ||
width : '310px' | ||
}, | ||
addClass : '' | ||
}; | ||
|
||
})(jQuery); | ||
} | ||
}, | ||
parent : { | ||
object : '<li />', | ||
selector: 'li', | ||
css : {} | ||
}, | ||
css : { | ||
display: 'none', | ||
width : '310px' | ||
}, | ||
addClass : '' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,39 @@ | ||
(function($) { | ||
$.noty.layouts.bottomRight = { | ||
name : 'bottomRight', | ||
options : { // overrides options | ||
|
||
$.noty.layouts.bottomRight = { | ||
name : 'bottomRight', | ||
options : { // overrides options | ||
}, | ||
container: { | ||
object : '<ul id="noty_bottomRight_layout_container" />', | ||
selector: 'ul#noty_bottomRight_layout_container', | ||
style : function() { | ||
$(this).css({ | ||
bottom : 20, | ||
right : 20, | ||
position : 'fixed', | ||
width : '310px', | ||
height : 'auto', | ||
margin : 0, | ||
padding : 0, | ||
listStyleType: 'none', | ||
zIndex : 10000000 | ||
}); | ||
|
||
}, | ||
container: { | ||
object : '<ul id="noty_bottomRight_layout_container" />', | ||
selector: 'ul#noty_bottomRight_layout_container', | ||
style : function() { | ||
if(window.innerWidth < 600) { | ||
$(this).css({ | ||
bottom : 20, | ||
right : 20, | ||
position : 'fixed', | ||
width : '310px', | ||
height : 'auto', | ||
margin : 0, | ||
padding : 0, | ||
listStyleType: 'none', | ||
zIndex : 10000000 | ||
right: 5 | ||
}); | ||
|
||
if(window.innerWidth < 600) { | ||
$(this).css({ | ||
right: 5 | ||
}); | ||
} | ||
} | ||
}, | ||
parent : { | ||
object : '<li />', | ||
selector: 'li', | ||
css : {} | ||
}, | ||
css : { | ||
display: 'none', | ||
width : '310px' | ||
}, | ||
addClass : '' | ||
}; | ||
|
||
})(jQuery); | ||
} | ||
}, | ||
parent : { | ||
object : '<li />', | ||
selector: 'li', | ||
css : {} | ||
}, | ||
css : { | ||
display: 'none', | ||
width : '310px' | ||
}, | ||
addClass : '' | ||
}; |
Oops, something went wrong.
It was good that you moved this block of code to be inside of the jQuery wrapper function, but you are still referencing a global jQuery variable here...
jQuery
in this line needs to be changed to$
.Also, is there a way to prevent the global space (window) from having this set, specially when in an AMD mode?