Sha256: 2dec4f565c30024715523577fb1870bcde83042b723d4c571a1c0df9c3d48cbb
Contents?: true
Size: 558 Bytes
Versions: 15
Compression:
Stored size: 558 Bytes
Contents
$(document).ready(function(){ $(window).scroll(function() { var $scroll = $(window).scrollTop(); if ($scroll > 50){ $(".remove-name").removeClass("patient-name"); } else { $(".remove-name").addClass("patient-name"); } }); // Auto select the active tab based on the url, unless the subnav has the no-js-selection class $(".sub-nav:not('.no-js-selection') dd").each(function(){ var $href = $(this).find("a").attr('href'); if ($href === window.location.pathname) { $(this).addClass('active'); } }); });
Version data entries
15 entries across 15 versions & 1 rubygems