Difference between revisions of "Sitemap"

Line 60: Line 60:
  
  
<div class="column full_size view_format_content" id="hq_view_content">
+
<div class="column full_size multiple_links view_format_content" id="hq_view_content">
 
<h2> HQ </h2>
 
<h2> HQ </h2>
 +
 +
 +
<ul id="HQ">
 +
</ul>
 +
 +
 
</div>
 
</div>
  
Line 76: Line 82:
 
$(document).ready(function() {
 
$(document).ready(function() {
  
 
+
// call the function to load the page list
 
load_page_list("https://2017.igem.org/Special:AllPages");
 
load_page_list("https://2017.igem.org/Special:AllPages");
  
Line 87: Line 93:
 
 
 
$(this).addClass("selected_view");
 
$(this).addClass("selected_view");
current_view_format = this.id +"_content";
 
 
$("#"+this.id+"_content").addClass("selected_content");
 
$("#"+this.id+"_content").addClass("selected_content");
 
});
 
});
  
// place total number of pages in each category
 
//$("#wiki_pages_count").html( $("#organized_pages li").size() );
 
//$("#total_pages_count").html( $("#all_pages li").size() );
 
//$("#hq_pages_count").html( $("#HQ li").size() );
 
//$("#redirect_pages_count").html( $("#redirect li").size() );
 
//$("#not_sorted_pages_count").html( $("#not_sorted li").size() );
 
  
 
});
 
});
 
 
  
  
 
  function load_page_list ( page_url ) {
 
  function load_page_list ( page_url ) {
          $.get(page_url).then(function(page_html) {
+
$.get(page_url).then(function(page_html) {
              var $link_page = $(page_html);
+
var $link_page = $(page_html);
  
              $link_page.find('.mw-allpages-chunk li').each(function () {
+
$link_page.find('.mw-allpages-chunk li').each(function () {
                  sort_pages( $(this).text(),  $(this).html() );
+
sort_pages( $(this).text(),  $(this).html() );
              });
+
});
  
              var next_page_url = $link_page.find('.mw-allpages-nav a:contains("Next page")').attr('href');
+
var next_page_url = $link_page.find('.mw-allpages-nav a:contains("Next page")').attr('href');
  
              if (next_page_url) {
+
if (next_page_url) {
                  load_page_list(next_page_url);
+
load_page_list(next_page_url);
              }
+
}
 
+
 
+
 
+
          });
+
}
+
  
 +
});
 +
}
  
  
Line 132: Line 126:
  
 
 
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 or a special case
 
 
  

Revision as of 18:47, 20 April 2017

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.

LIST
TEAMS
HQ
ALL

LIST

TEAMS

ALL