Difference between revisions of "Template:UFlorida"

Line 1: Line 1:
 +
 
<html>
 
<html>
  
 
<head>
 
<head>
 +
 +
 +
 +
  <!-- External scripts -->
 
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,600'
 
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,600'
 
  rel='stylesheet' type='text/css'>
 
  rel='stylesheet' type='text/css'>
Line 9: Line 14:
 
   <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
 
   <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
  
 +
  <!-- Functionallity and behaviour JS -->
 +
  <script>
  
<script>
+
    $(document).ready(function(){
  
// This is the jquery part of your template.
+
      //Loading screen functionallity
// Try not modify any of this code too much since it makes your menu work.
+
      $('.loading').animate(
 +
          {opacity:0},
 +
          500,
 +
          function(){
 +
            $('.loading').attr("style", "display:none");
 +
          }
 +
      );
  
$(document).ready(function() {
+
      //Height responsiveness
 +
      $(window).resize(function() {
 +
          wheight = $(window).height();
 +
          $('.container').attr("style","height:"+(wheight)+"px;background-size:cover;");
 +
          $('.team-member-container').attr("style","height:"+wheight/2.7+"px;");
 +
      });
  
$("#HQ_page").attr('id','');
+
      $(window).trigger('resize');
  
// call the functions that control the menu  
+
      //Menu moveto container on item click functionallity
menu_functionality();  
+
      $('.menu-item').on('click', function(){
hide_show_menu();
+
          $('.menu-item').removeClass('subselected');
 +
          $(this).addClass('subselected');
 +
          if($(this).attr("data")=="#top"){
 +
              $('html, body').animate({
 +
                  scrollTop: 0
 +
              }, 1000);
 +
          }else{
 +
              $('html, body').animate({
 +
                  scrollTop: $($(this).attr("data")).offset().top-70
 +
              }, 1000);
 +
          }
 +
      });
  
 +
      //Hover of team members
 +
      $('.team-member-container').on('mouseenter', function(){
 +
        $(this).children('.team-member-photo').attr("style", "background-image:url('"+$(this).attr("hover")+"');");
 +
        $(this).on('mouseleave', function(){
 +
          $(this).children('.team-member-photo').attr('style', "background-image:url('"+$(this).attr("data")+"');");
 +
        });
 +
      });
  
 +
    });
 +
   
 +
  </script>
  
//this function controls the expand and collapse buttons of the menu and changes the +/- symbols
+
  <style>
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 "-"
+
#sideMenu, #top_title {display:none;}
$(this).children().toggleClass("open");
+
#content { padding:0px; width:90%; margin-top:-7px; margin-left:5%;, margin-right: 5%}
// show or hide the submenu
+
body {background-color:white; }
$(this).next('.submenu_wrapper').fadeToggle(400);
+
#bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5 { margin-bottom: 0px; }
});
+
  
// 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
+
    body,
highlight_current_page();
+
    html{
}
+
      margin: 0;
 +
      padding:0;
 +
      font-family: font-family: 'Yanone Kaffeesatz', sans-serif;
 +
    }
  
 +
    /* REMOVE UNWANTED ELEMENTS AND STYLE OTHERS */
 +
    .firstHeading{
 +
      display:none;
 +
    }
 +
    #top-section{
 +
      background:#48af5d;
 +
      margin-left:0 !important;
 +
      width:100%;
 +
      left:0;
 +
    }
  
// 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
+
    /* LOADING SCREEN */
$("#"+  wgPageName.substring(wgPageName.lastIndexOf("/")+1, wgPageName.length ) + "_page").addClass("current_page");
+
    .loading{
 +
      position:fixed;
 +
      width:100%;
 +
      height:100%;
 +
      top:0;
 +
      left:0;
  
// now that the current_page class has been added to a menu item, make the submenu fade in
+
      z-index:5;
$(".current_page").parents(".submenu_wrapper").fadeIn(400);
+
// change the +/- symbol of the corresponding menu button
+
$(".current_page").parents(".submenu_wrapper").prev().children().toggleClass("open");
+
+
}
+
  
 +
      background-color:#555;
 +
      color:#fff;
 +
      text-align: center;
 +
    }
 +
    .loading p{
 +
      position: relative;
 +
      width:100%;
 +
      height:10%;
 +
      top:45%;
 +
      left:0;
 +
    }
  
 +
    /* MENU STYLING */
 +
    .menu{
 +
      position:fixed;
 +
      width:100%;
 +
      height:56px;
 +
      top:14px;
 +
      background-color: #47a3da;
  
// allow button on the black menu bar to show/hide the side menu
+
      z-index:4;
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_2017_menu_wrapper").hide();
+
}
+
  
// if the black menu bar has been loaded
+
      border-collapse: collapse;
  if (document.getElementById('bars_item')) {
+
      text-align:center;
 +
    }
 +
    .menu tr td{
 +
      text-align: center;
 +
      vertical-align: middle;
  
// when the "bars_item" has been clicked
+
      font-weight: 700;
$("#bars_item").click(function() {
+
      font-size:16px;
$("#sideMenu").hide();
+
      color:#fff;
 +
      width:7%;
 +
    }
 +
    .menu tr td.menu-item:hover{
 +
      background-color:#258ecd;
 +
      cursor: pointer;
 +
    }
 +
    .subselected{
 +
      background-color: #258ecd;
 +
    }
  
// show/hide the menu wrapper
+
    /* CONTAINERS STYLING */
$(".igem_2017_menu_wrapper").fadeToggle("100");
+
    .container{
});
+
      position:relative;
  }  
+
      width:100%;
 +
      top:50px;
 +
    }
 +
    .container .subcontainer{
 +
      position:absolute;
 +
      width:95%;
 +
      height:90%;
 +
      top:5%;
 +
      left:2.5%;
 +
    }
 +
    #top{
 +
      background-size: cover;
 +
   
 +
      overflow:hidden;
 +
    }
  
// 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
+
    /* TEAM MEMBERS CARDS STYLING */
else {
+
    .team-member-container{
    setTimeout(hide_show_menu, 15);
+
      position:relative;
}
+
      width:14%;
}
+
      margin-left:2.28%;
  
 +
      float:left;
 +
    }
 +
    .team-member-container:hover{
 +
      cursor:pointer;
 +
    }
 +
    .row2{
 +
      top:4%;
 +
    }
 +
    .team-member-container .team-member-photo{
 +
      position:relative;
 +
      width:100%;
 +
      height:85%;
 +
      top:0;
 +
      left:0;
 +
      background-size: cover;
 +
    }
 +
    .team-member-container .team-member-footer{
 +
      position:relative;
 +
      width:100%;
 +
      height:15%;
 +
      top:0;
 +
      left:0;
  
});
+
      border:none;
 +
      border-collapse: collapse;
 +
      background-color: #47a3da;
 +
      color:#fff;
  
 +
      text-align: center;
 +
      vertical-align: middle;
 +
    }
  
</script>
+
body {
 +
    padding-top: 110px;
 +
}
  
 +
.center-block {
 +
  display: block;
 +
  margin-left: auto;
 +
  margin-right: auto;
 +
}
  
  
 +
.navbar-fixed-top {
 +
background: #fff;
 +
filter: none !important;
 +
box-shadow: 0 2px 15px rgba(0,0,0,0.25);
 +
-moz-box-shadow: 0 2px 15px rgba(0,0,0,0.25);
 +
-webkit-box-shadow: 0 2px 15px rgba(0,0,0,0.25);
 +
        border-bottom: 1px solid rgba(0,0,0,0.2);
  
 +
}
  
<style>
 
  
 +
.dropdown-submenu {
 +
    position: relative;
 +
}
  
 +
.dropdown-submenu>.dropdown-menu {
 +
    top: 0;
 +
    left: 100%;
 +
    margin-top: -6px;
 +
    margin-left: -1px;
 +
    -webkit-border-radius: 0 6px 6px 6px;
 +
    -moz-border-radius: 0 6px 6px;
 +
    border-radius: 0 6px 6px 6px;
 +
}
  
/***************************************************** DEFAULT WIKI SETTINGS  ****************************************************/
+
.dropdown-submenu:hover>.dropdown-menu {
+
    display: block;
/* 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; }
+
  
+
.dropdown-submenu>a:after {
+
    display: block;
+
    content: " ";
/**************************************************************** MENU ***************************************************************/
+
    float: right;
/* Wrapper for the menu */
+
    width: 0;
.igem_2017_menu_wrapper {  
+
    height: 0;
width: 15%;  
+
    border-color: transparent;
height:100vh;  
+
    border-style: solid;
position:fixed;
+
    border-width: 5px 0 5px 5px;
right:0%;
+
    border-left-color: #ccc;
padding:0px;
+
    margin-top: 5px;
float:right;  
+
    margin-right: -10px;
border-left: 1px solid #d3d3d3;  
+
}
background-color:#dddddd;  
+
text-align:left;
+
font-family:Tahoma, Geneva, sans-serif;  
+
overflow-y: auto;
+
overflow-x: hidden;
+
}
+
  
/* this hides the scrollbar to keep view consistency */
+
.dropdown-submenu:hover>a:after {
.igem_2017_menu_wrappe::-webkit-scrollbar {
+
    border-left-color: #fff;
display: none;
+
}
}
+
+
+
/* styling for links in the menu, removes the line under text */
+
.igem_2017_menu_wrapper a {
+
text-decoration: none;  
+
}
+
  
 +
.dropdown-submenu.pull-left {
 +
    float: none;
 +
}
  
/* styling for the images in the menu */
+
.dropdown-submenu.pull-left>.dropdown-menu {
.igem_2017_menu_wrapper img {  
+
    left: -100%;
width: 100%;
+
    margin-left: 10px;
}
+
    -webkit-border-radius: 6px 0 6px 6px;
 +
    -moz-border-radius: 6px 0 6px 6px;
 +
    border-radius: 6px 0 6px 6px;
  
/* styling for the menu buttons */
 
.igem_2017_menu_wrapper .menu_button {
 
width: 100%;
 
padding: 10px 0px 10px 15px;
 
float:left;
 
border-bottom: 1px solid #d3d3d3;
 
font-size: 12px;
 
font-weight: bold;
 
color: #5e5f5f;
 
cursor: pointer;
 
}
 
  
  
.igem_2017_menu_wrapper .menu_bottom_padding {  
+
.faceBot{
width: 100%;
+
  background: #202020;
height: 30px;
+
}
float:left;
+
}
+
  
.menu_button.direct_to_page {  
+
@font-face {
padding-left: 36px;
+
  font-family: 'Open Sans', Arial;;
}
+
}
  
 +
body
 +
{
 +
    font-family: 'Open Sans', Arial;
 +
}
  
.igem_2017_menu_wrapper .menu_button .expand_collapse_icon {
+
ul.nav a{
width:10%;
+
  color: gray;
float:left;
+
  background-color: transparent;
}
+
  height: 100%;
 +
  position: relative;
 +
}
  
.igem_2017_menu_wrapper .menu_button .expand_collapse_icon::before {
+
ul.nav a:hover{
content: "+";
+
  color: gray;
}
+
  background-color: transparent;
+
  height: 100%;
.open::before {
+
  position: relative;
content: "-" !important; 
+
}
}
+
+
+
+
/* styling for the menu buttons on hover */
+
.igem_2017_menu_wrapper .menu_button:hover, .igem_2017_menu_wrapper .submenu_button:hover ,  .submenu_button.current_page:hover {
+
background-color: #3399ff;
+
text-decoration: none;
+
color:#ffffff;  
+
}
+
  
/* styling for the menu button when it is the current page */
+
h2 {
.current_page {  
+
  color:green;
background-color:#7fc1f7  !important;
+
}
color:#5e5f5f !important;
+
}
+
  
 +
h4 {
 +
    font-weight: bold;
 +
}
  
/* styling for the submenu buttons */
+
.menu-item{
.igem_2017_menu_wrapper .submenu_button {  
+
  height: 75px;
width: 100%;
+
}
padding: 10px 0px 10px 34px;
+
float:left;
+
background-color:#f2f2f2;
+
border-bottom: 1px solid #d3d3d3;
+
font-size: 12px;
+
color: #5e5f5f;
+
cursor: pointer;
+
}
+
  
/* wrapper for the submenu items, they are hidden by default*/
+
li.menu-item{
.igem_2017_menu_wrapper .submenu_wrapper {  
+
  background: transparent !important;
display:none;
+
}
}
+
  
/* when the page size is bigger than 800px, this show/hide control is hidden by default */
 
.igem_2017_menu_wrapper #display_menu_control {
 
display:none;
 
text-align:center;
 
}
 
 
  
/***************************************************** CONTENT OF THE PAGE ****************************************************/
 
  
/* Wrapper for the content */
+
.green-effect{
.igem_2017_content_wrapper {
+
  display: none;
width: 81%;
+
  background-color: #4AAF51;
margin: 2%;
+
  opacity: 1;
display:block;
+
  color: #FFF;
float:left;  
+
  transition-property: all;
background-color:white;  
+
  transition-duration: 0.3s;
font-family:Tahoma, Geneva, sans-serif;  
+
  transition-timing-function: ease-out;
}
+
  transition-delay: 0s;
 +
  border-color: #288D30;
 +
  position: absolute;
 +
  bottom: 0px;
 +
  width: 100%;
 +
  height: 2px;
 +
  right: 0px;
 +
}
  
 +
.logo {
 +
margin-top: 100px;
  
/********************************* HTML STYLING  *********************************/
+
}
  
/* styling for the titles h1 h2 */
+
a:hover .green-effect{
.igem_2017_content_wrapper h1, .igem_2017_content_wrapper h2 {
+
  display: inherit;
padding:5px 15px;
+
}
border-bottom: 0px;
+
color: #3399ff;
+
}
+
  
 +
.invertir:hover {
 +
  -webkit-filter: invert(100%);
 +
}
  
/* styling for the titles  h3 h4 h5 h6*/
+
dropdown-toggle {
.igem_2017_content_wrapper h3, .igem_2017_content_wrapper h4, .igem_2017_content_wrapper h5, .igem_2017_content_wrapper h6 {  
+
width: 10%;
padding:5px 15px;  
+
border-bottom:0px;
+
color: #000000; 
+
}
+
  
  
/* font and text */
+
 
.igem_2017_content_wrapper p {
+
}
padding: 0px 15px;
+
font-size: 13px;
+
}
+
  
/* Links */
 
.igem_2017_content_wrapper a {
 
font-weight: bold;
 
text-decoration: underline;
 
text-decoration-color: #3399ff;
 
color:  #3399ff;
 
-webkit-transition: all 0.4s ease;
 
-moz-transition: all 0.4s ease;
 
-ms-transition: all 0.4s ease;
 
-o-transition: all 0.4s ease;
 
transition: all 0.4s ease;
 
}
 
  
/* hover for the links */
 
.igem_2017_content_wrapper a:hover {
 
text-decoration:none;
 
color:#000000;
 
}
 
 
/* non numbered lists */
 
.igem_2017_content_wrapper ul {
 
padding:0px 20px;
 
font-size: 13px;
 
font-family:Tahoma, Geneva, sans-serif;
 
}
 
 
/* numbered lists */
 
.igem_2017_content_wrapper ol {
 
padding:0px;
 
font-size: 13px;
 
font-family:Tahoma, Geneva, sans-serif;
 
}
 
 
/* Table */
 
.igem_2017_content_wrapper table {
 
width: 97%;
 
margin:15px 10px;
 
border: 1px solid #d3d3d3;
 
border-collapse: collapse;
 
}
 
 
/* table cells */
 
.igem_2017_content_wrapper  td {
 
padding: 10px;
 
vertical-align: text-top;
 
border: 1px solid #d3d3d3;
 
border-collapse: collapse;
 
}
 
 
/* table headers */
 
.igem_2017_content_wrapper th {
 
padding: 10px;
 
vertical-align: text-top;
 
border: 1px solid #d3d3d3;
 
border-collapse: collapse;
 
background-color:#f2f2f2;
 
}
 
 
 
/**********************************LAYOUT CLASSES **********************************/
 
 
/* general class for column divs */
 
.igem_2017_content_wrapper .column  {
 
padding: 10px 0px;
 
float:left;
 
}
 
 
/* class for a full width column */
 
.column .full_size {
 
width:100%;
 
}
 
 
/* styling for images in a full width column*/
 
.column.full_size img {
 
width:97%;
 
padding: 10px 15px;
 
}
 
 
/* class for a half width column */
 
.column.half_size {
 
width: 50%;
 
}
 
/* styling for images in a half width column*/
 
.column.half_size img {
 
width: 94.5%;
 
padding: 10px 15px;
 
}
 
 
 
 
 
/********************************* SUPPORT CLASSES ********************************/
 
 
/* class that clears content below*/
 
.igem_2017_content_wrapper .clear {
 
clear:both;
 
}
 
 
 
/* adds extra spacing when clearing content */
 
.igem_2017_content_wrapper  .clear.extra_space {
 
height: 30px;
 
}
 
 
 
/* highlight class, makes content slightly smaller */
 
.igem_2017_content_wrapper .highlight {
 
margin: 0px 15px;
 
padding: 15px 0px;
 
}
 
 
 
/* highlight class, adds a gray background */
 
.igem_2017_content_wrapper .highlight.gray {
 
background-color: #f2f2f2;
 
}
 
 
/* highlight with decoration blue line on top */
 
.igem_2017_content_wrapper .highlight.blue_top {
 
    border-top: 4px solid #3399ff;
 
}
 
 
/* highlight with a full blue border decoration */
 
.igem_2017_content_wrapper .highlight.blue_border {
 
    border: 4px solid  #3399ff;
 
}
 
 
 
/* button class */
 
.igem_2017_content_wrapper .button{
 
max-width: 35%;
 
margin: 30px auto;
 
padding: 12px 10px;
 
    background-color: #3399ff;
 
    text-align: center;
 
  color: #ffffff;
 
-webkit-transition: all 0.4s ease;
 
-moz-transition: all 0.4s ease;
 
-ms-transition: all 0.4s ease;
 
-o-transition: all 0.4s ease; transition: all 0.4s ease; 
 
}
 
 
/* styling for button on hover */
 
.igem_2017_content_wrapper .button:hover{
 
background-color: #3399ff;
 
    color: #000000;
 
}
 
 
 
 
 
/***************************************************** RESPONSIVE STYLING ****************************************************/
 
 
/* IF THE SCREEN IS LESS THAN 1200PX */
 
@media only screen and (max-width: 1200px) {
 
 
#content {width:100%; }
 
.igem_2017_menu_wrapper {width:15%; right:0;}
 
.highlight {padding:10px 0px;}
 
.igem_2017_menu_wrapper #display_menu_control { display:none; }
 
#menu_content { display:block;}
 
.menu_button.direct_to_page {padding-left: 17px;}
 
 
}
 
 
/* IF THE SCREEN IS LESS THAN 800PX */
 
@media only screen and (max-width: 800px) {
 
 
.igem_2017_menu_wrapper { width:100%; height: 15%; position:relative; left:0%;}
 
.igem_2017_content_wrapper {width:100%; margin-left:0px;}
 
.column.half_size  {width:100%; }
 
.column.full_size img, .column.half_size img {  width: 100%; padding: 10px 0px;}
 
.highlight {padding:15px 5px;}
 
.igem_2017_menu_wrapper #display_menu_control { display:block; }
 
#menu_content { display:none;}
 
.igem_2017_menu_wrapper .menu_button .expand_collapse_icon { width: 5%; }
 
.menu_bottom_padding {display:none;}
 
.menu_button.direct_to_page { padding-left: 36px; }
 
}
 
 
 
 
 
/* special class that the system uses to make sure the team wants a page to be evaluated */
 
.judges-will-not-evaluate {
 
    width: 96.6%;
 
  margin: 5px 15px;
 
  display: block;
 
border: 4px solid #3399ff;
 
    font-weight: bold;
 
}
 
 
 
</style>
 
</style>
</head>
 
 
 
<!--- THIS IS WHERE THE HTML BEGINS --->
 
 
 
 
<head>
 
  
<!-- This tells the browser that your page is responsive -->
 
<meta name="viewport" content="width=device-width, initial-scale=1">
 
  
 
</head>
 
</head>
Line 477: Line 367:
 
    
 
    
 
   <div class="row-sm-height">
 
   <div class="row-sm-height">
</div>
+
 
 +
  <div class="col-sm-2"><a href="https://2016.igem.org/Team:Sydney_Australia"><img class="logo" src="https://static.igem.org/mediawiki/2016/8/81/T--Sydney_Australia--Peek_Banner.png" height="60"  width="auto" ></a></div>
 +
 
 +
 
 +
 
  
  
 +
  
<div class="col-md-10" >
+
  <div class="col-md-10" >
 
       <ul class="nav navbar-nav" style="margin-top:10px">
 
       <ul class="nav navbar-nav" style="margin-top:10px">
 
     <li>
 
     <li>

Revision as of 13:07, 31 August 2017