m (Protected "Sitemap" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
|||
(86 intermediate revisions by one other user not shown) | |||
Line 42: | Line 42: | ||
.display_style_button.selected { font-size: 16px; } | .display_style_button.selected { font-size: 16px; } | ||
− | .display_control { float:left; width: | + | .display_control { float:left; width:128px; height:20px; padding:5px; text-align:center; margin: 0px 5px; font-weight:bold; cursor:pointer; background-color: #f2f2f2; color:#d3d3d3; border-radius: 7px;} |
.display_control:hover { background-color: #e8edaa;} | .display_control:hover { background-color: #e8edaa;} | ||
− | .display_control.selected {background-color: | + | .display_control.selected {background-color:#3b99fc; color: white;} |
.display_control_wrapper { margin: auto; } | .display_control_wrapper { margin: auto; } | ||
Line 62: | Line 62: | ||
<div class="threeColumns "></div> | <div class="threeColumns "></div> | ||
<div class="threeColumns "> | <div class="threeColumns "> | ||
− | <center> <h5> View mode </h5> | + | <center> <h5> View mode </h5> |
+ | |||
− | |||
<div class="display_control" id="display_as_list"> | <div class="display_control" id="display_as_list"> | ||
LIST | LIST | ||
Line 72: | Line 72: | ||
MENU | MENU | ||
</div> | </div> | ||
− | + | </center> | |
− | </ | + | |
</div> | </div> | ||
+ | |||
Line 356: | Line 356: | ||
$(document).ready(function() { | $(document).ready(function() { | ||
− | |||
+ | load_page_list ( ); | ||
$(".list_view").delay( 500 ).fadeIn('slow'); | $(".list_view").delay( 500 ).fadeIn('slow'); | ||
Line 395: | Line 395: | ||
}); | }); | ||
− | |||
− | |||
}); | }); | ||
Line 408: | Line 406: | ||
$('ul.mw-allpages-chunk li').each(function () { | $('ul.mw-allpages-chunk li').each(function () { | ||
− | sort_pages( $(this).text(), $(this).html() ); | + | sort_pages( $(this).text(), $(this).html() ); //sort each page |
}); | }); | ||
Line 434: | Line 432: | ||
− | page_name = page_name.replace(/ /g,"_").replace(/:/g, "_"); // clean string from empty spaces | + | page_name = page_name.replace(/ /g,"_").replace(/:/g, "_"); // clean string from empty spaces |
− | switch ( (page_name.match( /\//g ) || []).length ) { // check how many "tiers" the page name has in order to nest it | + | switch ( (page_name.match( /\//g ) || []).length ) { // check how many "tiers" ( / ) the page name has in order to nest it |
case 0: // this might be a hub or an unassigned page | case 0: // this might be a hub or an unassigned page | ||
Line 469: | Line 467: | ||
return true; | return true; | ||
} | } | ||
+ | |||
+ | // is this a page from a team ? | ||
+ | |||
+ | else if ( page_name.substring(0, 4 ) == "Team") { | ||
+ | |||
+ | console.log (page_name); | ||
+ | |||
+ | if ( page_name.substring(5, 12 ) == "Example" ) { | ||
+ | if ( page_name.substring(5, 13 ) != "Example2") { | ||
+ | //return false; // if it is from team example it is fine | ||
+ | |||
+ | |||
+ | var page_help = page_name.replace(/:/g, "_"); | ||
+ | |||
+ | if ( page_name == "Team:Example") { | ||
+ | $("#Team_Hub").append("<div id='"+page_name+"_wrapper'><a href='/"+page_name+"'>"+page_name+"</a> <ol class='turquoise_link' id='" +page_help+"' ></ol> </div>"); | ||
+ | $("#main_container").append("<div id='"+page_name+"_wrapper'><a href='/"+page_name+"'>"+page_name+"</a> <ol class='turquoise_link' id='main_"+page_help+"' ></ol> </div>"); | ||
+ | } | ||
+ | |||
+ | else { | ||
+ | console.log(page_name); | ||
+ | $("#"+page_help.substring(0, page_help.indexOf("/") ) ).append("<li><a href='/"+page_name+"'> "+page_name.substring( page_name.indexOf("/")+1, page_name.length )+"</a> <ul id='"+page_help+"'> </ul></li>"); | ||
+ | |||
+ | $("#main_"+page_help.substring(0, page_help.indexOf("/") ) ).append("<li><a href='/"+page_name+"'> "+page_name.substring( page_name.indexOf("/")+1, page_name.length )+"</a> <ul id='main_"+page_help+"'> </ul></li>"); | ||
+ | |||
+ | } | ||
+ | |||
+ | return true; // page sorted, done! | ||
+ | } | ||
+ | } | ||
+ | |||
+ | else { | ||
+ | return true; // this is a page from a team, ignore | ||
+ | } | ||
+ | } | ||
+ | |||
// is it a redirect? | // is it a redirect? | ||
else if( page_link.indexOf("mw-redirect") >= 0) { | else if( page_link.indexOf("mw-redirect") >= 0) { | ||
Line 488: | Line 522: | ||
function append_tier_one ( page_name ) { | function append_tier_one ( page_name ) { | ||
− | var categories_for_links = ["About", "Community", "Requirements", "Calendar", "Judging", "Safety", "Tracks", "Human_Practices", "Giant_Jamboree", "Resources | + | var categories_for_links = ["About", "Community", "Requirements", "Calendar", "Judging", "Safety", "Tracks", "Human_Practices", "Giant_Jamboree", "Resources", "Sponsors" ]; |
var was_page_placed = false; | var was_page_placed = false; | ||
var no_underscores_name = page_name.replace( /_/g , " "); | var no_underscores_name = page_name.replace( /_/g , " "); | ||
+ | |||
+ | |||
for ( i =0; i< categories_for_links.length; i++) { | for ( i =0; i< categories_for_links.length; i++) { | ||
Line 496: | Line 532: | ||
if ( page_name.substring( 0 ,categories_for_links[i].length) == categories_for_links[i] ) { | if ( page_name.substring( 0 ,categories_for_links[i].length) == categories_for_links[i] ) { | ||
− | $("#"+categories_for_links[i]+"_Hub").append("<div id='"+page_name+"_wrapper'><a href='"+page_name+"'>"+no_underscores_name+ " | + | |
+ | |||
+ | $("#"+categories_for_links[i]+"_Hub").append("<div id='"+page_name+"_wrapper'><a href='"+page_name+"'>"+no_underscores_name+"</a> <ol class='turquoise_link' id='" +page_name+"' ></ol> </div>"); | ||
$("#main_container").append("<div id='"+page_name+"_wrapper'><a href='"+page_name+"'>"+no_underscores_name+"</a> <ol class='turquoise_link' id='main_"+page_name+"' ></ol> </div>"); | $("#main_container").append("<div id='"+page_name+"_wrapper'><a href='"+page_name+"'>"+no_underscores_name+"</a> <ol class='turquoise_link' id='main_"+page_name+"' ></ol> </div>"); | ||
− | + | ||
+ | |||
+ | was_page_placed = true; | ||
+ | |||
} | } | ||
} | } | ||
− | |||
if ( was_page_placed == false ) { | if ( was_page_placed == false ) { | ||
Line 520: | Line 560: | ||
var clean_name = page_name.replace( /\//g , "-"); | var clean_name = page_name.replace( /\//g , "-"); | ||
var no_underscores_name = page_name.replace( /_/g , " "); | var no_underscores_name = page_name.replace( /_/g , " "); | ||
+ | |||
+ | |||
// for bucket | // for bucket | ||
$("#"+page_name.substring(0, page_name.indexOf("/") ) ).append("<li><a href='"+page_name+"'> "+no_underscores_name.substring( page_name.indexOf("/")+1, page_name.length )+"</a> <ul id='"+clean_name+"'> </ul></li>"); | $("#"+page_name.substring(0, page_name.indexOf("/") ) ).append("<li><a href='"+page_name+"'> "+no_underscores_name.substring( page_name.indexOf("/")+1, page_name.length )+"</a> <ul id='"+clean_name+"'> </ul></li>"); | ||
+ | |||
+ | |||
//for list | //for list | ||
Line 547: | Line 591: | ||
} | } | ||
+ | |||
+ | |||
Line 563: | Line 609: | ||
$(".HQ_info").hide(); | $(".HQ_info").hide(); | ||
break; | break; | ||
+ | |||
+ | |||
+ | |||
} | } | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
Latest revision as of 17:49, 10 June 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
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