Difference between revisions of "Template:NYU-AD"

Line 1: Line 1:
html,
+
<html>
body {
+
 
  height: 100%;
+
<style>
  width: 100%;
+
 
}
+
/********************************* DEFAULT WIKI SETTINGS  ********************************/
body {
+
 
  font-family: 'Merriweather', 'Helvetica Neue', Arial, sans-serif;
+
#sideMenu, #top_title {display:none;}
}
+
#content { padding:0px; width:1000px; margin-top:-7px; margin-left:0px;}
hr {
+
body {background-color:white; }
  border-color: #F05F40;
+
#bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5 { margin-bottom: 0px; }
  border-width: 3px;
+
 
  max-width: 50px;
+
/********************************* MENU ********************************/
}
+
/* Wrapper for the menu */
hr.light {
+
.menu_wrapper {  
  border-color: white;
+
width:150px;  
}
+
height:100vh;  
a {
+
position:fixed;  
  -webkit-transition: all 0.35s;
+
padding:0px;
  -moz-transition: all 0.35s;
+
float:left;
  transition: all 0.35s;
+
background-color:#f2f2f2;  
  color: #F05F40;
+
text-align:left;
}
+
}
a:hover,
+
 
a:focus {
+
/* styling for the menu items */
  color: #eb3812;
+
.menu_item {
}
+
width:100%;
h1,
+
margin:-2px 0px 0px -20px;
h2,
+
padding: 10px 10px;
h3,
+
border-bottom: 1px solid #d3d3d3;  
h4,
+
font-weight:bold;
h5,
+
color:#000000;  
h6 {
+
cursor: pointer;
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
+
}
}
+
 
p {
+
/* when hovering on a menu item */
  font-size: 16px;
+
.menu_item:hover {
  line-height: 1.5;
+
color:#000000;
  margin-bottom: 20px;
+
background-color: #72c9b6;
}
+
}
.bg-primary {
+
 
  background-color: #F05F40;
+
/* decoration icon for the menu buttons*/
}
+
.icon {
.bg-dark {
+
float:right;
  background-color: #222222;
+
font-size:16px;  
  color: white;
+
font-weight:bold;  
}
+
}
.text-faded {
+
  color: rgba(255, 255, 255, 0.7);
+
/* this is the icon for when the content is collapsed */
}
+
.plus::before {
section {
+
content: "+";  
  padding: 100px 0;
+
}
}
+
/* this is the icon for when the content is expanded */
aside {
+
.less::before {
  padding: 50px 0;
+
content: "–";  
}
+
}
.no-padding {
+
 
  padding: 0;
+
/* styling for the ul that creates the buttons */
}
+
ul.menu_items {
.navbar-default {
+
width:100%;
  background-color: white;
+
margin-left:0px;  
  border-color: rgba(34, 34, 34, 0.05);
+
padding:0px;
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
+
list-style: none;  
  -webkit-transition: all 0.35s;
+
}
  -moz-transition: all 0.35s;
+
 
  transition: all 0.35s;
+
/* styling for the li that are the menu items */
}
+
.menu_items li {  
.navbar-default .navbar-header .navbar-brand {
+
width:90%;  
  color: #F05F40;
+
margin-top:-2px;
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
+
padding: 15px 0px 15px 15px ;  
  font-weight: 700;
+
display:block;
  text-transform: uppercase;
+
border-bottom: 1px solid #d3d3d3;
}
+
text-align:left;
.navbar-default .navbar-header .navbar-brand:hover,
+
font-weight:bold;
.navbar-default .navbar-header .navbar-brand:focus {
+
text-decoration:none;
  color: #eb3812;
+
color:#000000;  
}
+
list-style-type:none;  
.navbar-default .navbar-header .navbar-toggle {
+
cursor:pointer;
  font-weight: 700;
+
-webkit-transition: all 0.4s ease;  
  font-size: 12px;
+
-moz-transition: all 0.4s ease;  
  color: #222222;
+
-ms-transition: all 0.4s ease;  
  text-transform: uppercase;
+
-o-transition: all 0.4s ease; transition: all 0.4s ease; 
}
+
}
.navbar-default .nav > li > a,
+
 
.navbar-default .nav > li > a:focus {
+
.menu_item a {
  text-transform: uppercase;
+
width: 100%;
  font-weight: 700;
+
margin-left: -20px;
  font-size: 13px;
+
padding: 11px 90px 12px 20px;
  color: #222222;
+
text-decoration: none;
}
+
color:black;
.navbar-default .nav > li > a:hover,
+
}
.navbar-default .nav > li > a:focus:hover {
+
 
  color: #F05F40;
+
/* When hovering on a menu item */
}
+
.menu_items li:hover {
.navbar-default .nav > li.active > a,
+
background-color:#72c9b6;
.navbar-default .nav > li.active > a:focus {
+
color: #000000;
  color: #F05F40 !important;
+
}
  background-color: transparent;
+
 
}
+
/* styling for the submenus */
.navbar-default .nav > li.active > a:hover,
+
.submenu {
.navbar-default .nav > li.active > a:focus:hover {
+
width:100%;
  background-color: transparent;
+
display: none; 
}
+
font-weight:bold;
@media (min-width: 768px) {
+
cursor:pointer;  
  .navbar-default {
+
 
    background-color: transparent;
+
}
    border-color: rgba(255, 255, 255, 0.3);
+
 
  }
+
/* moving the margin for the submenu ul list */
  .navbar-default .navbar-header .navbar-brand {
+
ul.submenu {
    color: rgba(255, 255, 255, 0.7);
+
width: 100%;
  }
+
margin: 10px 0px -11px 0px;
  .navbar-default .navbar-header .navbar-brand:hover,
+
list-style: none;
  .navbar-default .navbar-header .navbar-brand:focus {
+
}
    color: white;
+
 
  }
+
/*styling for the submenu buttons */
  .navbar-default .nav > li > a,
+
.submenu li {
  .navbar-default .nav > li > a:focus {
+
width: 100%;
    color: rgba(255, 255, 255, 0.7);
+
margin-left: 10px;
  }
+
margin-bottom: 0px;
  .navbar-default .nav > li > a:hover,
+
}
  .navbar-default .nav > li > a:focus:hover {
+
 
    color: white;
+
 
  }
+
/* hover state for the submenu buttons */
  .navbar-default.affix {
+
.submenu li a {
    background-color: white;
+
width: 100%;  
    border-color: rgba(34, 34, 34, 0.05);
+
padding: 5px 10px;  
  }
+
display: inline-block;
  .navbar-default.affix .navbar-header .navbar-brand {
+
border-bottom: 1px solid #d3d3d3;
    color: #F05F40;
+
background-color:white;
    font-size: 14px;
+
text-decoration:none;
  }
+
color:#000000;  
  .navbar-default.affix .navbar-header .navbar-brand:hover,
+
}
  .navbar-default.affix .navbar-header .navbar-brand:focus {
+
 
    color: #eb3812;
+
 
  }
+
 
  .navbar-default.affix .nav > li > a,
+
.submenu li a:hover  {
  .navbar-default.affix .nav > li > a:focus {
+
background-color:#000000;  
    color: #222222;
+
color: #72c9b6;
  }
+
}
  .navbar-default.affix .nav > li > a:hover,
+
 
  .navbar-default.affix .nav > li > a:focus:hover {
+
 
    color: #F05F40;
+
/* When the screen is smaller than 680px, the menu has the option to hide/show - this button controls that */
  }
+
.collapsable_menu_control {
}
+
width:100%;
header {
+
padding: 15px 0px;
  position: relative;
+
display:none;
  width: 100%;
+
background-color:#000000;  
  min-height: auto;
+
text-align:center; 
  -webkit-background-size: cover;
+
font-weight:bold;
  -moz-background-size: cover;
+
color:#72c9b6;
  background-size: cover;
+
cursor:pointer;
  -o-background-size: cover;
+
-webkit-transition: all 0.4s ease;  
  background-position: center;
+
-moz-transition: all 0.4s ease;
  background-image: url('../img/header.jpg');
+
-ms-transition: all 0.4s ease;
  text-align: center;
+
-o-transition: all 0.4s ease;
  color: white;
+
transition: all 0.4s ease;  
}
+
}
header .header-content {
+
 
  position: relative;
+
/* when hovering on that button */
  text-align: center;
+
.collapsable_menu_control:hover {
  padding: 100px 15px 100px;
+
background-color: #72c9b6;
  width: 100%;
+
color:#000000;
}
+
}
header .header-content .header-content-inner h1 {
+
 
  font-weight: 700;
+
/********************************* CONTENT OF THE PAGE ********************************/
  text-transform: uppercase;
+
 
  margin-top: 0;
+
/* Wrapper for the content */
  margin-bottom: 0;
+
.content_wrapper {
  font-size: 30px;
+
width: 85%;
}
+
margin-left:150px;
header .header-content .header-content-inner hr {
+
padding:10px 0px;
  margin: 30px auto;
+
float:left;
}
+
background-color:white;  
header .header-content .header-content-inner p {
+
}
  font-weight: 300;
+
 
  color: rgba(255, 255, 255, 0.7);
+
/*LAYOUT */
  font-size: 16px;
+
.column  {  
  margin-bottom: 50px;
+
padding: 10px 0px;
}
+
float:left;
@media (min-width: 768px) {
+
background-color:white;  
  header {
+
}
    min-height: 100%;
+
 
  }
+
.full_size {
  header .header-content {
+
width:100%;  
    position: absolute;
+
}
    top: 50%;
+
 
    -webkit-transform: translateY(-50%);
+
.full_size img {  
    -ms-transform: translateY(-50%);
+
padding: 10px 15px;
    transform: translateY(-50%);
+
width:96.5%;  
    padding: 0 50px;
+
}
  }
+
 
  header .header-content .header-content-inner {
+
.half_size {
    max-width: 1000px;
+
width: 50%;  
    margin-left: auto;
+
}
    margin-right: auto;
+
.half_size img {
  }
+
padding: 10px 15px;
  header .header-content .header-content-inner h1 {
+
width: 93%;  
    font-size: 50px;
+
}
  }
+
 
  header .header-content .header-content-inner p {
+
 
    font-size: 18px;
+
.clear {
    max-width: 80%;
+
clear:both;
    margin-left: auto;
+
}
    margin-right: auto;
+
 
  }
+
.highlight {  
}
+
width: 90%;  
.section-heading {
+
margin: auto;  
  margin-top: 0;
+
padding: 15px 5px;
}
+
background-color: #f2f2f2;  
.service-box {
+
}
  max-width: 400px;
+
 
  margin: 50px auto 0;
+
.judges-will-not-evaluate {
}
+
border: 4px solid #72c9b6;
@media (min-width: 992px) {
+
display: block;
  .service-box {
+
margin: 5px 15px;
    margin: 20px auto 0;
+
width: 95%;
  }
+
font-weight:bold;
}
+
}
.service-box p {
+
 
  margin-bottom: 0;
+
 
}
+
/*STYLING */
.portfolio-box {
+
 
  position: relative;
+
/* styling for the titles */
  display: block;
+
.content_wrapper h1, .content_wrapper h2 {
  max-width: 650px;
+
padding:5px 15px;  
  margin: 0 auto;
+
border-bottom:0px;  
}
+
color:#72c9b6;
.portfolio-box .portfolio-box-caption {
+
 
  color: white;
+
}
  opacity: 0;
+
.content_wrapper h3, .content_wrapper h4, .content_wrapper h5, .content_wrapper h6 {  
  display: block;
+
padding:5px 15px;  
  background: rgba(240, 95, 64, 0.9);
+
border-bottom:0px;  
  position: absolute;
+
color: #000000;
  bottom: 0;
+
}
  text-align: center;
+
 
  width: 100%;
+
 
  height: 100%;
+
/* font and text */
  -webkit-transition: all 0.35s;
+
.content_wrapper p {  
  -moz-transition: all 0.35s;
+
padding:0px 15px;  
  transition: all 0.35s;
+
font-size: 13px;
}
+
font-family:Tahoma, Geneva, sans-serif;  
.portfolio-box .portfolio-box-caption .portfolio-box-caption-content {
+
}
  width: 100%;
+
 
  text-align: center;
+
/* Links */
  position: absolute;
+
.content_wrapper a {  
  top: 50%;
+
font-weight: bold;  
  transform: translateY(-50%);
+
text-decoration: underline;
}
+
text-decoration-color:#72c9b6;
.portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-category,
+
color: #72c9b6;
.portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-name {
+
-webkit-transition: all 0.4s ease;
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
+
-moz-transition: all 0.4s ease;  
  padding: 0 15px;
+
-ms-transition: all 0.4s ease;  
}
+
-o-transition: all 0.4s ease;  
.portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-category {
+
transition: all 0.4s ease;
  text-transform: uppercase;
+
}
  font-weight: 600;
+
 
  font-size: 14px;
+
/* hover for the links */
}
+
.content_wrapper a:hover {  
.portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-name {
+
text-decoration:none;
  font-size: 18px;
+
color:#000000;
}
+
}
.portfolio-box:hover .portfolio-box-caption {
+
 
  opacity: 1;
+
/* non numbered lists */
}
+
.content_wrapper ul {
.portfolio-box:focus {
+
padding:0px 20px;
  outline: none;
+
font-size: 13px;
}
+
font-family:Tahoma, Geneva, sans-serif;
@media (min-width: 768px) {
+
}
  .portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-category {
+
 
    font-size: 16px;
+
/* numbered lists */
  }
+
.content_wrapper ol {
  .portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-name {
+
padding:0px;  
    font-size: 22px;
+
font-size: 13px;
  }
+
font-family:Tahoma, Geneva, sans-serif;  
}
+
}
.call-to-action h2 {
+
 
  margin: 0 auto 20px;
+
/* Table */
}
+
.content_wrapper table {  
.text-primary {
+
width: 97%;  
  color: #F05F40;
+
margin:15px 10px;  
}
+
border: 1px solid #d3d3d3;
.no-gutter > [class*='col-'] {
+
border-collapse: collapse;  
  padding-right: 0;
+
}
  padding-left: 0;
+
 
}
+
/* table cells */
.btn-default {
+
.content_wrapper  td {  
  color: #222222;
+
padding: 10px;
  background-color: white;
+
vertical-align: text-top;  
  border-color: white;
+
border: 1px solid #d3d3d3;  
  -webkit-transition: all 0.35s;
+
border-collapse: collapse;  
  -moz-transition: all 0.35s;
+
}
  transition: all 0.35s;
+
 
}
+
/* table headers */
.btn-default:hover,
+
.content_wrapper th {  
.btn-default:focus,
+
padding: 10px;  
.btn-default.focus,
+
vertical-align: text-top;  
.btn-default:active,
+
border: 1px solid #d3d3d3;  
.btn-default.active,
+
border-collapse: collapse;
.open > .dropdown-toggle.btn-default {
+
background-color:#f2f2f2;  
  color: #222222;
+
}
  background-color: #f2f2f2;
+
 
  border-color: #ededed;
+
/* Button class */
}
+
.button_click {
.btn-default:active,
+
margin: 10px auto;
.btn-default.active,
+
padding: 15px; width:12%; 
.open > .dropdown-toggle.btn-default {
+
text-align:center;  
  background-image: none;
+
font-weight:bold;  
}
+
background-color: #72c9b6;
.btn-default.disabled,
+
cursor:pointer; 
.btn-default[disabled],
+
-webkit-transition: all 0.4s ease;
fieldset[disabled] .btn-default,
+
-moz-transition: all 0.4s ease;  
.btn-default.disabled:hover,
+
-ms-transition: all 0.4s ease;  
.btn-default[disabled]:hover,
+
-o-transition: all 0.4s ease;  
fieldset[disabled] .btn-default:hover,
+
transition: all 0.4s ease;  
.btn-default.disabled:focus,
+
}
.btn-default[disabled]:focus,
+
 
fieldset[disabled] .btn-default:focus,
+
/* button class on hover */
.btn-default.disabled.focus,
+
.button_click:hover { 
.btn-default[disabled].focus,
+
background-color:#000000;  
fieldset[disabled] .btn-default.focus,
+
color:#72c9b6;
.btn-default.disabled:active,
+
}
.btn-default[disabled]:active,
+
 
fieldset[disabled] .btn-default:active,
+
/********************************* RESPONSIVE STYLING ********************************/
.btn-default.disabled.active,
+
 
.btn-default[disabled].active,
+
/* IF THE SCREEN IS LESS THAN 1000PX */
fieldset[disabled] .btn-default.active {
+
 
  background-color: white;
+
@media only screen and (max-width: 1000px) {
  border-color: white;
+
 
}
+
#content {width:100%; }
.btn-default .badge {
+
.menu_wrapper {width:15%;}
  color: white;
+
.content_wrapper {margin-left: 15%;}
  background-color: #222222;
+
.menu_item {display:block;}
}
+
.icon {display:none;}
.btn-primary {
+
.highlight {padding:10px 0px;}
  color: white;
+
}
  background-color: #F05F40;
+
 
  border-color: #F05F40;
+
 
  -webkit-transition: all 0.35s;
+
/* IF THE SCREEN IS LESS THAN 680PX */
  -moz-transition: all 0.35s;
+
 
  transition: all 0.35s;
+
@media only screen and (max-width: 680px) {
}
+
.collapsable_menu_control { display:block;}
.btn-primary:hover,
+
.menu_item {display:none;}
.btn-primary:focus,
+
.menu_wrapper { width:100%; height: 15%; position:relative;}
.btn-primary.focus,
+
.content_wrapper {width:100%; margin-left:0px;}
.btn-primary:active,
+
.column.half_size {width:100%; }
.btn-primary.active,
+
.column img { width: 100%; padding: 5px 0px;}
.open > .dropdown-toggle.btn-primary {
+
.icon {display:block;}
  color: white;
+
.highlight {padding:15px 5px;}
  background-color: #ee4b28;
+
}
  border-color: #ed431f;
+
 
}
+
</style>
.btn-primary:active,
+
 
.btn-primary.active,
+
 
.open > .dropdown-toggle.btn-primary {
+
 
  background-image: none;
+
 
}
+
<!--- THIS IS WHERE THE HTML BEGINS --->
.btn-primary.disabled,
+
 
.btn-primary[disabled],
+
 
fieldset[disabled] .btn-primary,
+
<!-- This tells the browser that your page is responsive -->
.btn-primary.disabled:hover,
+
 
.btn-primary[disabled]:hover,
+
<head>
fieldset[disabled] .btn-primary:hover,
+
<meta name="viewport" content="width=device-width, initial-scale=1">
.btn-primary.disabled:focus,
+
</head>
.btn-primary[disabled]:focus,
+
 
fieldset[disabled] .btn-primary:focus,
+
 
.btn-primary.disabled.focus,
+
 
.btn-primary[disabled].focus,
+
 
fieldset[disabled] .btn-primary.focus,
+
<div class="menu_wrapper" >
.btn-primary.disabled:active,
+
 
.btn-primary[disabled]:active,
+
 
fieldset[disabled] .btn-primary:active,
+
 
.btn-primary.disabled.active,
+
 
.btn-primary[disabled].active,
+
<div class="collapsable_menu_control"> MENU ▤ </div>
fieldset[disabled] .btn-primary.active {
+
 
  background-color: #F05F40;
+
<ul id="accordion" class="accordion">
  border-color: #F05F40;
+
 
}
+
<li class="menu_item"> <a href="https://2016.igem.org/Team:NYU-AD">HOME </a> </li>
.btn-primary .badge {
+
 
  color: #F05F40;
+
 
  background-color: white;
+
<li class="menu_item"> <div class="icon plus"></div> TEAM
}
+
<ul class="submenu">
.btn {
+
<li> <a href=" https://2016.igem.org/Team:NYU-AD/Team"> Team  </a> </li>
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
+
<li> <a href="https://2016.igem.org/Team:NYU-AD/Collaborations">★  Collaborations </a> </li>
  border: none;
+
                    </ul>
  border-radius: 300px;
+
                </li>
  font-weight: 700;
+
 
  text-transform: uppercase;
+
<li class="menu_item"> <div class="icon plus"></div> PROJECT 
}
+
<ul class="submenu">
.btn-xl {
+
<li> <a href="https://2016.igem.org/Team:NYU-AD/Description"> ★  Description </a></li>
  padding: 15px 30px;
+
<li> <a href="https://2016.igem.org/Team:NYU-AD/Design"> ★ Design </a></li>
}
+
<li> <a href="https://2016.igem.org/Team:NYU-AD/Experiments"> Experiments </a></li>
::-moz-selection {
+
<li> <a href="https://2016.igem.org/Team:NYU-AD/Proof"> ★ Proof of Concept </a></li>
  color: white;
+
<li> <a href="https://2016.igem.org/Team:NYU-AD/Demonstrate"> ★ Demonstrate </a></li>
  text-shadow: none;
+
<li> <a href="https://2016.igem.org/Team:NYU-AD/Results"> Results </a></li>
  background: #222222;
+
<li> <a href="https://2016.igem.org/Team:NYU-AD/Notebook"> Notebook </a></li>
}
+
                    </ul>
::selection {
+
                </li>
  color: white;
+
 
  text-shadow: none;
+
<li class="menu_item"> <div class="icon plus"></div> PARTS 
  background: #222222;
+
<ul class="submenu">
}
+
<li> <a href="https://2016.igem.org/Team:NYU-AD/Parts">Parts </a></li>
img::selection {
+
<li> <a href="https://2016.igem.org/Team:NYU-AD/Basic_Part"> ★ Basic Parts </a></li>
  color: white;
+
<li> <a href="https://2016.igem.org/Team:NYU-AD/Composite_Part"> ★ Composite Parts </a></li>
  background: transparent;
+
<li> <a href="https://2016.igem.org/Team:NYU-AD/Part_Collection"> ★ Part Collection </a></li>
}
+
                    </ul>
img::-moz-selection {
+
                </li>
  color: white;
+
 
  background: transparent;
+
 
}
+
<li class="menu_item"> <a href="https://2016.igem.org/Team:NYU-AD/Safety"> SAFETY </a> </li>
body {
+
 
  webkit-tap-highlight-color: #222222;
+
 
}
+
<li class="menu_item"> <a href="https://2016.igem.org/Team:NYU-AD/Attributions">★  ATTRIBUTIONS </a></li>
 +
 
 +
 
 +
<li class="menu_item"> <div class="icon plus"></div> HUMAN PRACTICES
 +
<ul class="submenu">
 +
<li> <a href="https://2016.igem.org/Team:NYU-AD/Human_Practices"> Human Practices </a></li>
 +
<li> <a href="https://2016.igem.org/Team:NYU-AD/HP/Silver">★ Silver </a></li>
 +
<li> <a href="https://2016.igem.org/Team:NYU-AD/HP/Gold">★ Gold </a></li>
 +
<li> <a href="https://2016.igem.org/Team:NYU-AD/Integrated_Practices"> ★ Integrated Practices </a></li>
 +
<li> <a href="https://2016.igem.org/Team:NYU-AD/Engagement">★ Engagement </a></li>
 +
                    </ul>
 +
                </li>
 +
 
 +
 
 +
<li class="menu_item"> <div class="icon plus"></div> AWARDS
 +
<ul class="submenu">
 +
<li><a href="https://2016.igem.org/Team:NYU-AD/Entrepreneurship"> ★ Entrepreneurship </a></li>
 +
<li> <a href="https://2016.igem.org/Team:NYU-AD/Hardware"> ★ Hardware </a></li>
 +
<li> <a href="https://2016.igem.org/Team:NYU-AD/Software">★ Software </a></li>
 +
<li> <a href="https://2016.igem.org/Team:NYU-AD/Measurement">★  Measurement </a></li>
 +
<li> <a href="https://2016.igem.org/Team:NYU-AD/Model">★ Model </a></li>
 +
 
 +
                    </ul>
 +
                </li>
 +
</ul>
 +
 
 +
</div>
 +
 
 +
 
 +
 
 +
 
 +
 
 +
<div class="content_wrapper">
 +
 
 +
 
 +
 
 +
<h1 id="team_name">  </h1>
 +
<h4 id="page_name">  </h4>
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
<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>

Revision as of 18:01, 9 July 2016