Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery(function(){
- // Mobile Select Menu
- jQuery("<select />").appendTo("nav#menu");
- jQuery("<option />", {
- "selected" : "selected",
- "value" : "",
- "text" : dp_localize.MenuItemGoto
- }).appendTo("nav#menu select");
- // Select Menu Options
- jQuery("nav#menu a").each(function() {
- var el = jQuery(this);
- jQuery("<option />", {
- "value" : el.attr("href"),
- "text" : el.text()
- }).appendTo("nav#menu select");
- });
- // Redirect
- jQuery("nav#menu select").change(function() {
- window.location = jQuery(this).find("option:selected").val();
- });
- // Superfish Menu
- jQuery('ul.sf-menu').superfish();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement