Line 50: | Line 50: | ||
//load the list of pages from the wiki special pages | //load the list of pages from the wiki special pages | ||
− | $("# | + | $("#all").load( "https://2017.igem.org/Special:AllPages .mw-allpages-chunk", function() { |
$('ul.mw-allpages-chunk li').each(function () { | $('ul.mw-allpages-chunk li').each(function () { | ||
Line 72: | Line 72: | ||
− | + | page_name = page_name.replace(/ /g,"_").replace(/:/g, "_"); // clean string from empty spaces | |
Line 137: | Line 137: | ||
− | function append_tier_one ( page_name ) { | + | function append_tier_one ( page_name ) { |
− | + | ||
− | + | ||
− | + | ||
+ | var no_underscores_name = page_name.replace( /_/g , " "); | ||
+ | for ( i =0; i< categories_for_links.length; i++) { | ||
− | + | // if the page name has that specific category | |
− | + | ||
if ( page_name.substring( 0 ,categories_for_links[i].length) == categories_for_links[i] ) { | if ( page_name.substring( 0 ,categories_for_links[i].length) == categories_for_links[i] ) { | ||
− | $("#"+categories_for_links[i]+"_Hub").append("<div id='"+page_name+"_wrapper'><a href='"+page_name+"'>"+no_underscores_name+"</a> <ol | + | $("#"+categories_for_links[i]+"_Hub").append("<div id='"+page_name+"_wrapper'><a href='"+page_name+"'>"+no_underscores_name+"</a> <ol id='" +page_name+"' ></ol> </div>"); |
Revision as of 19:44, 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.