Difference between revisions of "Template:Duke"

Line 1: Line 1:
 +
<!-- Declare that you are going to use html code instead of wiki code -->
 +
<html>
 +
 +
<!-- Start of CSS-->
 +
<style type="text/css">
 +
 +
/* WIKI SETTINGS*/
 +
 +
/* Hide first heading */
 +
.firstHeading {
 +
display: none;
 +
}
 +
 +
/*-- Remove borders, float content left and remove padding/margin */
 +
#globalWrapper, #content{
 +
background-color: transparent;
 +
border: 0px;
 +
float: left;
 +
margin:0px;
 +
padding: 0px;
 +
}
 +
 +
/*left align Black Menu Bar */
 +
#top_menu_inside {
 +
margin-left: 20px;
 +
}
 +
</style>
 +
 +
<!-- Declare that you are going to use html code instead of wiki code -->
 +
<html>
 +
 +
<!-- Start of CSS-->
 +
<style type="text/css">
 +
 +
/* PAGE LAYOUT */
 +
 +
/* Change Background color*/
 +
body {
 +
background-color: #fff;
 +
}
 +
 +
/* Creates a container that will wrap all of the content inside your wiki pages. */
 +
#mainContainer { 
 +
width: 978px;
 +
overflow:hidden;
 +
float:left;
 +
margin-left:20px;
 +
margin-bottom: 10px;
 +
background-color: #fff;
 +
border-bottom: 14px solid #565656;
 +
border-right: 2px solid #565656;
 +
border-left: 2px solid #565656;
 +
border-top: 2px solid #565656;
 +
font-family: "Trebuchet MS", Helvetica, sans-serif;
 +
}
 +
 +
/* Creates the container for the menu */
 +
#menuContainer  {
 +
float:left;
 +
width: 134px;
 +
padding: 20px 0px;
 +
border-top: 14px solid #565656;
 +
background-color: #235F9C;
 +
}
 +
 +
/* Creates the container for the content */
 +
#contentContainer {
 +
padding-top:20px;
 +
padding-right:10px;
 +
margin-bottom: 20px;
 +
width: 814px;
 +
padding-left: 20px;
 +
float: left;
 +
background-color: #fff;
 +
border-top: 14px solid #565656;
 +
font-family: "Trebuchet MS", Helvetica, sans-serif;
 +
}
 +
 +
/*Set up height place holder for the banner*/
 +
#bannerContainer {
 +
height:200px;
 +
margin:auto;
 +
text-align:center;
 +
color: #24B694;
 +
}
 +
 +
/*VISUAL STYLE (TABLES, FONTS, LINKS, IMAGES, UL) */
 +
 +
/*Change the styling of text for everything inside main container*/
 +
#mainContainer p {
 +
font-size: 13px;
 +
color: #000000;
 +
}
 +
 +
/*This changes the color and font family */
 +
#contentContainer h1, h2, h3, h4, h5, h6 {
 +
color: #565656;
 +
border-bottom: none;
 +
font-weight: bold;
 +
font-family: "Trebuchet MS", Helvetica, sans-serif;
 +
margin-top:10px;
 +
}
 +
 +
/*Style of the links - links are different inside the menu */
 +
#contentContainer a {
 +
font-weight: bold;
 +
color: #000000;
 +
}
 +
 +
  /* Styling links on hover- links are different inside the menu */
 +
#contentContainer a:hover {
 +
color: #808080;
 +
}
 +
 +
/*Change the styling of tables */
 +
        #contentContainer table {
 +
    border: 1px solid #565656;
 +
    border-collapse: collapse;
 +
    width: 90%
 +
    margin: auto;
 +
    margin-bottom: 15px;
 +
    margin-top: 15px;
 +
    margin-right: 10px;
 +
    margin-left: 10px;
 +
    }
 +
 +
/*Change the styling of table cells*/
 +
    #contentContainer  td {
 +
    padding: 10px;
 +
    border: 1px solid #565656;
 +
    border-collapse: collapse;
 +
    vertical-align: text-top;
 +
    }
 +
 +
/*Change the styling of table headers */
 +
    #contentContainer th {
 +
    background-color: #E8E8E9;
 +
    padding: 10px;
 +
    border: 1px solid #565656;
 +
    border-collapse: collapse;
 +
    vertical-align: text-top;
 +
    }
 +
 +
 +
 +
/*MENU STYLING */
 +
 +
/*Styling for the links in the menu */
 +
#menuContainer a {
 +
color: #FFFFFF;
 +
text-decoration:none;
 +
font-weight: bold;
 +
}
 +
 +
/* Sets the style for lists inside menuContainer  */
 +
#menuContainer ul {
 +
list-style: none;
 +
margin-left:0px;
 +
}
 +
 +
/*Styles the list items to become menu buttons */
 +
#menuContainer ul li {
 +
text-align: center;
 +
display: block;
 +
width: 100%;
 +
height:30px;
 +
padding-top:10px;
 +
}
 +
 +
/*For the menu buttons, changes the color when hovering*/
 +
#menuContainer li:hover {
 +
color:  #FFF;
 +
background-color: #0680CD;
 +
}
 +
 +
/*Submenus are not displayed as default*/
 +
#menuContainer li ul {
 +
display: none;
 +
padding-top:15px;
 +
margin-left: -19px;
 +
}
 +
 +
/*Submenus are displayed when hovering the menu button */
 +
#menuContainer li:hover ul {
 +
/*display: inline-block; */
 +
display: block;
 +
position: absolute;
 +
float:right;
 +
margin-left: 134px;
 +
margin-top:-42px;
 +
}
 +
 +
/*Style the submenu buttons*/
 +
#menuContainer li ul li{
 +
background-color: #b4d8f0;
 +
padding-left:20px;
 +
padding-right:20px;
 +
height:30px;
 +
padding-top:10px;
 +
margin-top:-2px;
 +
color: #565656;
 +
width: 150px;
 +
}
 +
 +
/*CLASSES */
 +
 +
/*Clear class for all the pages, adds spacing too*/
 +
.clear{
 +
clear:both;
 +
height: 10px;
 +
}
 +
 +
 +
/* highlight box for special messages */
 +
    .highlightBox {
 +
        width:500px;
 +
        margin:auto;
 +
        background-color: #E8E8E9;
 +
margin-bottom: 15px;
 +
margin-top: 15px;
 +
padding: 15px;
 +
padding-top: 5px;
 +
    }
 +
<!--Headers and Subheaders-->
 +
 +
.head{
 +
background-color:#6AB3E1;
 +
border: 2px solid #001A57;
 +
border-radius:5px;
 +
font-size:24px;
 +
padding:5px;
 +
color:#001A57;
 +
}
 +
.subhead{
 +
background-color:#6AB3E1;
 +
border: 2px solid #001A57;
 +
border-radius:5px;
 +
font-size:18px;
 +
padding:5px;
 +
color:#001A57;
 +
}
 +
<!-- End Header-->
 +
 +
</style>
 +
<!-- End of CSS -->
 +
 +
 +
<!-- Start of the template html elements. -->
 +
<div id ="mainContainer"><!--The closing tag for mainContainer should be placed at the bottom of each content page.-->
 +
 +
<div id="bannerContainer">
 +
<br><img src="https://static.igem.org/mediawiki/2015/9/9f/Team_Duke_banner.png"><br>
 +
<!--<h2> Add a banner to your wiki! </h2>
 +
 +
<p>You can make the image 980px  by  200px</p>
 +
<p> Remember to call the file: "<i>Team_Duke_banner.jpg</i>" </p>-->
 +
</div>
 +
 +
<!-- Start of menu -->
 +
<div id="menuContainer">
 +
 +
<!-- This list is your menu, every list item is a menu button and nested listed become submenu buttons -->
 +
<ul>
 +
<a href="https://2015.igem.org/Team:Duke"><li>HOME</li></a>
 +
 +
<a href="https://2015.igem.org/Team:Duke/Team"><li>TEAM</li></a>
 +
 +
<a href="#"><li>PROJECT
 +
            <ul>
 +
<a href="https://2015.igem.org/Team:Duke/Description"><li>Description</li></a>
 +
<a href="https://2015.igem.org/Team:Duke/Experiments"><li>Experiments &amp; Protocols</li></a> 
 +
<a href="https://2015.igem.org/Team:Duke/Results"><li>Results</li></a> 
 +
<a href="https://2015.igem.org/Team:Duke/Design"><li>Design</li></a>
 +
</ul>
 +
</li></a>
 +
 +
<a href="#"><li>PARTS
 +
            <ul>
 +
<a href="https://2015.igem.org/Team:Duke/Parts"><li>Team Parts</li></a>
 +
<a href="https://2015.igem.org/Team:Duke/Basic_Part"><li>Basic Parts</li></a> 
 +
<!--<a href="https://2015.igem.org/Team:Duke/Composite_Part"><li>Composite Parts</li></a>
 +
<a href="https://2015.igem.org/Team:Duke/Part_Collection"><li>Part Collection</li></a>--> 
 +
</ul>
 +
</li></a>
 +
 +
<a href="https://2015.igem.org/Team:Duke/Notebook"><li>NOTEBOOK</li></a>
 +
     
 +
<a href="https://2015.igem.org/Team:Duke/Attributions"><li>ATTRIBUTIONS</li></a>
 +
 +
<a href="https://2015.igem.org/Team:Duke/Collaborations"><li>COLLABORATIONS</li></a>
 +
 +
<a href="https://2015.igem.org/Team:Duke/Practices"><li>HUMAN PRACTICES</li></a>
 +
 +
<a href="https://2015.igem.org/Team:Duke/Safety"><li>SAFETY</li></a>
 +
 +
<a href="https://2015.igem.org/Team:Duke/Modeling"><li>MODELING</li></a>
 +
 +
<a href="https://2015.igem.org/Team:Duke/Interlabstudy"><li>INTERLAB STUDY</li></a>
 +
 +
 +
 +
<a href="https://2015.igem.org/Team:Duke/Software"><li>SOFTWARE</li></a>
 +
 +
<!--<a href="https://2015.igem.org/Team:Duke/Entrepreneurship"><li>ENTREPRENEURSHIP</li></a>-->
 +
 +
</ul>
 +
</div>
 +
<!-- End of menu  -->
 +
 +
<!-- Start of content -->
 +
<div id="contentContainer"> <!--The closing tag for contentContainer should be placed at the bottom of each content page.-->
 +
</html>
 +
 +
 +
<!--
 
<html>
 
<html>
  
Line 540: Line 855:
  
 
</html>
 
</html>
 +
-->

Revision as of 01:13, 18 October 2016





<head> <meta name="viewport" content="width=device-width, initial-scale=1"> </head>










<script>

// This is the jquery part of your template. Try not modify any of this code since it makes your menu work.

$(document).ready(function() {

$("#HQ_page").attr('id',);


if ( wgPageName.substring( 0, 8) == "Template") { // if the page is a template it displays the full name in a single line $("#team_name").html( wgPageName ); }

else if ( ( (wgPageName.match(/\//g) || []).length ) == 0 ) { // if it is the home page , just print the team's name $("#team_name").html( wgPageName.substring( 5, wgPageName.length ) ); }

else { // this adds the team's name as an h1 $("#team_name").html( wgPageName.substring( 5 , wgPageName.indexOf("/") ) );

// this adds the page's title as an h4 $("#page_name").html ( ( wgPageName.substring( wgPageName.indexOf("/") + 1, wgPageName.length ) ).replace( /\/|_/g , " ") ); }



$('#accordion').find('.menu_item').click(function(){

//Expand or collapse this panel submenu = $(this).find('.submenu'); submenu.toggle();

icon = $(this).find('.icon');

if ( !$( submenu ).is(':visible') ) { icon.removeClass("less").addClass("plus"); } else { icon.removeClass("plus").addClass("less"); }

//Hide the other panels $(".submenu").not(submenu).hide(); $(".icon").not(icon).removeClass("less").addClass("plus"); });


$(".collapsable_menu_control").click(function() { $(".menu_item").toggle(); });

$( window ).resize(function() { $(".menu_item").show(); });


});



</script>


</html>

-->