diff --git a/.themes/classic/source/javascripts/octopress.js b/.themes/classic/source/javascripts/octopress.js index c3f5915..235b5d1 100644 --- a/.themes/classic/source/javascripts/octopress.js +++ b/.themes/classic/source/javascripts/octopress.js @@ -1,17 +1,15 @@ function getNav() { - var mobileNav = $('nav[role=navigation] fieldset[role=search]').after('
').next().append(''); - mobileNav.children('select').append(''); - $('ul[role=main-navigation]').addClass('main-navigation'); - $('ul.main-navigation a').each(function(i, link) { - mobileNav.children('select').append(''); - }); - $('ul.subscription a').each(function(i, link) { - mobileNav.children('select').append(''); - }); - mobileNav.children('select').bind('change', function(event) { + var mainNav = $('ul.main-navigation, ul[role=main-navigation]').before('