Last active
December 31, 2015 06:19
-
-
Save liubin/7946761 to your computer and use it in GitHub Desktop.
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
<a id="content-menu" class="tiny button secondary radius" href="#remote-content-menu">Show Menu</a> | |
<div id="remote-content-menu" style="display: none; left: 0px;"> | |
<ul> | |
<li style="padding-left: 10px;"><i onclick="em()" id="hide-left-menu-icon" class="icon-arrow_left icon2x"></i></li> | |
<li><a href="#">Sample link 1</a></li> | |
<li> | |
<a href="#">Sample link 2</a> | |
<ul> | |
<li><a href="#">Child link 1</a></li> | |
<li><a href="#">Child link 2</a></li> | |
</ul> | |
</li> | |
<li><a href="#">Sample link 3</a></li> | |
</ul> | |
<form> | |
<input type="text" placeholder="Search..."> | |
</form> | |
<h2>Sample heading</h2> | |
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus mollis sapien non nisi sodales pulvinar. Curabitur odio velit, porta sit amet lobortis sit amet, volutpat ut justo.</p></div> | |
<script> | |
function em(){ | |
$.sidr(); | |
} | |
$(document).ready(function() { | |
$("#hide-left-menu-icon").on('click',function(){ | |
// TODO this is not work. | |
console.log('s'); | |
em(); | |
}); | |
$('#content-menu').sidr({ | |
name: 'sidr-remote-content', | |
source: '#remote-content-menu', | |
renaming: false | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment