Sha256: 9fc1b0b0eb3779fa2dd965c033ed01b977a0d7057357ea11251ec6f392da270f

Contents?: true

Size: 769 Bytes

Versions: 4

Compression:

Stored size: 769 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");
  }
}

$(document).ready(function () {
  $(".dismiss").click(function(){
    $(this).closest(".scope").hide();
  });

  $(".btn-reset").click(function(){
    $("#filter").val("").change();
  });
})

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
machinery-tool-1.20.0 html/assets/machinery-base.js
machinery-tool-1.19.0 html/assets/machinery-base.js
machinery-tool-1.18.0 html/assets/machinery-base.js
machinery-tool-1.17.0 html/assets/machinery-base.js