mirror of
https://github.com/misskey-dev/SyslogPro.git
synced 2025-08-07 16:43:57 +09:00
Added 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