Sha256: ca307b8e93035c9d54f2901b0aae41ef32622c7bcc94a5d3152bf0e7675109cf
Contents?: true
Size: 491 Bytes
Versions: 42
Compression:
Stored size: 491 Bytes
Contents
function initTabs() { $(".sub-nav.with-tabs dl a").on("click", function(e) { e.preventDefault(); var anchor = e.target var dl = $(anchor).closest("dl"); var dd = $(anchor).closest("dd"); var idToDeactivate = $("dd.active a", dl).attr("href"); $("dd.active", dl).removeClass("active") $(dd).addClass("active"); var idToActivate = anchor.getAttribute("href"); $(idToDeactivate).hide(); $(idToActivate).show(); }) } $(function() { initTabs(); });
Version data entries
42 entries across 42 versions & 1 rubygems