Line 32: | Line 32: | ||
<ul id="HQ"> | <ul id="HQ"> | ||
</ul> | </ul> | ||
+ | |||
+ | <h2> Redirects </h2> | ||
+ | <ul id="redirect"> | ||
+ | </ul> | ||
+ | |||
</div> | </div> | ||
Line 97: | Line 102: | ||
function is_it_a_special_page ( page_name, page_link ) { | function is_it_a_special_page ( page_name, page_link ) { | ||
− | // is it a HQ page or a | + | // is it a HQ page or a Dev page ? |
if( page_name.substring(0, 2 ) == "HQ" || page_name.substring(0, page_name.indexOf("/") ) == "Dev" ) { | if( page_name.substring(0, 2 ) == "HQ" || page_name.substring(0, page_name.indexOf("/") ) == "Dev" ) { | ||
$("#HQ").append("<li ><a href='/"+page_name+"'>"+page_name +"</a> </li>"); | $("#HQ").append("<li ><a href='/"+page_name+"'>"+page_name +"</a> </li>"); | ||
return true; | return true; | ||
} | } | ||
+ | |||
// is this a page from a team ? | // is this a page from a team ? | ||
− | |||
else if ( page_name.substring(0, 4 ) == "Team") { | else if ( page_name.substring(0, 4 ) == "Team") { | ||
− | + | return true; // page is from a team - we will figure out what to do later | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
− | + | ||
// is it a redirect? | // is it a redirect? | ||
else if( page_link.indexOf("mw-redirect") >= 0) { | else if( page_link.indexOf("mw-redirect") >= 0) { | ||
Line 143: | Line 119: | ||
return true; | return true; | ||
} | } | ||
+ | |||
+ | // this page is not a special case, let's sort it! | ||
else { | else { | ||
return false; | return false; | ||
} | } | ||
+ | |||
} | } | ||
+ | |||
Revision as of 19:11, 24 November 2016
Sitemap
iGEM is a multifaceted competition with many different components. Our websites have a lot of information, from requirements of the competition to tips on how make fundraising easier. This page is here to help you navigate our site and make sure you have access to all of its content.