Sha256: 27f47b2432549f13dcb469ff1c8956d6f00bd6058a64cfaf902b2bd3b5dddd4c

Contents?: true

Size: 577 Bytes

Versions: 5

Compression:

Stored size: 577 Bytes

Contents

function highlightCurrentScope() {
  $(".scope-navigation a").removeClass("active");
  current = $('.over-the-top:last');
  if(current.length == 0) {
    current = $('.scope_logo_big:first');
  }
  $(".scope-navigation a[href='#" + current.attr("id") + "']").addClass("active");
}

function setCurrentScopeState(anchor) {
  var header_height =  $("#nav-bar").height() + 20;
  var pos = anchor.offset();
  var top_pos = $(this).scrollTop() + header_height;
  if(top_pos >= pos.top) {
    anchor.addClass("over-the-top");
  } else {
    anchor.removeClass("over-the-top");
  }
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
machinery-tool-1.16.3 html/assets/machinery-base.js
machinery-tool-1.16.2 html/assets/machinery-base.js
machinery-tool-1.16.1 html/assets/machinery-base.js
machinery-tool-1.16.0 html/assets/machinery-base.js
machinery-tool-1.15.0 html/assets/machinery-base.js