🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

A minimalist jQuery modal plugin for displaying a modal window / dialog box with configurable sizes and animations on the page.

Modal Dialog

Documentation

Easy Modal

An easy to use jquery modal plugin. All you have to do is change the settings to your desire and the modal plugin will take care of the rest

The modal is created dynamically through jquery. No longer do you have to recreate templates. All you have to do is provide the content and settings and your off to the races. See the index file and you can see the three ways this modal can be set up.

Requirements


        jQuery 1.9.1 or Higher         easy-modal.js         style-modal.css        (Optional) Font Awesome Library For Close Icon  

How To Use

  $(document).ready(function(){       $('.modal-click').click(function(){          $.easyModal()       });    }); 

Modal Settings

        content: 'New Easy Modal/Dialog Box',         size: 'medium',         fadeInModal: 800,         fadeOutModal: 800,         footer: false,         buttonText: "Ok",         linkText: "Cancel" 

content: can be changed to any form of string or you can pass in a file via ajax

size: small, medium, large

fadeInModal: the speed you wish to fade in

fadeOutModal: the speed you wish to fade out

footer: Boolean (true or false) if true the footer will render buttons at the foot of the modal. If false no buttons and close button will be in the upper right corner

buttonText: String to set the button text

linkText: String to set the link text

The MIT License (MIT)


Copyright (c) 2016 Travis Pronschinske ()

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

HE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


You May Also Like