...
|
...
|
@@ -1,6 +1,7 @@
|
1
|
1
|
function getNav() {
|
2
|
2
|
var mobileNav = $('nav[role=navigation] fieldset[role=search]').after('<fieldset class="mobile-nav"></fieldset>').next().append('<select></select>');
|
3
|
3
|
mobileNav.children('select').append('<option value="">Navigate…</option>');
|
|
4
|
+ $('ul[role=main-navigation]').addClass('main-navigation');
|
4
|
5
|
$('ul.main-navigation a').each(function(link) {
|
5
|
6
|
mobileNav.children('select').append('<option value="'+link.href+'">• '+link.text+'</option>');
|
6
|
7
|
});
|