m (Protected "Sitemap" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
|||
(184 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{Mobile}} | ||
<html> | <html> | ||
Line 5: | Line 6: | ||
.HQ_info { display:none;} | .HQ_info { display:none;} | ||
− | #HQ_page .threeColumns .hub_link { width:100%; background-color: #5ba88a; padding:5px; height:30px; color:white; -o-transition:.2s; -ms-transition:.2s; -moz-transition:.2s; -webkit-transition:.2s; | + | #HQ_page .threeColumns .hub_link { width:100%; background-color: #5ba88a; padding:5px; height:30px; color:white; -o-transition:.2s; -ms-transition:.2s; -moz-transition:.2s; -webkit-transition:.2s; transition:.2s; } |
− | transition:.2s; } | + | |
#HQ_page .threeColumns .hub_link:hover { background-color: white; color:#5ba88a;} | #HQ_page .threeColumns .hub_link:hover { background-color: white; color:#5ba88a;} | ||
− | |||
− | |||
− | |||
− | #HQ_page .threeColumns .turquoise_link a:hover { color: #93c9b2; } | + | #HQ_page .threeColumns .turquoise_link a, #HQ_page .twoColumns .turquoise_link a , #HQ_page .oneColumn .turquoise_link a { color: #5ba88a; } |
− | #HQ_page .oneColumn .turquoise_link a: | + | #HQ_page .threeColumns .turquoise_link a:hover, #HQ_page .twoColumns .turquoise_link a:hover , #HQ_page .oneColumn .turquoise_link a:hover { color: #93c9b2; } |
+ | #HQ_page .threeColumns .turquoise_link a:visited, #HQ_page .twoColumns .turquoise_link a:visited, #HQ_page .oneColumn .turquoise_link a:visited { color: #656b68; } | ||
− | #HQ_page .threeColumns .turquoise_link a:visited | + | #HQ_page .threeColumns .turquoise_link a:visited:hover , #HQ_page .twoColumns .turquoise_link a:visited:hover , #HQ_page .oneColumn .turquoise_link a:visited:hover { color: #8f9995; } |
− | #HQ_page . | + | |
− | + | ||
− | #HQ_page .oneColumn .turquoise_link a:visited:hover | + | |
− | |||
+ | #HQ_page .threeColumns ol {margin-left:20px;} | ||
− | |||
+ | .bucket_wrapper {border:1px solid #d3d3d3;padding: 10px 15px; border-radius:3px; } | ||
.list_view {display:none;} | .list_view {display:none;} | ||
− | |||
.bucket_view {display:none;} | .bucket_view {display:none;} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | .collapse_control {cursor:pointer; font-weight:bold; font-size:16px; padding-bottom:5px; color: #4e606e; text-align:center;} | ||
+ | .collapse_icon { float: right; margin-right: -20px; margin-top: -25px; border: 2px solid white; border-radius: 50%; height: 20px;width: 25px;color:white; text-align: center;padding: 10px 5px 5px 5px; } | ||
+ | .collapse_content { padding-top:5px; border-top: 1px solid #f2f2f2; } | ||
+ | .triangle_hide { padding:10px 4px 5px 6px; border: 2px solid #e9232f; background-color:#e9232f; } | ||
+ | .triangle_hide:hover { border: 2px solid #e9232f; background-color: white; color: #e9232f;} | ||
.triangle_hide:after { content: "▶"; } | .triangle_hide:after { content: "▶"; } | ||
− | .triangle_show | + | .triangle_show { border: 2px solid #5ba88a; background-color: #5ba88a;} |
− | + | .triangle_show:hover { border: 2px solid #5ba88a; background-color: white; color: #5ba88a;} | |
− | + | ||
− | color: #5ba88a; | + | |
− | } | + | |
− | + | ||
− | .triangle_show { | + | |
− | + | ||
− | + | ||
− | } | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
.triangle_show:after { content: "▼"; } | .triangle_show:after { content: "▼"; } | ||
− | |||
.display_style_button{ font-size: 12px; } | .display_style_button{ font-size: 12px; } | ||
.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.selected {background-color:#3b99fc; color: white;} | ||
+ | .display_control_wrapper { margin: auto; } | ||
+ | |||
+ | |||
+ | .center_text {text-align: center;} | ||
+ | .hide_content{ display:none;} | ||
+ | |||
+ | .selected_icon {background-color: blue; color: white; } | ||
+ | .selected_icon:after { content: "✓"; } | ||
</style> | </style> | ||
<div class="oneColumn" > | <div class="oneColumn" > | ||
− | <p> iGEM is a multifaceted competition with many different components. Our websites have a lot of information, from requirements of the competition to tips | + | <p> 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. </p> |
+ | </div> | ||
+ | |||
+ | <div class="threeColumns "></div> | ||
+ | <div class="threeColumns "> | ||
+ | <center> <h5> View mode </h5> | ||
+ | |||
<div class="display_control" id="display_as_list"> | <div class="display_control" id="display_as_list"> | ||
Line 92: | Line 69: | ||
</div> | </div> | ||
− | <div class="display_control" id="display_as_bucket"> | + | <div class="display_control" id="display_as_bucket"> |
− | + | MENU | |
+ | </div> | ||
+ | </center> | ||
</div> | </div> | ||
+ | |||
+ | |||
+ | |||
+ | <div class="threeColumns "> | ||
</div> | </div> | ||
+ | |||
+ | |||
+ | |||
<div class="oneColumn list_view" id="list_view"> | <div class="oneColumn list_view" id="list_view"> | ||
− | |||
− | |||
− | </ol> | + | <h3> List view </h3> |
− | + | <p>Complete list of the pages in our wiki ordered alphabetically. </p> | |
+ | <br><br> | ||
+ | |||
+ | <div class="bucket_wrapper" > | ||
+ | <div class="collapse_control" > <div class="collapse_icon triangle_show"></div> All Pages </div> | ||
+ | <div class="collapse_content" > | ||
+ | <ol id="main_container" > | ||
+ | |||
+ | </ol> | ||
+ | </div> | ||
+ | |||
+ | </div> | ||
</div> | </div> | ||
Line 121: | Line 116: | ||
<div class="collapse_content" > | <div class="collapse_content" > | ||
− | <p> <i> Information about the iGEM competition, our organization as well as dedicated pages for our 2016 sponsors. </i> </p> | + | <!-- <p> <i> Information about the iGEM competition, our organization as well as dedicated pages for our 2016 sponsors. </i> </p>--> |
<div id="About_Hub"></div> | <div id="About_Hub"></div> | ||
Line 290: | Line 285: | ||
− | <div class="twoColumns "> | + | <div class="twoColumns HQ_info"> |
<div class="bucket_wrapper"> | <div class="bucket_wrapper"> | ||
<div class="collapse_control" > <div class="collapse_icon triangle_show"></div> Not sorted </div> | <div class="collapse_control" > <div class="collapse_icon triangle_show"></div> Not sorted </div> | ||
Line 296: | Line 291: | ||
<div class="collapse_content" > | <div class="collapse_content" > | ||
− | < | + | <ol class='turquoise_link' id="not_sorted"></ul> |
</div> | </div> | ||
Line 306: | Line 301: | ||
− | <div class="twoColumns "> | + | <div class="twoColumns HQ_info"> |
<div class="bucket_wrapper"> | <div class="bucket_wrapper"> | ||
<div class="collapse_control" > <div class="collapse_icon triangle_show"></div> HQ pages and Dev </div> | <div class="collapse_control" > <div class="collapse_icon triangle_show"></div> HQ pages and Dev </div> | ||
Line 312: | Line 307: | ||
<div class="collapse_content" > | <div class="collapse_content" > | ||
− | <ol id="HQ_Hub"></ol> | + | <ol class='turquoise_link' id="HQ_Hub"></ol> |
</div> | </div> | ||
Line 321: | Line 316: | ||
− | <div class="twoColumns "> | + | <div class="twoColumns HQ_info"> |
<div class="bucket_wrapper"> | <div class="bucket_wrapper"> | ||
<div class="collapse_control" > <div class="collapse_icon triangle_show"></div> Redirect </div> | <div class="collapse_control" > <div class="collapse_icon triangle_show"></div> Redirect </div> | ||
Line 327: | Line 322: | ||
<div class="collapse_content" > | <div class="collapse_content" > | ||
− | < | + | <ol class='turquoise_link' id="redirect" ></ol> |
</div> | </div> | ||
Line 361: | Line 356: | ||
$(document).ready(function() { | $(document).ready(function() { | ||
− | |||
+ | |||
+ | load_page_list ( ); | ||
+ | |||
+ | $(".list_view").delay( 500 ).fadeIn('slow'); | ||
+ | $("#display_as_list").addClass("selected"); | ||
$(".collapse_control").click(function() { | $(".collapse_control").click(function() { | ||
Line 376: | Line 375: | ||
}); | }); | ||
+ | |||
+ | |||
+ | |||
$("#display_as_list").click(function() { | $("#display_as_list").click(function() { | ||
− | $(this). | + | $(this).addClass("selected"); |
+ | $("#display_as_bucket").removeClass("selected"); | ||
+ | $(".list_view").fadeIn('slow'); | ||
$(".bucket_view").hide(); | $(".bucket_view").hide(); | ||
Line 385: | Line 389: | ||
$("#display_as_bucket").click(function() { | $("#display_as_bucket").click(function() { | ||
− | $(this). | + | $(this).addClass("selected"); |
+ | $("#display_as_list").removeClass("selected"); | ||
+ | $(".bucket_view").fadeIn('slow'); | ||
$(".list_view").hide(); | $(".list_view").hide(); | ||
}); | }); | ||
− | |||
}); | }); | ||
Line 401: | Line 406: | ||
$('ul.mw-allpages-chunk li').each(function () { | $('ul.mw-allpages-chunk li').each(function () { | ||
− | + | sort_pages( $(this).text(), $(this).html() ); //sort each page | |
− | sort_pages( $(this).text(), $(this).html() ); | + | |
− | + | ||
}); | }); | ||
− | |||
// Wiki counters | // Wiki counters | ||
$(".total_number_of_pages").html( $( 'ul.mw-allpages-chunk li').length ); | $(".total_number_of_pages").html( $( 'ul.mw-allpages-chunk li').length ); | ||
− | $(".total_number_of_our_wiki_pages").html( | + | $(".total_number_of_our_wiki_pages").html( $( 'ul.mw-allpages-chunk li').length - ( $("#HQ_Hub").children().length + $("#redirect").children().length + $("#not_sorted").children().length) ); |
$(".total_number_of_hq_pages").html( $("#HQ_Hub").children().length ); | $(".total_number_of_hq_pages").html( $("#HQ_Hub").children().length ); | ||
Line 428: | Line 430: | ||
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 | ||
+ | |||
− | 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 461: | Line 464: | ||
// is it a HQ page or a dev page ? | // is it a HQ page or a dev page ? | ||
if( page_name.substring(0, 2 ) == "HQ" || page_name.substring(0, page_name.indexOf("/") ) == "Dev" ) { | if( page_name.substring(0, 2 ) == "HQ" || page_name.substring(0, page_name.indexOf("/") ) == "Dev" ) { | ||
− | $("#HQ_Hub").append("<li><a href='/"+page_name+"'>"+page_name +"</a> </li>"); | + | $("#HQ_Hub").append("<li ><a href='/"+page_name+"'>"+page_name +"</a> </li>"); |
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) { | ||
− | $("#redirect").append("<li>"+ page_link+"</li>" ); | + | $("#redirect").append("<li >"+ page_link+"</li>" ); |
return true; | return true; | ||
} | } | ||
Line 483: | 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 491: | 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 515: | 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 542: | Line 591: | ||
} | } | ||
+ | |||
+ | |||
Line 550: | Line 601: | ||
case "Sifuentes anita": | case "Sifuentes anita": | ||
case "Vinoo": | case "Vinoo": | ||
+ | case "THaddock": | ||
case "Meagan": | case "Meagan": | ||
− | $(".HQ_info"). | + | $(".HQ_info").delay( 800 ).fadeIn('slow'); |
break; | break; | ||
Line 557: | 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