Line 446: | Line 446: | ||
<div class="content_wrapper"> | <div class="content_wrapper"> | ||
− | + | ||
<h1 id="team_name"> </h1> | <h1 id="team_name"> </h1> | ||
<h4 id="page_name"> </h4> | <h4 id="page_name"> </h4> | ||
− | + | ||
Line 468: | Line 468: | ||
+ | // this adds the team's name as an h1 | ||
+ | $("#team_name").html( wgPageName.substring( 5 , wgPageName.indexOf("/") ) ); | ||
− | + | // this adds the page's title as an h4 | |
− | + | $("#page_name").html ( ( wgPageName.substring( wgPageName.indexOf("/") + 1, wgPageName.length ) ).replace( /\//g , " ") ); | |
− | + | ||
− | $("#page_name").html ( | + | |
Revision as of 18:45, 13 April 2016