mirror of
https://github.com/lancedikson/bowser
synced 2026-03-02 03:40:27 +00:00
Regen docs
This commit is contained in:
11
docs/scripts/collapse.js
Normal file
11
docs/scripts/collapse.js
Normal file
@@ -0,0 +1,11 @@
|
||||
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();
|
||||
});
|
||||
Reference in New Issue
Block a user