Line 120: | Line 120: | ||
</div> | </div> | ||
− | |||
− | |||
Line 127: | Line 125: | ||
<script> | <script> | ||
+ | //these script uses "0" to replace special characters for sorting and ordering pages | ||
+ | |||
$(document).ready(function() { | $(document).ready(function() { | ||
Line 143: | Line 143: | ||
}); | }); | ||
− | + | ||
+ | //counting the total number of pages | ||
+ | |||
$("#hq_pages_count").append( ("#HQ li").length); | $("#hq_pages_count").append( ("#HQ li").length); | ||
$("#redirect_pages_count").append( ("#redirect li").length); | $("#redirect_pages_count").append( ("#redirect li").length); | ||
Line 164: | Line 166: | ||
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) { | |
− | + | load_page_list(next_page_url); | |
− | + | } | |
}); | }); | ||
Line 200: | Line 202: | ||
append_page_to = "#organized_pages"; | append_page_to = "#organized_pages"; | ||
page_sublist_id = page_sublist_id + page_name; | page_sublist_id = page_sublist_id + page_name; | ||
+ | |||
} | } | ||
append_page(append_page_to, page_name, page_name_display, page_sublist_id); | append_page(append_page_to, page_name, page_name_display, page_sublist_id); | ||
Line 286: | Line 289: | ||
} | } | ||
+ | |||
Line 292: | Line 296: | ||
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
+ | |||
function append_page (append_page_to, page_name, page_name_display, page_sublist_id ) { | function append_page (append_page_to, page_name, page_name_display, page_sublist_id ) { | ||
− | //check if append_page_to exists - if not, let's try to append it to another parent so the page is not | + | //check if append_page_to exists - if not, let's try to append it to another parent so the page is not orphaned |
var found_where_to_append = false; | var found_where_to_append = false; | ||
+ | console.log(page_name); | ||
console.log((append_page_to.match(/0/g) || []).length); | console.log((append_page_to.match(/0/g) || []).length); | ||
//if it has somewhere to be appended | //if it has somewhere to be appended | ||
if($(append_page_to).length > 0) { | if($(append_page_to).length > 0) { | ||
− | |||
found_where_to_append = true; | found_where_to_append = true; | ||
} | } | ||
Line 310: | Line 315: | ||
append_page_to = append_page_to.substring(0, append_page_to.lastIndexOf("0")); | append_page_to = append_page_to.substring(0, append_page_to.lastIndexOf("0")); | ||
− | + | consolelog(append_page_to); | |
//if it has somewhere to append | //if it has somewhere to append | ||
if($(append_page_to).length > 0) { | if($(append_page_to).length > 0) { | ||
Line 331: | Line 336: | ||
} | } | ||
− | + | ||
+ | |||
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
Line 341: | Line 347: | ||
} | } | ||
− | |||
</script> | </script> | ||
− | |||
− | |||
− |
Revision as of 19:46, 21 April 2017
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
LIST
TEAMS
HQ
This is the view for iGEM HQ
Wiki in numbers
Total pages | Wiki pages | HQ pages | Redirect pages | Not sorted | Team pages |
---|---|---|---|---|---|