Difference between revisions of "Dev/Sitemap"

Line 65: Line 65:
  
 
$('ul.mw-allpages-chunk li').each(function () {
 
$('ul.mw-allpages-chunk li').each(function () {
 
 
//sort each page  
 
//sort each page  
 
console.log( $(this).text(),  $(this).html() );
 
console.log( $(this).text(),  $(this).html() );
sort_pages( $(this).text(),  $(this).html() );   
+
sort_pages( $(this).text(),  $(this).html() );   
 
+
 
});
 
});
  
 +
});
  
});
 
 
});
 
});
  
Line 161: Line 159:
 
var clean_name = page_name.replace( /\//g , "-");
 
var clean_name = page_name.replace( /\//g , "-");
 
var no_underscores_name = page_name.replace( /_/g , " ");
 
var no_underscores_name = page_name.replace( /_/g , " ");
 
 
 
 
// for bucket
 
$("#"+page_name.substring(0, page_name.indexOf("/") ) ).append("<li><a href='"+page_name+"'> "+no_underscores_name.substring( page_name.indexOf("/")+1, page_name.length )+"</a>  <ul id='"+clean_name+"'>  </ul></li>");
 
  
  

Revision as of 19:58, 24 November 2016

MENU

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.