Sha256: 81e66112fd6efdc40ab77394f814408c155bff5661882d2b85186abab72b055f
Contents?: true
Size: 719 Bytes
Versions: 2
Compression:
Stored size: 719 Bytes
Contents
;(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()) / 2 + 'px', }); } }, parent: { object: '<li />', selector: 'li', css: {} }, css: { display: 'none', width: '310px' }, addClass: '' }; })(jQuery);
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
noty-rails-2.0.3.1 | vendor/assets/javascripts/noty/layouts/topCenter.js |
noty-rails-2.0.3 | vendor/assets/javascripts/noty/layouts/topCenter.js |