Difference between revisions of "Template:IISc-Bangalore"

 
(376 intermediate revisions by 6 users not shown)
Line 2: Line 2:
  
 
<style>
 
<style>
/********************************* DEFAULT WIKI SETTINGS  ********************************/
 
  
#sideMenu,
+
/* Fonts */
#top_title {
+
  display: none;
+
}
+
  
#content {
+
@font-face {
  padding: 0px;
+
    font-family: "Raleway";
  width: 100%;
+
    src: url("https://static.igem.org/mediawiki/2017/3/3f/T--IISc-Bangalore--raleway.woff") format("woff");
 
}
 
}
 
+
@font-face {
body {
+
    font-family: "Poppins";
  background-color: white;
+
    src: url("https://static.igem.org/mediawiki/2017/d/d7/T--IISc-Bangalore--poppins.woff") format("woff");
  width: 100%;
+
 
}
 
}
  
#bodyContent h1,
+
@font-face {
#bodyContent h2,
+
    font-family: "Raleway-ExtraBold";
#bodyContent h3,
+
    src: url('https://static.igem.org/mediawiki/2017/6/6b/T--IISc-Bangalore--raleway-extrabold.woff') format("woff");
#bodyContent h4,
+
#bodyContent h5 {
+
  margin-bottom: 0px;
+
 
}
 
}
  
#bodyContent {
+
/* Code for removing iGEM loader content */
  padding-right: 0px;
+
}
+
  
#globalWrapper {
+
#sideMenu, #top_title, #top, #toc{
   font-size: 100%;
+
   display: none;
  padding: 0px;
+
  margin: -10px -20px -20px -20px;
+
 
}
 
}
  
.navbar-collapse {
+
/* Content styling */
  padding-left: 0px;
+
}
+
  
#banner {
+
#content {
   margin-top: 50px;
+
  width: 100%;
 +
  height: 100%;
 +
  box-sizing: border-box;
 +
   margin: -31px 0 0;
 +
  padding: 0;
 
}
 
}
  
#sideMenu {
+
body {
  margin-top: 10px;
+
    margin: 0;
 +
    height: 100%;
 
}
 
}
  
.dropdown-menu li:hover .sub-menu {
+
#inPageNav {
  visibility: visible;
+
    position: fixed;
 +
    display: block;
 +
    top: 50%;
 +
    transform: translateY(-50%);
 +
    right: 83%;
 +
    margin: 0 auto;
 +
    padding: 0;
 +
    box-sizing: border-box;
 +
    list-style: none;
 +
    z-index: 1;
 +
    display: none;
 
}
 
}
  
.dropdown:hover .dropdown-menu {
+
#inPageNav li {
  display: block;
+
    display: block;
 +
    padding: 10px 10px 10px 10px;
 +
    text-align: right;
 +
    font-family: "Raleway", sans-serif;
 
}
 
}
  
.navbar-nav .dropdown-menu,
+
#inPageNav li a {
.navbar .dropdown-menu {
+
    color: inherit;
  margin-top: 0;
+
 
}
 
}
  
 
+
#inPageNav li a img {
/********************************* CONTENT OF THE PAGE ********************************/
+
    width: 0;
 
+
    height: 0;
 
+
    box-sizing: border-box;
/* Wrapper for the content */
+
    margin-top: -5px;
 
+
    padding: 20px;
.content_wrapper {
+
    background-image: url('https://static.igem.org/mediawiki/2017/6/68/T--IISc-Bangalore--navbar_bullet.png');
  width: 85%;
+
    background-size: 40px 40px;
  margin-left: 150px;
+
  padding: 0px;
+
  float: left;
+
  background-color: white;
+
 
}
 
}
  
 
+
#inPageNav li a.active img {
/*LAYOUT */
+
    background-image: url('https://static.igem.org/mediawiki/2017/2/20/T--IISc-Bangalore--navbar_bullet_active.png');
 
+
    background-size: 40px 40px;
.column {
+
  padding: 10px 0px;
+
  float: left;
+
  background-color: white;
+
 
}
 
}
  
.full_size {
+
#inPageNav li a:focus {
  width: 100%;
+
    color: inherit;
 +
    text-decoration: none;
 +
    outline: none;
 
}
 
}
  
.full_size img {
+
#inPageNav li a:active {
  padding: 10px 15px;
+
    text-decoration: none;
  width: 96.5%;
+
 
}
 
}
  
.half_size {
+
#inPageNav li a.active {
  width: 50%;
+
    font-weight: 800;
 
}
 
}
  
.half_size img {
+
#inPageNav li:hover {
  padding: 10px 15px;
+
    background-color: #f4f4f4;
  width: 93%;
+
 
}
 
}
 
+
.img:hover {
+
#contentMain {
  opacity: 1.0 !important;
+
    width: 100%;
 +
    float: left;
 +
    display: block;
 +
    padding: 0 15% 50px 0;
 +
    box-sizing: border-box;
 +
    position: relative;
 +
    height: auto;
 +
    overflow: auto;
 +
    font-family: "Poppins", sans-serif;
 +
    font-size: 1em;
 +
    line-height: 2;
 +
    background-image: url('https://static.igem.org/mediawiki/2017/4/44/T--IISc-Bangalore--background_final.png');
 +
    background-size: cover;
 +
    background-attachment: fixed;
 +
    padding-left: 20%;
 +
    top: 80px;
 
}
 
}
  
.clear {
+
#contentMain h1 {
  clear: both;
+
    margin: 20px 0;
 +
    line-height: 1.3;
 +
    font-family: "Raleway-ExtraBold", sans-serif;
 +
    padding: 0;
 +
    text-align: center;
 +
    border-bottom: 2px solid;
 +
    padding-bottom: 10px;
 +
    box-sizing: border-box;
 +
    font-size: 3em;
 
}
 
}
  
.highlight {
+
#contentMain h1 img {
  width: 90%;
+
    vertical-align: text-top;
  margin: auto;
+
    box-sizing: border-box;
  padding: 15px 5px;
+
    padding-bottom: 8px;
  background-color: #f2f2f2;
+
    height: 50px;
 
}
 
}
  
.judges-will-not-evaluate {
+
#contentMain h1 img:nth-child(1) {
  border: 4px solid #72c9b6;
+
    margin-right: 10px;
  display: block;
+
  margin: 5px 15px;
+
  width: 95%;
+
  font-weight: bold;
+
 
}
 
}
  
 
+
#contentMain h1 img:nth-child(2) {
/*STYLING */
+
    margin-left: 10px;
 
+
 
+
/* styling for the titles */
+
 
+
.content_wrapper h1,
+
.content_wrapper h2 {
+
  padding: 5px 15px;
+
  border-bottom: 0px;
+
  color: #72c9b6;
+
 
}
 
}
  
.content_wrapper h3,
+
#contentMain h1:target {
.content_wrapper h4,
+
    padding-top: 80px;
.content_wrapper h5,
+
    margin-top: -80px;
.content_wrapper h6 {
+
  padding: 5px 15px;
+
  border-bottom: 0px;
+
  color: #000000;
+
 
}
 
}
  
 
+
#contentMain h2, h3 {
/* font and text */
+
    margin: 15px 0 15px 0;
 
+
    font-family: "Raleway", sans-serif;
.content_wrapper p {
+
    font-weight: 600;
  padding: 0px 15px;
+
    padding: 0;
  font-size: 13px;
+
  font-family: 'Roboto', sans-serif;
+
 
}
 
}
 
+
#contentMain p {
 
+
    margin: 15px 0 15px 0;
/* Links */
+
    line-height: 1.9;
 
+
    font-size: 1.25em;
.content_wrapper a {
+
    font-family: "Poppins", sans-serif;
  font-weight: bold;
+
  text-decoration: underline;
+
  text-decoration-color: #72c9b6;
+
  color: #72c9b6;
+
  -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;
+
 
}
 
}
 
+
#contentMain li li{
 
+
    font-size: 1em;
/* hover for the links */
+
 
+
.content_wrapper a:hover {
+
  text-decoration: none;
+
  color: #000000;
+
 
}
 
}
 
+
#contentMain table {
 
+
    background: none;
/* non numbered lists */
+
    border: none;
 
+
    margin: auto;
.content_wrapper ul {
+
  padding: 0px 20px;
+
  font-size: 13px;
+
  font-family: 'Quicksand', sans-serif;
+
 
}
 
}
  
 
+
#contentMain th {
/* numbered lists */
+
    background: none;
 
+
    border: none;
.content_wrapper ol {
+
    border-bottom: 2px solid black;
  padding: 0px;
+
  font-size: 13px;
+
  font-family: 'Quicksand', sans-serif;
+
 
}
 
}
  
 
+
#contentMain td {
/* Table */
+
    background: none;
 
+
    border: none;
.content_wrapper table {
+
  width: 97%;
+
  margin: 15px 10px;
+
  border: 1px solid #d3d3d3;
+
  border-collapse: collapse;
+
 
}
 
}
  
 
+
.navbar {
/* table cells */
+
    overflow: hidden;
 
+
    padding-right: 60px;
.content_wrapper td {
+
    background-color: #ffe97c;
  padding: 10px;
+
    font-family: "Poppins", sans-serif;
  vertical-align: text-top;
+
  border: 1px solid #d3d3d3;
+
  border-collapse: collapse;
+
 
}
 
}
  
 
+
.navbar a {
/* table headers */
+
    float: right;
 
+
    font-size: 14px;
.content_wrapper th {
+
    color: black;
  padding: 10px;
+
    text-align: center;
  vertical-align: text-top;
+
    padding: 14px 16px;
  border: 1px solid #d3d3d3;
+
    text-decoration: none;
  border-collapse: collapse;
+
  background-color: #f2f2f2;
+
 
}
 
}
  
 
+
.dropdown {
/* Button class */
+
    float: right;
 
+
    overflow: hidden;
.button_click {
+
    z-index: 100;
  margin: 10px auto;
+
  padding: 15px;
+
  width: 12%;
+
  text-align: center;
+
  font-weight: bold;
+
  background-color: #72c9b6;
+
  cursor: pointer;
+
  -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;
+
 
}
 
}
  
 
+
.dropdown .dropbtn, .dropdown a {
/* button class on hover */
+
    font-size: 14.5px;   
 
+
    border: none;
.button_click:hover {
+
    outline: none;
  background-color: #000000;
+
    color: black;
  color: #72c9b6;
+
    padding: 13px 24px;
 +
    font-family: "Poppins", sans-serif;
 +
    letter-spacing: 0.05em;
 
}
 
}
  
.top-pad {
+
.dropbtn {
  padding: 35px;
+
    position: relative;
 +
    background-color: rgb(255,255,255);
 +
    background-color: #ffe97c;
 
}
 
}
  
 
+
.dropbtn span {
/********************************* RESPONSIVE STYLING ********************************/
+
    position: absolute;
 
+
    height: 100%;
 
+
/* IF THE SCREEN IS LESS THAN 1000PX */
+
 
+
@media only screen and (max-width: 1000px) {
+
  #content {
+
 
     width: 100%;
 
     width: 100%;
  }
+
     top: 0;
  .menu_wrapper {
+
     left: 0;
     width: 15%;
+
  }
+
  .content_wrapper {
+
     margin-left: 15%;
+
  }
+
  .menu_item {
+
    display: block;
+
  }
+
  .icon {
+
    display: none;
+
  }
+
  .highlight {
+
    padding: 10px 0px;
+
  }
+
 
}
 
}
  
 
+
.dropbtn a {
/* IF THE SCREEN IS LESS THAN 680PX */
+
     padding: 0;
 
+
     float: none;
@media only screen and (max-width: 680px) {
+
  .collapsable_menu_control {
+
    display: block;
+
  }
+
  .menu_item {
+
    display: none;
+
  }
+
  .menu_wrapper {
+
    width: 100%;
+
    height: 15%;
+
    position: relative;
+
  }
+
  .content_wrapper {
+
    width: 100%;
+
    margin-left: 0px;
+
  }
+
  .column.half_size {
+
    width: 100%;
+
  }
+
  .column img {
+
    width: 100%;
+
     padding: 5px 0px;
+
  }
+
  .icon {
+
     display: block;
+
  }
+
  .highlight {
+
    padding: 15px 5px;
+
  }
+
}
+
/*Menu Bar*/
+
.menu, .menu ul {
+
list-style: none;
+
padding: 0;
+
margin: 0;
+
 
}
 
}
  
.menu {
+
.navbar a:hover, .dropdown:hover .dropbtn {
height: 58px;
+
    background-color: #fff4bd;
 
}
 
}
  
.menu li {
+
.dropdown-content {
background: -moz-linear-gradient(#292929, #252525);
+
    display: none;
background: -ms-linear-gradient(#292929, #252525);
+
    position: absolute;
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #292929), color-stop(100%, #252525));
+
    background-color: #fff4bd;
background: -webkit-linear-gradient(#292929, #252525);
+
    min-width: 160px;
background: -o-linear-gradient(#292929, #252525);
+
    box-shadow: 0px 13px 10px -2px rgba(0, 0, 0, 0.12);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#292929', endColorstr='#252525');
+
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#292929', endColorstr='#252525')";
+
background: linear-gradient(#292929, #252525);
+
border-bottom: 2px solid #181818;
+
border-top: 2px solid #303030;
+
min-width: 160px;
+
 
}
 
}
  
.menu > li {
+
.dropdown-content a {
display: block;
+
    float: none;
float: left;
+
    color: black;
position: relative;
+
    padding: 12px 16px;
 +
    text-decoration: none;
 +
    display: block;
 +
    text-align: left;
 +
    letter-spacing: 0;
 
}
 
}
  
.menu > li:first-child {
+
.dropdown-content a:hover {
border-radius: 5px 0 0;
+
    background-color: #fffdec;
 
}
 
}
  
.menu a {
+
.dropdown:hover .dropdown-content {
border-left: 3px solid rgba(0, 0, 0, 0);
+
    display: block;
color: #808080;
+
display: block;
+
font-family: 'Lucida Console';
+
font-size: 18px;
+
line-height: 54px;
+
padding: 0 25px;
+
text-decoration: none;
+
text-transform: uppercase;
+
 
}
 
}
  
.menu li:hover {
 
background-color: #1c1c1c;
 
background: -moz-linear-gradient(#1c1c1c, #1b1b1b);
 
background: -ms-linear-gradient(#1c1c1c, #1b1b1b);
 
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #1c1c1c), color-stop(100%, #1b1b1b));
 
background: -webkit-linear-gradient(#1c1c1c, #1b1b1b);
 
background: -o-linear-gradient(#1c1c1c, #1b1b1b);
 
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#1c1c1c', endColorstr='#1b1b1b');
 
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#1c1c1c', endColorstr='#1b1b1b')";
 
background: linear-gradient(#1c1c1c, #1b1b1b);
 
border-bottom: 2px solid #222222;
 
border-top: 2px solid #1B1B1B;
 
}
 
  
.menu li:hover > a {
+
#logoImg {
border-radius: 5px 0 0 0;
+
    height: 70px;
border-left: 3px solid #C4302B;
+
    position: fixed;
color: #C4302B;
+
    top: 20px;
 +
    left: 0;
 +
    z-index: 2;
 +
    background-color: #FFE97C;
 +
    border-radius: 0 0 100px 0;
 +
    padding: 5px 80px 10px 10px;
 +
    border: none;
 
}
 
}
  
/* submenu styles */
+
figure img {
.submenu {
+
    display: block;
left: 0;
+
    margin: auto;
max-height: 0;
+
position: absolute;
+
top: 100%;
+
z-index: 0;
+
-webkit-perspective: 400px;
+
-moz-perspective: 400px;
+
-ms-perspective: 400px;
+
-o-perspective: 400px;
+
perspective: 400px;
+
 
}
 
}
  
.submenu li {
+
figurecaption {
opacity: 0;
+
    text-align: center;
-webkit-transform: rotateY(90deg);
+
    font-style: italic;
-moz-transform: rotateY(90deg);
+
    display: block;
-ms-transform: rotateY(90deg);
+
    margin: auto;
-o-transform: rotateY(90deg);
+
transform: rotateY(90deg);
+
-webkit-transition: opacity .4s, -webkit-transform .5s;
+
-moz-transition: opacity .4s, -moz-transform .5s;
+
-ms-transition: opacity .4s, -ms-transform .5s;
+
-o-transition: opacity .4s, -o-transform .5s;
+
transition: opacity .4s, transform .5s;
+
 
}
 
}
  
.menu .submenu li:hover a {
+
.clearfix::after {
border-left: 3px solid #454545;
+
    content: "";
border-radius: 0;
+
    clear: both;
color: #ffffff;
+
    display: table;
 
}
 
}
  
.menu > li:hover .submenu, .menu > li:focus .submenu {
+
.fch {
max-height: 2000px;
+
    border-bottom: 2px solid !important;
z-index: 10;
+
 
}
 
}
  
.menu > li:hover .submenu li, .menu > li:focus .submenu li {
+
.fch tr:nth-child(1) th:nth-child(1) {
opacity: 1;
+
    border-bottom: 2px solid !important;
-webkit-transform: none;
+
-moz-transform: none;
+
-ms-transform: none;
+
-o-transform: none;
+
transform: none;
+
 
}
 
}
  
/* CSS3 delays for transition effects */
+
.fch tr th:nth-child(1) {
.menu li:hover .submenu li:nth-child(1) {
+
    border: none !important;
-webkit-transition-delay: 0s;
+
-moz-transition-delay: 0s;
+
-ms-transition-delay: 0s;
+
-o-transition-delay: 0s;
+
transition-delay: 0s;
+
 
}
 
}
  
.menu li:hover .submenu li:nth-child(2) {
+
#contentMain li {
-webkit-transition-delay: 50ms;
+
    font-size: 1.25em;
-moz-transition-delay: 50ms;
+
    line-height: 1.9;
-ms-transition-delay: 50ms;
+
-o-transition-delay: 50ms;
+
transition-delay: 50ms;
+
 
}
 
}
  
.menu li:hover .submenu li:nth-child(3) {
+
#contentMain table li {
-webkit-transition-delay: 100ms;
+
    font-size: 1em;
-moz-transition-delay: 100ms;
+
-ms-transition-delay: 100ms;
+
-o-transition-delay: 100ms;
+
transition-delay: 100ms;
+
 
}
 
}
  
.menu li:hover .submenu li:nth-child(4) {
+
.gifAnimated {
-webkit-transition-delay: 150ms;
+
    position: absolute;
-moz-transition-delay: 150ms;
+
    width: 100%;
-ms-transition-delay: 150ms;
+
    height: calc(100% - 61px);
-o-transition-delay: 150ms;
+
    background-size: contain;
transition-delay: 150ms;
+
    background-position: center;
 +
    background-repeat: no-repeat;
 +
    top: 68px;
 +
    left: 0;
 
}
 
}
  
.menu li:hover .submenu li:nth-child(5) {
+
#headerImg {
-webkit-transition-delay: 200ms;
+
    margin-left: -30.76%;
-moz-transition-delay: 200ms;
+
    margin-right: -23.07%;
-ms-transition-delay: 200ms;
+
-o-transition-delay: 200ms;
+
transition-delay: 200ms;
+
 
}
 
}
  
.menu li:hover .submenu li:nth-child(6) {
+
/* Footer styling */
-webkit-transition-delay: 250ms;
+
-moz-transition-delay: 250ms;
+
-ms-transition-delay: 250ms;
+
-o-transition-delay: 250ms;
+
transition-delay: 250ms;
+
}
+
  
.menu li:hover .submenu li:nth-child(7) {
+
        #pagefooter {
-webkit-transition-delay: 300ms;
+
            width: 100%;
-moz-transition-delay: 300ms;
+
            position: fixed;
-ms-transition-delay: 300ms;
+
            bottom: -250px;
-o-transition-delay: 300ms;
+
            left: 0;
transition-delay: 300ms;
+
            background-color: #FFE97C;
}
+
            transition: all 0.5s ease;
 
+
            padding-left: 10px;
.menu li:hover .submenu li:nth-child(8) {
+
            z-index: 2;
-webkit-transition-delay: 350ms;
+
            font-family: "Poppins", sans-serif;
-moz-transition-delay: 350ms;
+
        }
-ms-transition-delay: 350ms;
+
        #smallfooter {
-o-transition-delay: 350ms;
+
            transition: all 0.5s ease;
transition-delay: 350ms;
+
        }
}
+
        .expanded {
 
+
            bottom: 0 !important;
.submenu li:nth-child(1) {
+
            transition: all 0.5s ease;
-webkit-transition-delay: 350ms;
+
        }
-moz-transition-delay: 350ms;
+
        .expanded #smallfooter {
-ms-transition-delay: 350ms;
+
            opacity: 0;
-o-transition-delay: 350ms;
+
            transition: all 0.5s ease;
transition-delay: 350ms;
+
        }
}
+
        .footerarrow {
 
+
            position: absolute;
.submenu li:nth-child(2) {
+
            top: 4px;
-webkit-transition-delay: 300ms;
+
            left: 50%;
-moz-transition-delay: 300ms;
+
            transform: translateX(-50%);
-ms-transition-delay: 300ms;
+
            transition: transform 0.5s ease-in;
-o-transition-delay: 300ms;
+
            height: 12px;
transition-delay: 300ms;
+
        }
}
+
        .inverted {
 
+
            transform: rotate(180deg);
.submenu li:nth-child(3) {
+
            transition: transform 0.5 ease-in;
-webkit-transition-delay: 250ms;
+
        }
-moz-transition-delay: 250ms;
+
        #bigfooter table {
-ms-transition-delay: 250ms;
+
            border: none;
-o-transition-delay: 250ms;
+
            background: none;
transition-delay: 250ms;
+
        }
}
+
        #bigfooter table tr td {
 
+
            border: none;
.submenu li:nth-child(4) {
+
            background: none;
-webkit-transition-delay: 200ms;
+
        }
-moz-transition-delay: 200ms;
+
        #bigfooter table tr th {
-ms-transition-delay: 200ms;
+
            border: none;
-o-transition-delay: 200ms;
+
            background: none;
transition-delay: 200ms;
+
            font-family: "Raleway-ExtraBold", sans-serif;
}
+
            font-size: 2em;
 
+
            letter-spacing: 1px;
.submenu li:nth-child(5) {
+
            text-transform: uppercase;
-webkit-transition-delay: 150ms;
+
        }
-moz-transition-delay: 150ms;
+
        #footericons {
-ms-transition-delay: 150ms;
+
            float: right;
-o-transition-delay: 150ms;
+
            margin-right: 20px;
transition-delay: 150ms;
+
        }
}
+
        #footericons img{
 
+
            height: 18px;
.submenu li:nth-child(6) {
+
            margin-right: 10px;
-webkit-transition-delay: 100ms;
+
            margin-bottom: 2px;
-moz-transition-delay: 100ms;
+
        }
-ms-transition-delay: 100ms;
+
        #bigfooter {
-o-transition-delay: 100ms;
+
            width: 100%;
transition-delay: 100ms;
+
            position: relative;
}
+
            display: block;
 
+
            height: 250px;
.submenu li:nth-child(7) {
+
        }
-webkit-transition-delay: 50ms;
+
        #footersponsors {
-moz-transition-delay: 50ms;
+
            width: 60%;
-ms-transition-delay: 50ms;
+
            float: left;
-o-transition-delay: 50ms;
+
        }
transition-delay: 50ms;
+
        #footersponsors img {
}
+
            height: 100%;
 
+
        }
.submenu li:nth-child(8) {
+
        #footercontact {
-webkit-transition-delay: 0s;
+
            width: 40%;
-moz-transition-delay: 0s;
+
            float: right;
-ms-transition-delay: 0s;
+
        }
-o-transition-delay: 0s;
+
        #footercontact img {
transition-delay: 0s;
+
            height: 50px;
}
+
        }
 +
        #footersponsors td {
 +
            text-align: center;
 +
            height: 70px;
 +
        }
  
 
</style>
 
</style>
<ul class="menu">
 
    <li><a href="#">Home</a></li>
 
    <li><a href="#">Team</a></li>
 
    <li><a href="#s1">Project</a>
 
        <ul class="submenu">
 
            <li><a href="#">Description</a></li>
 
            <li><a href="#">Design</a></li>
 
            <li><a href="#">Model</a></li>
 
            <li><a href="#">Parts</a></li>
 
            <li><a href="#">Interlab</a></li>
 
            <li><a href="#">Improve</a></li>
 
            <li><a href="#">Hardware</a></li>
 
            <li><a href="#">Evolution</a></li>
 
        </ul>
 
    </li>
 
    <li><a href="#s2">Lab</a>
 
    <ul class="submenu">
 
        <li><a href="#">Experiments</a></li>
 
            <li><a href="#">Results</a></li>
 
            <li><a href="#">Demonstrate</a></li>
 
            <li><a href="#">Safety</a></li>
 
            <li><a href="#">Notebook</a></li>
 
        </ul>
 
    </li>
 
   
 
    <li><a href="#s3">Community</a>
 
    <ul class="submenu">
 
        <li><a href="#">Human Practices</a></li>
 
            <li><a href="#">Integrated Practices</a></li>
 
            <li><a href="#">Public Engagement</a></li>
 
            <li><a href="#">Collaborations</a></li>
 
            <li><a href="#">Safety</a></li>
 
        </ul>
 
    </li>
 
    <li><a href="#">Attributions</a></li>       
 
</ul>
 
  
<script>
+
<div id="contentWrapper">
 +
<div style="position: fixed; width: 100%; top: 16px; left: 0; z-index: 1;">
 +
<div class="navbar">
  
// This is the jquery part of your template.
+
  <div class="dropdown">
// Try not modify any of this code too much since it makes your menu work.
+
    <div class="dropbtn">COMMUNITY</div>
 +
    <div class="dropdown-content">
 +
      <a href="https://2017.igem.org/Team:IISc-Bangalore/HP/Silver">Human Practices</a>
 +
      <a href="https://2017.igem.org/Team:IISc-Bangalore/HP/Gold_Integrated">Integrated Practices</a>
 +
      <a href="https://2017.igem.org/Team:IISc-Bangalore/Collaborations">Collaborations</a>
 +
      <a href="https://2017.igem.org/Team:IISc-Bangalore/Engagement">Public Engagement</a>
 +
      <a href="https://2017.igem.org/Team:IISc-Bangalore/Safety">Safety</a>
  
$(document).ready(function() {
+
    </div>
 +
  </div>
 +
  <div class="dropdown">
 +
    <div class="dropbtn"><a href="https://2017.igem.org/Team:IISc-Bangalore/Hardware"><span></span></a>HARDWARE</div>
 +
    <div class="dropdown-content">
 +
      <a href="https://2017.igem.org/Team:IISc-Bangalore/Hardware">GCODe</a>
 +
      <a href="https://2017.igem.org/Team:IISc-Bangalore/Hardware/GCODe-Mini">Mini</a>
 +
      <a href="https://2017.igem.org/Team:IISc-Bangalore/Hardware/GCODe-Pro">Pro</a>
 +
      <a href="https://2017.igem.org/Team:IISc-Bangalore/Hardware/Results">Results</a>
 +
      <a href="https://2017.igem.org/Team:IISc-Bangalore/Hardware/Notebook">Hardware Evolution</a>
 +
      <a href="https://2017.igem.org/Team:IISc-Bangalore/Hardware/Documentation">Build Your Own</a>
 +
    </div>
 +
  </div>
  
$("#HQ_page").attr('id','');
+
  <div class="dropdown">
 +
    <div class="dropbtn">LAB</div>
 +
    <div class="dropdown-content">
 +
      <a href="https://2017.igem.org/Team:IISc-Bangalore/Assembly">Assembly</a>
 +
      <a href="https://2017.igem.org/Team:IISc-Bangalore/Results">Results</a>
 +
      <a href="https://2017.igem.org/Team:IISc-Bangalore/Demonstrate">Demonstrate</a>
 +
      <a href="https://2017.igem.org/Team:IISc-Bangalore/Notebook">Notebook</a>
 +
      <a href="https://2017.igem.org/Team:IISc-Bangalore/Protocols">Protocols</a>
 +
      <a href="https://2017.igem.org/Team:IISc-Bangalore/InterLab">InterLab</a>
 +
    </div>
 +
  </div>
  
// call the functions that control the menu
+
  <div class="dropdown">
menu_functionality();
+
    <div class="dropbtn">PROJECT</div>
hide_show_menu();
+
    <div class="dropdown-content">
 +
      <a href="https://2017.igem.org/Team:IISc-Bangalore/Description">iFLOAT</a>
 +
      <a href="https://2017.igem.org/Team:IISc-Bangalore/Model">Model</a>
 +
      <a href="https://2017.igem.org/Team:IISc-Bangalore/Experiments">Experiments</a>
 +
      <a href="https://2017.igem.org/Team:IISc-Bangalore/Parts">Parts</a>
 +
      <a href="https://2017.igem.org/Team:IISc-Bangalore/Design">Design</a>
 +
    </div>
 +
  </div>
  
 +
  <div class="dropdown">
 +
    <div class="dropbtn">ABOUT</div>
 +
    <div class="dropdown-content">
 +
      <a href="https://2017.igem.org/Team:IISc-Bangalore/Team">Team</a>
 +
      <a href="https://2017.igem.org/Team:IISc-Bangalore/Philosophy">Philosophy</a>
 +
      <a href="https://2017.igem.org/Team:IISc-Bangalore/Attributions">Attributions</a>
 +
    </div>
 +
  </div>
  
 +
  <div class="dropdown">
 +
    <a href="https://2017.igem.org/Team:IISc-Bangalore">HOME</a>
 +
  </div>
 +
</div>
 +
  <a href="https://2017.igem.org/Team:IISc-Bangalore"><img id="logoImg" src="/wiki/images/6/65/T--IISc-Bangalore--logo-new.png"></a>
 +
</div>
  
//this function controls the expand and collapse buttons of the menu and changes the +/- symbols
+
<div id="pagefooter" class="clearfix">
function menu_functionality() {
+
        <div id="smallfooter" class="clearfix">
 +
            <div id="footericons">
 +
                <a href="https://www.facebook.com/iiscbangaloreigem/"><img src="https://static.igem.org/mediawiki/2017/4/4b/T--IISc-Bangalore--fb_new.svg" /></a><a href="https://twitter.com/igem_iiscUG"><img src="https://static.igem.org/mediawiki/2017/b/be/T--IISc-Bangalore--twitter_new.svg" /></a><a href="mailto:igem.2017.iisc@gmail.com"><img src="https://static.igem.org/mediawiki/2017/e/e8/T--IISc-Bangalore--mail.svg" /></a>
 +
            </div>
 +
        </div>
 +
        <img class="footerarrow" src="https://static.igem.org/mediawiki/2017/6/62/T--IISc-Bangalore--arrow.png" width="20px" />
 +
        <div id="bigfooter" class="clearfix">
 +
            <div id="footersponsors">
 +
<table style="margin: auto">
 +
<tr>
  
//when clicking on a "menu_button", it will change the "+/-" accordingly and it will show/hide the corresponding submenu
+
<th colspan="6">Sponsors</th>
$(".menu_button").click(function(){
+
  
// add or remove the class "open" , this class holds the "-"
+
</tr>
$(this).children().toggleClass("open");
+
<tr>
// show or hide the submenu
+
<td colspan="2"><a href="http://www.iisc.ac.in/"><img src="https://static.igem.org/mediawiki/2017/8/82/T--IISc-Bangalore--iisc.png"></a></td>
$(this).next('.submenu_wrapper').fadeToggle(400);
+
<td colspan="2"><a href="http://www.dbtindia.nic.in/"><img src="https://static.igem.org/mediawiki/2017/7/78/T--IISc-Bangalore--dbt.png"></a></td>
});
+
<td colspan="2"><a href="http://www.dbtindia.nic.in/ibec-indian-biological-engineering-competition/"><img src="https://static.igem.org/mediawiki/2017/8/89/T--IISc-Bangalore--ibec.png"></a></td>
 
+
</tr>
// when the screen size is smaller than 800px, the display_menu_control button appears and will show/hide the whole menu
+
<tr>
$("#display_menu_control").click(function(){
+
<td colspan="3"><a href="https://www.justdial.com/Tirunelveli/South-India-Bottling-Co-Pvt-Ltd-Gangaikondan/0462P462STD2100023_BZDET"><img src="https://static.igem.org/mediawiki/2017/f/f4/T--IISc-Bangalore--sibc-updated.png"></a></td>
$('#menu_content').fadeToggle(400);
+
<td colspan="3"><a href="http://www.snapgene.com/"><img src="https://static.igem.org/mediawiki/2017/4/41/T--IISc-Bangalore--snapgene2.png"></a></td>
});
+
</tr>
 
+
// 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_2017_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_2017_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);
+
}
+
}
+
 
+
 
+
});
+
  
 +
                </table>
 +
            </div><div id="footercontact">
 +
                <table style="margin: auto">
 +
                    <tr><th colspan="6">Contact</th></tr>
 +
                    <tr><td>&nbsp;</td></tr>
 +
                    <tr>
 +
                        <td><a href="https://www.facebook.com/iiscbangaloreigem/"><img src="https://static.igem.org/mediawiki/2017/4/4b/T--IISc-Bangalore--fb_new.svg" /></a></td>
 +
                        <td><a href="https://twitter.com/igem_iiscUG"><img src="https://static.igem.org/mediawiki/2017/b/be/T--IISc-Bangalore--twitter_new.svg" /></a></td>
 +
                        <td><a href="mailto:igem.2017.iisc@gmail.com"><img src="https://static.igem.org/mediawiki/2017/e/e8/T--IISc-Bangalore--mail.svg" /></a></td>
 +
                    </tr>
 +
                    <tr><td>&nbsp;</td></tr>
 +
                </table>
 +
            </div>
 +
        </div>
 +
    </div>
 +
</div>
  
 +
<script type="text/javascript" src="https://2017.igem.org/Template:IISc-Bangalore/slide-nav?action=raw&ctype=text/javascript"></script>
 +
<script>
 +
    $("#pagefooter").click(function() {
 +
        $("#pagefooter").toggleClass("expanded");
 +
        $(".footerarrow").toggleClass("inverted");
 +
    });
 +
$(document).ready(function(){
 +
    var headings = document.getElementsByTagName("h1");
 +
    var i;
 +
    for (i=0; i<headings.length; i++) {
 +
        var sometext = headings[i].innerHTML;
 +
        console.log(sometext);
 +
        headings[i].innerHTML = "<img src='https://static.igem.org/mediawiki/2017/c/c9/T--IISc-Bangalore--title_flank_left.png'>"+sometext+"<img src='https://static.igem.org/mediawiki/2017/a/a2/T--IISc-Bangalore--title_flank_right.png'>";
 +
    }
 +
})
 
</script>
 
</script>
<!-- start of content -->
+
</html>
<div>
+
<h1>IISc-Bangalore</h1>
+

Latest revision as of 03:45, 2 November 2017