Closed (fixed)
Project:
Skeleton
Version:
7.x-1.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
16 Feb 2013 at 14:38 UTC
Updated:
4 Jan 2014 at 02:58 UTC
Jump to comment: Most recent
Add jQuery Responsive Menu Plugin which turns your site's navigation into a dropdown (
) when your browser is at mobile widths. Default switchWidth: 768
/**
* Add Javascript for responsive mobile menu
*/
drupal_add_js(drupal_get_path('theme', 'skeletontheme') .'/js/jquery.mobilemenu.js');
drupal_add_js('jQuery(document).ready(function($) {
$("#navigation .content > ul").mobileMenu({
prependTo: "#navigation",
combine: false,
switchWidth: 768,
topOptionText: "Select page"
});
});',
array('type' => 'inline', 'scope' => 'header'));
//EOF:Javascript
Comments
Comment #1
gtsopour commentedJust committed http://drupalcode.org/project/skeletontheme.git/commit/661fa67
Comment #2
gtsopour commentedDocumentation
Responsive Drupal Skeleton theme Multi-level CSS/Superfish menus - http://drupal.org/node/1919042
Comment #3
sk33lz commentedFYI, there is a module for that.
http://drupal.org/project/tinynav
Comment #4
gtsopour commentedThanks sk33lz for this info.
George
Comment #5.0
(not verified) commentedChanged body text