mirror of
https://github.com/WatchOutNewsAgency/wona.github.com.git
synced 2026-01-01 01:16:26 +00:00
improved navigation selection and fixed mobile nav select
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
function getNav(){
|
||||
var mobileNav = $('body > nav fieldset[role=site-search]').after('<fieldset role="mobile-nav"></fieldset>').next().append('<select></select>');
|
||||
var mobileNav = $('nav[role=navigation] fieldset[role=site-search]').after('<fieldset role="mobile-nav"></fieldset>').next().append('<select></select>');
|
||||
mobileNav.children('select').append('<option value="">Navigate…</option>');
|
||||
$($('body > nav ul[role=main-nav] a')).each(function(link) {
|
||||
$($('ul[role=main-navigation] a')).each(function(link) {
|
||||
mobileNav.children('select').append('<option value="'+link.href+'">• '+link.text+'</option>')
|
||||
});
|
||||
mobileNav.children('select').bind('change', function(event){
|
||||
|
||||
Reference in New Issue
Block a user