Skip to content

maximzhurkin/jquery-simple-modal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery Simple Modal

Very simple responsive jQuery modal plugin

Example

Getting Started

1. Include styles & scripts

<head>
	<link href="jquery.simple-modal.min.css" rel="stylesheet">
	<script src="jquery.min.js"></script>
	<script src="jquery.simple-modal.min.js"></script>
</head>

2. Initialize plugin

$(document).ready(function() {
	$().simpleModal({
		name: 'example',
		title: 'Example',
		content: '<button class="my-button">Lorem ipsum</button>',
		size: 'small', // or integer for custom width
		freeze: true,
		callback: function() {
			$('.simple-modal--example .my-button').click(function() {
				console.log('Click from modal');
			});
		}
	});
});

About

Very simple responsive jQuery modal plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published