A wrapper around bootstrap's modal that provides "fullscreen" modal windows. These big modals are 90% window width, 90% window height, with 5% margins.
- Include
css/bigmodals.cssin your page after bootstrap's main css files.- Alternatively, include
less/bigmodals.lessafter bootstrap'smodals.lessin your build process.
- Alternatively, include
- Include
js/bootstrap-bigmodal.jsafter bootstrap'sbootstrap-modal.js
See bootstrap modals for all options and methods. BigModal passes all arguments to the underlying modal. Simply use the bigmodal jquery method in place of the modal method:
// Initialize bigmodal
$('.modal').bigmodal();// Initialize bigmodal with modal options
$('.modal').bigmodal({ /* ... */ });// Call modal function (either .bigmodal or .modal can be used to call methods)
$('.modal').bigmodal('show');