Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5878e2b3 authored by Scott Main's avatar Scott Main Committed by Android (Google) Code Review
Browse files

Merge "docs: fix bug with unknown anchors" into jb-mr1-dev

parents 2c7e6cb7 3a535a47
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -42,8 +42,13 @@ function revealSection(hashy) {
    link = $("#version-tabs a[href$="+sectionId+"]");
    link.parent().addClass("selected");
    link.parent().siblings().removeClass("selected");
    
    sectionDiv = $(".version-section"+link.attr("href"));
    if (sectionDiv.length) {
      $(".version-section").hide();
    $(link.attr("href")).show();
      sectionDiv.show();
    }
    
    $('html, body').animate({
         scrollTop: $(hashy).offset().top
     }, 100);