Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jakobbossek/jquery.responsiveselectmenu

Transform a navigation into a HTML select field.
https://github.com/jakobbossek/jquery.responsiveselectmenu

Last synced: 3 days ago
JSON representation

Transform a navigation into a HTML select field.

Awesome Lists containing this project

README

        

jquery.responsiveSelectMenu
===========================

This small jQuery based plugin transforms your navigation into a place-saving dropdown menu, i.e., a simple HTML select field, which could replace your possibly large navigation on small screens (for example smartphones). It is pretty easy to use, light-weight not bloated with a load of options.

To apply the plugin to your site simply call the plugin via
```Javascript
$(document).ready(function() {
$("#your_nav_id").responsiveSelectMenu(
{head: "Menu", appendTo: "body", ID: "responsiveSelectMenu"}
);
});
```
Pretty easy, huh? There are three optional parameters you can provide. ```head``` is the label of the upmost element of the dropdown menu indicating what it is for. ```appendTo``` lets you customize where the generated menu is going to be placed in your markup code and ```ID``` is the DOM-ID assigned to the dropdown.

Use media queries to hide the actual navigation on small screens.