Difference between revisions of "Template:Main2017"

Line 16: Line 16:
  
 
// highlights on which page/hub you are currently in  
 
// highlights on which page/hub you are currently in  
$('#' + wgPageName).addClass("current_page");
+
highlight_current_page();
$(".current_page").next().addClass("less");
+
$(".current_page").next().next().fadeIn(400);
+
  
 
//executes menu functionality ( accordion and toggles) once the menu is loaded
 
//executes menu functionality ( accordion and toggles) once the menu is loaded
Line 34: Line 32:
 
 
  
 +
 +
function highlight_current_page () {
 +
 +
$('#' + wgPageName).addClass("current_page");
 +
 +
if ( $( ".current_page" ).hasClass( "hub_link")  == true ) {
 +
$(".current_page").next().addClass("less");
 +
$(".current_page").next().next().fadeIn(400);
 +
}
 +
 +
}
  
  

Revision as of 17:37, 13 December 2016