diff options
author | Colm Donelan <Colm.Donelan@arm.com> | 2020-05-20 16:12:19 +0100 |
---|---|---|
committer | Colm Donelan <Colm.Donelan@arm.com> | 2020-05-29 10:28:40 +0100 |
commit | a983e4699082a0b1ef685bab7354f2ad9cd37a44 (patch) | |
tree | 4fa94e7ab27053461b481cfbdc1b7c17ca475ac6 /20.05/menu.js | |
parent | 764d50a3271dea43a6e9273e6dfd98990281c654 (diff) | |
download | armnn-a983e4699082a0b1ef685bab7354f2ad9cd37a44.tar.gz |
Updating Doxygen documentation for 20.05 release.
Change-Id: I4d624343ed5fd6ae269c3d53532903084508fd14
Signed-off-by: Colm Donelan <Colm.Donelan@arm.com>
Diffstat (limited to '20.05/menu.js')
-rw-r--r-- | 20.05/menu.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/20.05/menu.js b/20.05/menu.js new file mode 100644 index 0000000000..97db4c2392 --- /dev/null +++ b/20.05/menu.js @@ -0,0 +1,26 @@ +function initMenu(relPath,searchEnabled,serverSide,searchPage,search) { + function makeTree(data,relPath) { + var result=''; + if ('children' in data) { + result+='<ul>'; + for (var i in data.children) { + result+='<li><a href="'+relPath+data.children[i].url+'">'+ + data.children[i].text+'</a>'+ + makeTree(data.children[i],relPath)+'</li>'; + } + result+='</ul>'; + } + 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('<li style="float:right"><div id="MSearchBox" class="MSearchBoxInactive"><div class="left"><form id="FSearchBox" action="'+searchPage+'" method="get"><img id="MSearchSelect" src="'+relPath+'search/mag.png" alt=""/><input type="text" id="MSearchField" name="query" value="'+search+'" size="20" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)"></form></div><div class="right"></div></div></li>'); + } else { + $('#main-menu').append('<li style="float:right"><div id="MSearchBox" class="MSearchBoxInactive"><span class="left"><img id="MSearchSelect" src="'+relPath+'search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/><input type="text" id="MSearchField" value="'+search+'" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/></span><span class="right"><a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="'+relPath+'search/close.png" alt=""/></a></span></div></li>'); + } + } + $('#main-menu').smartmenus(); +} |