Multi-level horisontal jQuery menu.
Convert nested list to a functional horisontal menu of multiple levels.
- jQuery 1.11.3 or greater
<nav id="my-menu">
<ul>
<li><a href="/">Home</a></li>
<li><a href="/about/">About us</a>
<ul>
<li><a href="/about/history/">History</a></li>
<li><a href="/about/team/">The team</a></li>
<li><a href="/about/address/">Our address</a></li>
</ul>
</li>
<li><a href="/contact/">Contact</a></li>
</ul>
</nav>
<script src="scripts/iptools-jquery-mlhmenu.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#my-menu").iptMlhMenu({
// options
});
});
</script>
- id - The identifier of the cloned copy of the menu
- title - the title of the menu
- subtitle - the subtitle of the menu
- breakPalm - The pixel value at which the clone function triggers
- menuExtensions - Array of menu extension names (strings)
- File all your issues, feature requests here
- If filing a bug report, follow the convention of Steps to reproduce / What happens? / What should happen?
- If you're a developer, write a failing test instead of a bug report and send a Pull Request
- Fork it ( https://github.com/[my-github-username]/iptools-jquery-mlhmenu/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Develop your feature by concepts of TDD, see Tips
- Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Following tasks are there to help with development:
grunt watch:bdd
listens to tests and source, reruns testsgrunt qa
run QA task that includes tests and JSHintgrunt build
minify source to dist/
Copyright © 2015 Interactive Pioneers GmbH. Licenced under GPLv3.