Difference between revisions of "Dev/Sitemap"

Line 22: Line 22:
 
$(document).ready(function() {
 
$(document).ready(function() {
  
load_page_list ( );
 
  
});
+
//load the list of pages from the wiki special pages
  
 +
$("#all_pages").load( "https://2017.igem.org/Special:AllPages .mw-allpages-chunk", function() {
  
 +
$('ul.mw-allpages-chunk li').each(function () {
 +
 +
//sort each page
 +
alert( $(this).text(),  $(this).html() );
 +
sort_pages( $(this).text(),  $(this).html() ); 
 +
 +
});
 +
 +
 +
});
  
  
function load_page_list () {
 
 
$("#all_pages").load( "https://2017.igem.org/Special:AllPages .mw-allpages-chunk", function() {
 
  
$('ul.mw-allpages-chunk li').each(function () {
 
sort_pages( $(this).text(),  $(this).html() );  //sort each page
 
});
 
  
});
 
  
  

Revision as of 19:40, 23 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.