Created
May 16, 2013 19:16
-
-
Save dvdpearson/5594290 to your computer and use it in GitHub Desktop.
Sidr - The best jQuery plugin for creating side menus and the easiest way for doing your menu responsive - http://www.berriart.com/sidr/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- Your stuff --> | |
<!-- Include Sidr bundled CSS theme --> | |
<link rel="stylesheet" href="javascripts/sidr/stylesheets/jquery.sidr.dark.css"> | |
</head> | |
<body> | |
<!-- Your stuff --> | |
<!-- Include jQuery --> | |
<script src="javascripts/jquery.js"></script> | |
<!-- Include the Sidr JS --> | |
<script src="javascripts/sidr/jquery.sidr.min.js"></script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The Simplest Usage | |
<a id="simple-menu" href="#sidr">Toogle menu</a> | |
<div id="sidr"> | |
<!-- Your content --> | |
<ul> | |
<li><a href="#">List 1</a></li> | |
<li class="active"><a href="#">List 2</a></li> | |
<li><a href="#">List 3</a></li> | |
</ul> | |
</div> | |
<script> | |
$(document).ready(function() { | |
$('#simple-menu').sidr(); | |
}); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Create Multiple Menus | |
<a id="left-menu" href="#left-menu">Left Menu</a> | |
<a id="right-menu" href="#right-menu">Right Menu</a> | |
<script> | |
$(document).ready(function() { | |
$('#left-menu').sidr({ | |
name: 'sidr-left', | |
side: 'left' // By default | |
}); | |
$('#right-menu').sidr({ | |
name: 'sidr-right', | |
side: 'right' | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment