Difference between revisions of "Sitemap"

Line 334: Line 334:
  
  
 
+
load_page_list ( ) ;
switch (how_to_display) {
+
 
+
case "bucket":
+
case "list":
+
load_page_list ( how_to_display );
+
break;
+
 
+
default:
+
load_page_list ( "list" );
+
}
+
  
  
Line 367: Line 358:
  
  
function load_page_list ( how_to_display ) {
+
function load_page_list {
 
 
 
$("#complete_list_of_pages").load( "https://2016.igem.org/Special:AllPages .mw-allpages-chunk", function() {  
 
$("#complete_list_of_pages").load( "https://2016.igem.org/Special:AllPages .mw-allpages-chunk", function() {  
Line 373: Line 364:
 
$('ul.mw-allpages-chunk li').each(function () {
 
$('ul.mw-allpages-chunk li').each(function () {
  
sort_pages( $(this).text(),  $(this).html() , how_to_display);
+
sort_pages( $(this).text(),  $(this).html() );
  
 
});
 
});
Line 392: Line 383:
  
  
function sort_pages ( page_name , page_link, how_to_display ) {
+
function sort_pages ( page_name , page_link ) {
 
 
 
if ( is_it_a_special_page ( page_name, page_link ) == false ) {  // check if a page is a redirect
 
if ( is_it_a_special_page ( page_name, page_link ) == false ) {  // check if a page is a redirect
Line 403: Line 394:
 
case 0:  // this might be a hub or an unassigned page
 
case 0:  // this might be a hub or an unassigned page
 
append_tier_one_bucket ( page_name );  
 
append_tier_one_bucket ( page_name );  
// append_tier_one_list ( page_name );  
+
append_tier_one_list ( page_name );  
 
break;  
 
break;  
  

Revision as of 16:20, 7 March 2016

All Pages

Menu items

Lorem ipsum

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