mirror of
https://github.com/WatchOutNewsAgency/wona.github.com.git
synced 2026-01-01 01:16:26 +00:00
mobile nav javascript updated to still work with role='main-navigation' since changes affecting custom partials don't get updated with the standard update script
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
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) {
|
||||
mobileNav.children('select').append('<option value="'+link.href+'">• '+link.text+'</option>');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user