UNPKG

node-cache-redis-fork

Version:

Simplistic node redis cache ready can scale with generic-pool support

11 lines (10 loc) 376 B
function hideAllButCurrent(){ //by default all submenut items are hidden $("nav > ul > li > ul li").hide(); //only current page (if it exists) should be opened var file = window.location.pathname.split("/").pop(); $("nav > ul > li > a[href^='"+file+"']").parent().find("> ul li").show(); } $( document ).ready(function() { hideAllButCurrent(); });