1.0.7 • Published 8 years ago

rsmodal v1.0.7

Weekly downloads
7
License
MIT
Repository
github
Last release
8 years ago

rsModal

Why make another jQuery modal plugin? All you need to do is Google, "jQuery Modal Plugin" You will find so many of them! While I do tend to make use of a few of these, I always prefer to make my own plugin. You learn more by doing things yourself! Here is my learning curve with this plugin.

Installation

npm install rsmodal

Usage

After including jQuery and the rsModal plugin, instantiate rsModal like so:

$(function(){
    $('.myModal').click(function(){
      $('#modalcontent').rsModal();
    });
});
<button class="myModal">Open Modal</button>
<div id="modalcontent" style="display:none;">
    This is the content that will appear inside the modal
</div>

Testing

Tested on IE8+, Firefox 3.6+, Chrome 15+, Opera 12.5+, Safari 4+

Options

Demo

Click here to view a demo

1.0.7

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

9 years ago