Sha256: f0b6806230aaa3dde3ca3d03a2e6b3be42293cfb58d83b0eb191cfc1beccc9f7

Contents?: true

Size: 734 Bytes

Versions: 2

Compression:

Stored size: 734 Bytes

Contents

;(function($) {

	$.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
				});
				
				$(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/bottomCenter.js
noty-rails-2.0.3 vendor/assets/javascripts/noty/layouts/bottomCenter.js