Difference between revisions of "Template:Example2"

Line 35: Line 35:
  
 
console.log(wgPageName);
 
console.log(wgPageName);
 +
console.log(wgPageName.substring(wgPageName.indexOf("/")+1, wgPageName.length ));
 
 
$("#"+ wgPageName.substring(wgPageName.indexOf("/")+1, wgPageName.length )+ "_submenu").addClass("current_page");
+
$("#submenu").addClass("current_page");
  
 
// $("#Team_submenu").prev('.submenu_wrapper').fadeIn(400);
 
// $("#Team_submenu").prev('.submenu_wrapper').fadeIn(400);

Revision as of 22:33, 8 March 2017