'Bootstrap Slide In Menu' is a jQuery Plugin for adding ZERO-config 'Slide-in' side menu to your pages.
$(document).SlideInMenu(); only.navbarnavbar on top of the page, are set in the 'side menu' automatically.
Only use the Bootstrap CSS file. (Not necessary to use this bootstrapSlideInMenu-1.0.0.css.)
After loading the jQuery and Bootstrap script file, simply load the bootstrapSlideInMenu-1.0.0.min.js file.
<script type="text/javascript" charset="UTF-8" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="bootstrapSlideInMenu-1.0.0.min.js"></script>
Then call the command SlideInMenu(). That's all.
<script type="text/javascript" charset="UTF-8">
$(document).ready(function() {
$(document).SlideInMenu();
});
</script>
'#SlideInMenu' | '#' + UniqueID'overlay' | 'push'overlay: The menu is shown on the contents.push: The menu pushes contents to the right.
true | falsetrue | false.navbar or not.
false | true'./bootstrapSlideInMenu.css' | 'external CSS file path'useExternalCss is set true.
200 | any number (px)'#F8F8F8' | 'any color code'300 | any number (ms)
$(document).bootstrapSlideInMenu({
'menuId' : '#mySytleMenu',
'slideType' : 'overlay',
'addCloseButton' : true,
'cloneNavbar' : true,
'useExternalCss' : true,
'externalCssFile' : './myOriginalStyle.css',
// because useExternalCss is set to true, following options don't work.
'menuWidth' : 200,
'menuBackground' : '#F8F8F8',
'slideDuration' : 300
});