Difference between revisions of "Team:UofGuelph/Team"

(Prototype team page)
 
Line 1: Line 1:
{{UofGuelph}}
 
 
<html>
 
<html>
 +
<head>
 +
<link href="https://fonts.googleapis.com/css?family=Play" rel="stylesheet">
 +
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
 +
</head>
 +
<script>
  
<div class="column two_thirds_size" >
+
// This is the jquery part of your template. 
 +
// Try not modify any of this code too much since it makes your menu work.
  
<h1>Team</h1>
+
$(document).ready(function() {
<p>In this page you can introduce your team members, instructors, and advisors. </p>
+
  
 +
$("#HQ_page").attr('id','');
  
<h3>What should this page contain?</h3>
+
// call the functions that control the menu
<ul>
+
menu_functionality();
<li> Include pictures of your teammates, don’t forget instructors and advisors! </li>
+
hide_show_menu();
<li>You can add a small biography or a few words from each team member, to tell us what you like, and what motivated you to participate in iGEM.</li>
+
 
<li>Take team pictures! Show us your school, your lab and little bit of your city.</li>
+
 
<li>Remember that image galleries can help you showcase many pictures while saving space.</li>
+
 
</ul>
+
//this function controls the expand and collapse buttons of the menu and changes the +/- symbols
</div>
+
function menu_functionality() {
 +
 
 +
//when clicking on a "menu_button", it will change the "+/-" accordingly and it will show/hide the corresponding submenu
 +
$(".menu_button").click(function(){
 +
 
 +
// add or remove the class "open" , this class holds the "-"
 +
$(this).children().toggleClass("open");
 +
// show or hide the submenu
 +
$(this).next('.submenu_wrapper').fadeToggle(400);
 +
});
 +
 
 +
// when the screen size is smaller than 800px, the display_menu_control button appears and will show/hide the whole menu
 +
$("#display_menu_control").click(function(){
 +
$('#menu_content').fadeToggle(400);
 +
});
 +
 
 +
// call the current page highlight function
 +
highlight_current_page();
 +
}
 +
 
 +
 
 +
// call the highlight current page function to show it on the menu with a different background color
 +
function highlight_current_page() {
 +
 
 +
// select a page from the menu based on the id assigned to it and the current page name and add the class "current page" to make it change background color
 +
$("#"+  wgPageName.substring(wgPageName.lastIndexOf("/")+1, wgPageName.length ) + "_page").addClass("current_page");
 +
 
 +
// now that the current_page class has been added to a menu item, make the submenu fade in
 +
$(".current_page").parents(".submenu_wrapper").fadeIn(400);
 +
// change the +/- symbol of the corresponding menu button
 +
$(".current_page").parents(".submenu_wrapper").prev().children().toggleClass("open");
 +
 +
}
 +
 
 +
 
 +
 
 +
// allow button on the black menu bar to show/hide the side menu
 +
function hide_show_menu() {
 +
 +
// in case you preview mode is selected, the menu is hidden for better visibility
 +
if (window.location.href.indexOf("submit") >= 0) {
 +
$(".igem_2018_menu_wrapper").hide();
 +
}
 +
 
 +
// if the black menu bar has been loaded
 +
  if (document.getElementById('bars_item')) {
 +
 
 +
// when the "bars_item" has been clicked
 +
$("#bars_item").click(function() {
 +
$("#sideMenu").hide();
 +
 
 +
// show/hide the menu wrapper
 +
$(".igem_2018_menu_wrapper").fadeToggle("100");
 +
});
 +
  }
 +
 
 +
// because the black menu bars loads at a different time than the rest of the page, this function is set on a time out so it can run again in case it has not been loaded yet
 +
else {
 +
    setTimeout(hide_show_menu, 15);
 +
}
 +
}
 +
 
 +
 
 +
});
 +
 
 +
 
 +
</script>
 +
 
 +
 
 +
 
 +
 
 +
 
 +
<style>
 +
 
 +
 
 +
 
 +
/***************************************************** DEFAULT WIKI SETTINGS  ****************************************************/
 +
 +
/* Clear the default wiki settings */
 +
 +
#home_logo, #sideMenu { display:none; }
 +
#sideMenu, #top_title, .patrollink  {display:none;}
 +
#content { width:100%; padding:0px;  margin-top:-7px; margin-left:0px;}
 +
body {background-color:white; }
 +
#bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5 { margin-bottom: 0px; }
 +
 
 +
.navbar {
 +
  position: fixed;
 +
  width: 100%;
 +
  }
 +
 
 +
.container {
 +
    overflow: hidden;
 +
background-image: url("https://static.igem.org/mediawiki/2017/c/c5/T--U_of_Guelph--Brown.jpg");
 +
    border-bottom: 6px solid #560B06;
 +
    font-family: Play, sans-serif;
 +
width:100%;
 +
}
 +
 
 +
.container a {
 +
    float: left;
 +
    font-size: 16px;
 +
    color: #EDD0A4;
 +
    text-align: center;
 +
    padding: 40px 20px 20px 20px;
 +
    text-decoration: none;
 +
    font-family: Play, sans-serif;
 +
}
 +
 
 +
.dropdown {
 +
    float: left;
 +
    overflow: hidden;
 +
}
 +
 
 +
.dropdown .dropbtn {
 +
    font-size: 16px;   
 +
    border: none;
 +
    outline: none;
 +
    color: #EDD0A4;
 +
    padding: 40px 20px 20px 20px;
 +
    background-color: inherit;
 +
font-family: Play, sans-serif;
 +
 
 +
}
 +
 
 +
.container a:hover, .dropdown:hover .dropbtn {
 +
    background-color: #A6795F;
 +
color: black;
 +
}
 +
 
 +
.dropdown-content {
 +
    display: none;
 +
    position: absolute;
 +
    background-color: #EDD0A4;
 +
    min-width: 160px;
 +
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
 +
    z-index: 1;
 +
}
 +
 
 +
.dropdown-content a {
 +
    float: none;
 +
    color: #2A0C01;
 +
    padding: 12px 16px;
 +
    text-decoration: none;
 +
    display: block;
 +
    text-align: left;
 +
}
 +
 
 +
.dropdown-content a:hover {
 +
    background-color: #43291C;
 +
    color: #EDD0A4;
 +
}
 +
 
 +
.dropdown:hover .dropdown-content {
 +
    display: block;
 +
}
 +
 
 +
.guelphiGEMLogo{
 +
  width: 141px;
 +
  height: 70px;
 +
  float: left;
 +
  padding-right: 20px;
 +
  padding-left: 15px;
 +
  padding-top: 3px;
 +
 
 +
}
 +
 
 +
.guelph_h1 {
 +
    display: block;
 +
    font-family:Play, sans-serif;
 +
    font-size: 3em;
 +
    font-weight: bold;
 +
    text-align: center;
 +
    border-style: hidden;
 +
    padding-top:0.7em;
 +
    padding-bottom: 0.5em;
 +
  border-top-style: solid;
 +
  border-top-width: 8px;
 +
  border-top-color: #560B06;
 +
}
 +
 
 +
.guelph_p{
 +
  font-family:Roboto, sans-serif;
 +
  font-size: 1.5em;
 +
  text-align: center;
 +
  padding-left: 3.5em;
 +
  padding-right:3.5em;
 +
  padding-bottom: 2em;
 +
  margin-bottom: 0;
 +
  border-bottom-style: solid;
 +
  border-bottom-width: 8px;
 +
  border-bottom-color: #A66314;
 +
}
 +
 
 +
.footerlogo {
 +
  width:40px;
 +
  heigh: 40px;
 +
  position: relative;
 +
  float: center;
 +
  text-decoration: none;
 +
padding-top: 15px;
 +
margin-top: 0;
 +
border-style: none;
 +
}
 +
 
 +
.footertext{
 +
  font-family:Roboto, sans-serif;
 +
  font-size: 1em;
 +
  text-align: center;
 +
  padding-bottom: 1em;
 +
  color: #FFE7CC;
 +
margin-top: 0px;
 +
}
 +
 
 +
.guelphImages{
 +
  width:100%;
 +
  height:400px;
 +
 
 +
}
 +
 
 +
</style>
 +
<body>
 +
<div class="navbar">
 +
<div class="container">
 +
 
 +
<img src="https://static.igem.org/mediawiki/2018/f/fc/T--UofGuelph--2018_Logo_small.png" class="guelphiGEMLogo">
 +
 
 +
<a href="https://2018.igem.org/Team:UofGuelph" >Home</a>
  
 +
<div class="dropdown">
 +
    <button class="dropbtn">Team</button>
 +
    <div class="dropdown-content">
 +
      <a href="https://2018.igem.org/Team:UofGuelph/Team">Team</a>
 +
      <a href="https://2018.igem.org/Team:UofGuelph/Collaborations">
 +
  Collaborations</a>
 +
    </div>
 +
  </div>
  
 +
<div class="dropdown">
 +
    <button class="dropbtn">Project</button>
 +
    <div class="dropdown-content">
 +
      <a href="https://2018.igem.org/Team:UofGuelph/Description">Description</a>
 +
      <a href="https://2018.igem.org/Team:UofGuelph/Design">
 +
  Design</a>
 +
  <a href="https://2018.igem.org/Team:UofGuelph/Experiments">Experiments</a>
 +
  <a href="https://2018.igem.org/Team:UofGuelph/Notebook">Notebook</a>
 +
  <a href="https://2018.igem.org/Team:UofGuelph/Results">Results</a>
 +
  <a href="https://2018.igem.org/Team:UofGuelph/Attributions">Attributions</a>
 +
    </div>
 +
  </div>
 +
 
 +
  <a href="https://igem.org/2018_Judging_Form?team=UofGuelph">Judging Form</a>
  
<div class="column third_size" >
 
<div class="highlight decoration_A_full">
 
<h3>Inspiration</h3>
 
<p>You can look at what other teams did to get some inspiration! <br />
 
Here are a few examples:</p>
 
<ul>
 
<li><a href="https://2014.igem.org/Team:METU_Turkey_team">2014 METU Turkey </a></li>
 
<li><a href="https://2014.igem.org/Team:Colombia/Members">2014 Colombia</a></li>
 
<li><a href="https://2014.igem.org/Team:Stony_Brook/Team">2014 Stony Brook</a></li>
 
<li><a href="https://2014.igem.org/Team:OUC-China/Team">2014 OUC-China</a></li>
 
</ul>
 
 
</div>
 
</div>
 
</div>
 
</div>
 +
</body>
 
</html>
 
</html>

Revision as of 00:24, 17 October 2018