Sha256: b8fc14185921524bac562e258e098318f50ba1e1722e28db2eb9e7e2bcbaba78

Contents?: true

Size: 1.25 KB

Versions: 9

Compression:

Stored size: 1.25 KB

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();
  });

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

$(window).load(function(){
  if (window.location.pathname == "/") {
    descriptionSelector = $('#description-selector')
    descriptionSelector.modal({backdrop: 'static', keyboard: false});
    descriptionSelector.find("button[data-dismiss='modal']").hide();
  }
});

$(document).on("click", ".description-name", function () {
  $(this).parent().find(".open-description-selector").trigger("click");
});

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
machinery-tool-1.24.1 html/assets/machinery-base.js
machinery-tool-1.24.0 html/assets/machinery-base.js
machinery-tool-1.23.1 html/assets/machinery-base.js
machinery-tool-1.23.0 html/assets/machinery-base.js
machinery-tool-1.22.3 html/assets/machinery-base.js
machinery-tool-1.22.2 html/assets/machinery-base.js
machinery-tool-1.22.1 html/assets/machinery-base.js
machinery-tool-1.22.0 html/assets/machinery-base.js
machinery-tool-1.21.0 html/assets/machinery-base.js