MCPcopy Create free account
hub / github.com/ARM-software/AVH / selectAndHighlight

Function selectAndHighlight

DoxyGen/Doxygen_Templates/navtree.js:313–337  ·  view source on GitHub ↗
(hash,n)

Source from the content-addressed store, hash-verified

311}
312
313function selectAndHighlight(hash,n)
314{
315 var a;
316 if (hash) {
317 var link=stripPath(pathName())+':'+hash.substring(1);
318 a=$('.item a[class$="'+link+'"]');
319 }
320 if (a && a.length) {
321 a.parent().parent().addClass('selected');
322 a.parent().parent().attr('id','selected');
323 highlightAnchor();
324 } else if (n) {
325 $(n.itemDiv).addClass('selected');
326 $(n.itemDiv).attr('id','selected');
327 }
328 var topOffset=5;
329 if (typeof page_layout!=='undefined' && page_layout==1) {
330 topOffset+=$('#top').outerHeight();
331 }
332 if ($('#nav-tree-contents .item:first').hasClass('selected')) {
333 topOffset+=25;
334 }
335 $('#nav-sync').css('top',topOffset+'px');
336 showRoot();
337}
338
339function showNode(o, node, index, hash)
340{

Callers 1

showNodeFunction · 0.85

Calls 4

stripPathFunction · 0.85
pathNameFunction · 0.85
highlightAnchorFunction · 0.85
showRootFunction · 0.85

Tested by

no test coverage detected