mirror of
https://github.com/moparisthebest/www.moparscape.org
synced 2024-11-13 12:55:08 -05:00
commit
1c7919902d
@ -2,10 +2,10 @@ function getNav() {
|
||||
var mobileNav = $('nav[role=navigation] fieldset[role=search]').after('<fieldset class="mobile-nav"></fieldset>').next().append('<select></select>');
|
||||
mobileNav.children('select').append('<option value="">Navigate…</option>');
|
||||
$('ul[role=main-navigation]').addClass('main-navigation');
|
||||
$('ul.main-navigation a').each(function(link) {
|
||||
$('ul.main-navigation a').each(function(i, link) {
|
||||
mobileNav.children('select').append('<option value="'+link.href+'">» '+link.text+'</option>');
|
||||
});
|
||||
$('ul.subscription a').each(function(link) {
|
||||
$('ul.subscription a').each(function(i, link) {
|
||||
mobileNav.children('select').append('<option value="'+link.href+'">» '+link.text+'</option>');
|
||||
});
|
||||
mobileNav.children('select').bind('change', function(event) {
|
||||
|
Loading…
Reference in New Issue
Block a user