diff options
Diffstat (limited to '')
-rw-r--r-- | .themes/classic/source/javascripts/octopress.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/.themes/classic/source/javascripts/octopress.js b/.themes/classic/source/javascripts/octopress.js index d944e7eb..a23ab502 100644 --- a/.themes/classic/source/javascripts/octopress.js +++ b/.themes/classic/source/javascripts/octopress.js @@ -1,7 +1,7 @@ function getNav() { - var mobileNav = $('nav[role=navigation] fieldset[role=site-search]').after('<fieldset role="mobile-nav"></fieldset>').next().append('<select></select>'); + 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] a').each(function(link) { + $('ul.main-navigation a').each(function(link) { mobileNav.children('select').append('<option value="'+link.href+'">• '+link.text+'</option>'); }); mobileNav.children('select').bind('change', function(event) { @@ -19,7 +19,7 @@ function addSidebarToggler() { $('body').addClass('collapse-sidebar'); } }); - var sections = $('aside[role=sidebar] > section'); + var sections = $('aside.sidebar > section'); if (sections.length > 1) { sections.each(function(section, index){ if ((sections.length >= 3) && index % 3 === 0) { @@ -29,7 +29,7 @@ function addSidebarToggler() { $(section).addClass(count); }); } - if (sections.length >= 3){ $('aside[role=sidebar]').addClass('thirds'); } + if (sections.length >= 3){ $('aside.sidebar').addClass('thirds'); } } function testFeatures() { |