From 985837f2152383c304d043bd4dc8af23914b112f Mon Sep 17 00:00:00 2001 From: Oleg Morozenkov Date: Mon, 2 Jan 2017 23:05:43 +0300 Subject: Docs --- docs/menu.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 docs/menu.js (limited to 'docs/menu.js') diff --git a/docs/menu.js b/docs/menu.js new file mode 100644 index 0000000..97db4c2 --- /dev/null +++ b/docs/menu.js @@ -0,0 +1,26 @@ +function initMenu(relPath,searchEnabled,serverSide,searchPage,search) { + function makeTree(data,relPath) { + var result=''; + if ('children' in data) { + result+=''; + } + return result; + } + + $('#main-nav').append(makeTree(menudata,relPath)); + $('#main-nav').children(':first').addClass('sm sm-dox').attr('id','main-menu'); + if (searchEnabled) { + if (serverSide) { + $('#main-menu').append('
  • '); + } else { + $('#main-menu').append('
  • '); + } + } + $('#main-menu').smartmenus(); +} -- cgit v1.2.3