Difference between revisions of "Dev/Sitemap"

Line 436: Line 436:
 
if ( is_it_a_special_page ( page_name, page_link ) == false ) {  // check if a page is a redirect or HQ/Dev page
 
if ( is_it_a_special_page ( page_name, page_link ) == false ) {  // check if a page is a redirect or HQ/Dev page
  
if ( ( page_name.match( /\//g ) || []).length == 0 ) {    //place a root page
+
if ( ( page_name.match( /\//g ) || []).length == 0 ) {    //place as a root page
 
place_root_page (  page_name, page_link  );
 
place_root_page (  page_name, page_link  );
 
}
 
}
 
else {  //place pages under root id  
 
else {  //place pages under root id  
place_nested_pages (page_name, page_link );
+
place_nested_pages (page_name, page_name.replace( /\//g , "-").replace( / /g , "_" ) );
 
}
 
}
 
}
 
}
Line 497: Line 497:
  
 
 
function place_nested_pages (page_name, page_link ) {
+
function place_nested_pages (page_name, clean_name ) {
  
var clean_name = page_name.replace( /\//g , "-").replace( / /g , "_");
+
//var clean_name = page_name.replace( /\//g , "-").replace( / /g , "_");
 
 
 
// for bucket
 
// for bucket
  
if( $("#"+clean_name.substring(0,  clean_name.lastIndexOf("-") ) ).append("<li id='"+page_name+"'>"+page_link+" <ul id='"+clean_name+"'>  </ul></li>") == true ) { alert(here);}
+
$("#"+clean_name.substring(0,  clean_name.lastIndexOf("-") ) ).append("<li id='"+page_name+"'><a href='"+page_name +" '>"+clean_name+"</a> <ul id='"+clean_name+"'>  </ul></li>");
  
 
//for list
 
//for list
$("#main_"+clean_name.substring(0,  clean_name.lastIndexOf("-") ) ).append("<li id='"+page_name+"'>"+page_link+"<ul id='main_"+clean_name+"'>  </ul></li>");
+
// $("#main_"+clean_name.substring(0,  clean_name.lastIndexOf("-") ) ).append("<li id='"+page_name+"'>"+page_link+"<ul id='main_"+clean_name+"'>  </ul></li>");
  
 
}
 
}

Revision as of 14:40, 26 April 2016

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.

View mode
LIST
MENU
TEAMS

List view

Complete list of the pages in our wiki ordered alphabetically.



All Pages

Menu view

Pages are sorted into "buckets" or categories that mimic the menu on the right side of the page.

About
Requirements
Competition
Judging
Giant Jamboree
Resources
Teams and Community
Team Wiki Standard Pages

    HQ control pages

    This information is for HQ to keep track of the pages that are not on the menu and or that are being developed by headquarters.

    Total number of pages 2016 Wiki HQ Not sorted Redirect
    Not sorted
    HQ pages and Dev
    Redirect