Template:AUC TURKEY

From 2014hs.igem.org

(Difference between revisions)
Line 1: Line 1:
-
__NOTOC__
+
__NOTOC__<html>
-
 
+
-
<html>
+
<head>
<head>
-
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
+
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" type="text/javascript"></script>
-
<script>
+
<script type="text/javascript">
 +
$(document).ready(function(){
 +
 
 +
//$('#verticalmenu').position().left = -$('#verticalmenu').width();
   $(window).scroll(function(){
   $(window).scroll(function(){
       if ($(this).scrollTop() > 210) {
       if ($(this).scrollTop() > 210) {
-
           $('#cssmenu').addClass('fixed');
+
  if($('#verticalmenu').position().left == -$('#verticalmenu').width()/*-$('#verticalmenu').width(*/)
 +
$( '#verticalmenu' ).animate({
 +
opacity: 1,
 +
left: 0,
 +
  }, 200, function() {
 +
    // Animation complete.
 +
  });
 +
           //$('#cssmenu').addClass('fixed');
 +
  //$('#verticalmenu').slideDown();
       } else {
       } else {
-
           $('#cssmenu').removeClass('fixed');
+
  if($('#verticalmenu').position().left == 0)
 +
$( '#verticalmenu' ).animate({
 +
opacity: 1,
 +
left: -$('#verticalmenu').width(),
 +
  }, 200, function() {
 +
    // Animation complete.
 +
  });
 +
 
 +
//$('#verticalmenu').animate({"left":"0px"}, "slow").removeClass('visible');
 +
           //$('#cssmenu').removeClass('fixed');
 +
  //$('#verticalmenu').slideUp();
       }
       }
   });
   });
 +
});
 +
</script>
 +
<script type="text/javascript">
 +
$(document).ready(function(){
 +
 +
$('#verticalmenu > ul > li > a').click(function() {
 +
  $('#verticalmenu li').removeClass('active');
 +
  $(this).closest('li').addClass('active');
 +
  var checkElement = $(this).next();
 +
  if((checkElement.is('ul')) ) {
 +
if(checkElement.is(':visible')) {
 +
   
 +
    $(this).closest('li').removeClass('active');
 +
    checkElement.slideUp('normal');
 +
  }
 +
}
 +
  if((checkElement.is('ul'))) {
 +
  if(!checkElement.is(':visible')) {
 +
   
 +
    $('#verticalmenu ul ul:visible').slideUp('normal');
 +
    checkElement.slideDown('normal');
 +
  }
 +
}
 +
  if($(this).closest('li').find('ul').children().length == 0) {
 +
    return true;
 +
  } else {
 +
    return false;
 +
  }
 +
});
 +
});
</script>
</script>
<style type="text/css">
<style type="text/css">
-
@import url(http://fonts.googleapis.com/css?family=Source+Sans+Pro:500);
 
-
.fixed {position:fixed; top:0; left:8;}
 
#top-section, #footer-box, #catlinks, .firstHeading
#top-section, #footer-box, #catlinks, .firstHeading
{
{
Line 26: Line 73:
#content
#content
{
{
-
width:100%;
+
width:110%;
height:100%;
height:100%;
background-color:transparent;
background-color:transparent;
}
}
-
/* 2f4b87 */
+
@import url(http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700);
-
/* 2f4b87 */
+
 
-
/* #1f325d */
+
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,600,300);
-
/* Menu CSS */
+
@charset 'UTF-8';
-
#cssmenu {
+
/* Base Styles */
-
  width: auto;
+
#verticalmenu,
-
}
+
#verticalmenu ul,
-
#cssmenu,
+
#verticalmenu li,
-
#cssmenu ul,
+
#verticalmenu a {
-
#cssmenu ul li,
+
-
#cssmenu ul li a {
+
-
  padding: 0;
+
   margin: 0;
   margin: 0;
 +
  padding: 0;
 +
  border: 0;
 +
  list-style: none;
 +
  font-weight: normal;
 +
  text-decoration: none;
   line-height: 1;
   line-height: 1;
-
   font-family: 'Source Sans Pro', sans-serif;
+
   font-family: 'Open Sans', sans-serif;
-
  font-weight: 500;
+
   font-size: 14px;
-
   font-size: 16px;
+
   position: relative;
-
  color: #ffffff;
+
-
  -webkit-transition: all ease .3s;
+
-
  -o-transition: all ease .3s;
+
-
  -moz-transition: all ease .3s;
+
-
  -ms-transition: all ease .3s;
+
-
   transition: all ease .3s;
+
}
}
-
#cssmenu:before,
+
#verticalmenu {
-
#cssmenu:after,
+
  width: 250px;
-
#cssmenu > ul:before,
+
  border-bottom: 4px solid #656659;
-
#cssmenu > ul:after {
+
  -webkit-border-radius: 3px;
-
   content: '';
+
   -moz-border-radius: 3px;
-
   display: table;
+
   border-radius: 3px;
}
}
-
#cssmenu:after,
+
#verticalmenu a {
-
#cssmenu > ul:after {
+
   line-height: 1.3;
-
   clear: both;
+
}
}
-
#cssmenu a {
+
#verticalmenu > ul > li:first-child {
-
   text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
+
   background: #66665e;
 +
  background: -moz-linear-gradient(#66665e 0%, #45463d 100%);
 +
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #66665e), color-stop(100%, #45463d));
 +
  background: -webkit-linear-gradient(#66665e 0%, #45463d 100%);
 +
  background: linear-gradient(#66665e 0%, #45463d 100%);
 +
  border: 1px solid #45463d;
 +
  -webkit-border-radius: 3px 3px 0 0;
 +
  -moz-border-radius: 3px 3px 0 0;
 +
  border-radius: 3px 3px 0 0;
}
}
-
#cssmenu ul {
+
#verticalmenu > ul > li:first-child > a {
-
   background: #3b5998;
+
   padding: 15px 10px;
-
   border-radius: 3px;
+
   background: url(pattern.png) top left repeat;
-
   border: 1px solid #2b4479;
+
   border: none;
-
   border: 1px solid #2d4373;
+
   border-top: 1px solid #818176;
-
   -webkit-box-shadow: 0 1px 2px rgba(2, 2, 2, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.15);
+
   -webkit-border-radius: 3px 3px 0 0;
-
   -o-box-shadow: 0 1px 2px rgba(2, 2, 2, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.15);
+
   -moz-border-radius: 3px 3px 0 0;
-
   -moz-box-shadow: 0 1px 2px rgba(2, 2, 2, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.15);
+
  border-radius: 3px 3px 0 0;
-
   -ms-box-shadow: 0 1px 2px rgba(2, 2, 2, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.15);
+
   font-family: 'Ubuntu', sans-serif;
-
   box-shadow: 0 1px 2px rgba(2, 2, 2, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.15);
+
  text-align: center;
 +
   font-size: 18px;
 +
  font-weight: 300;
 +
   text-shadow: 0 -1px 1px #000000;
}
}
-
#cssmenu ul > li {
+
#verticalmenu > ul > li:first-child > a > span {
-
   float: left;
+
   padding: 0;
-
  list-style: none;
+
}
}
-
#cssmenu ul > li > a {
+
#verticalmenu > ul > li:first-child:hover {
 +
  background: #66665e;
 +
  background: -moz-linear-gradient(#66665e 0%, #45463d 100%);
 +
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #66665e), color-stop(100%, #45463d));
 +
  background: -webkit-linear-gradient(#66665e 0%, #45463d 100%);
 +
  background: linear-gradient(#66665e 0%, #45463d 100%);
 +
}
 +
#verticalmenu > ul > li {
 +
  background: #e94f31;
 +
  background: -moz-linear-gradient(#e94f31 0%, #d13516 100%);
 +
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #e94f31), color-stop(100%, #d13516));
 +
  background: -webkit-linear-gradient(#e94f31 0%, #d13516 100%);
 +
  background: linear-gradient(#e94f31 0%, #d13516 100%);
 +
}
 +
#verticalmenu > ul > li:hover {
 +
  background: #e84323;
 +
  background: -moz-linear-gradient(#e84323 0%, #c33115 100%);
 +
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #e84323), color-stop(100%, #c33115));
 +
  background: -webkit-linear-gradient(#e84323 0%, #c33115 100%);
 +
  background: linear-gradient(#e84323 0%, #c33115 100%);
 +
}
 +
#verticalmenu > ul > li > a {
 +
  font-size: 14px;
   display: block;
   display: block;
 +
  background: url(pattern.png) top left repeat;
 +
  color: #ffffff;
 +
  border: 1px solid #ba2f14;
 +
  border-top: none;
 +
  text-shadow: 0 -1px 1px #751d0c;
 +
}
 +
#verticalmenu > ul > li > a > span {
 +
  display: block;
 +
  padding: 12px 10px;
 +
  -webkit-border-radius: 4px;
 +
  -moz-border-radius: 4px;
 +
  border-radius: 4px;
 +
}
 +
#verticalmenu > ul > li > a:hover {
   text-decoration: none;
   text-decoration: none;
-
  padding: 15px 44px;
 
-
  position: relative;
 
}
}
-
#cssmenu ul > li > a:hover {
+
#verticalmenu > ul > li.active {
-
   background: #2d4373;
+
   border-bottom: none;
-
  -webkit-box-shadow: inset 0 0 1px #1e2e4f;
+
-
  -o-box-shadow: inset 0 0 1px #1e2e4f;
+
-
  -moz-box-shadow: inset 0 0 1px #1e2e4f;
+
-
  -ms-box-shadow: inset 0 0 1px #1e2e4f;
+
-
  box-shadow: inset 0 0 1px #1e2e4f;
+
-
  -webkit-transition: all ease .3s;
+
-
  -o-transition: all ease .3s;
+
-
  -moz-transition: all ease .3s;
+
-
  -ms-transition: all ease .3s;
+
-
  transition: all ease .3s;
+
}
}
-
#cssmenu ul > li > a:hover:before {
+
#verticalmenu > ul > li.has-sub > a span {
-
   content: '';
+
   background: url(icon_plus.png) 96% center no-repeat;
-
  z-index: 2;
+
-
  position: absolute;
+
-
  border: 1px solid white;
+
-
  border-top: 0;
+
-
  border-bottom: 0;
+
-
  border-right: 0;
+
-
  width: 100%;
+
-
  height: 100%;
+
-
  top: 0;
+
-
  left: -1px;
+
-
  opacity: .2;
+
}
}
-
#cssmenu ul > li > a:hover:after {
+
#verticalmenu > ul > li.has-sub.active > a span {
-
   content: '';
+
   background: url(icon_minus.png) 96% center no-repeat;
-
  z-index: 2;
+
-
  position: absolute;
+
-
  border: 1px solid white;
+
-
  border-top: 0;
+
-
  border-bottom: 0;
+
-
  border-left: 0;
+
-
  width: 100%;
+
-
  height: 100%;
+
-
  top: 0;
+
-
  right: -1px;
+
-
  opacity: .2;
+
}
}
-
#cssmenu > ul > li > ul {
+
/* Sub menu */
-
   opacity: 0;
+
#verticalmenu ul ul {
-
   visibility: hidden;
+
   display: none;
-
   position: absolute;
+
   background: #fff;
 +
   border-right: 1px solid #a2a194;
 +
  border-left: 1px solid #a2a194;
}
}
-
#cssmenu > ul > li:hover > ul {
+
#verticalmenu ul ul li {
-
   opacity: 1;
+
   padding: 0;
-
   visibility: visible;
+
   border-bottom: 1px solid #d4d4d4;
-
  position: absolute;
+
   border-top: none;
-
   border-radius: 0 0 3px 3px;
+
   background: #f7f7f7;
-
   -webkit-box-shadow: none;
+
   background: -moz-linear-gradient(#f7f7f7 0%, #ececec 100%);
-
   -o-box-shadow: none;
+
   background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f7f7f7), color-stop(100%, #ececec));
-
   -moz-box-shadow: none;
+
   background: -webkit-linear-gradient(#f7f7f7 0%, #ececec 100%);
-
   -ms-box-shadow: none;
+
   background: linear-gradient(#f7f7f7 0%, #ececec 100%);
-
   box-shadow: none;
+
}
}
-
#cssmenu > ul > li > ul {
+
#verticalmenu ul ul li:last-child {
-
   width: 200px;
+
   border-bottom: none;
-
  position: absolute;
+
}
}
-
#cssmenu > ul > li > ul > li {
+
#verticalmenu ul ul a {
-
   float: none;
+
   padding: 10px 10px 10px 25px;
-
   position: relative;
+
   display: block;
-
}
+
   color: #676767;
-
#cssmenu > ul > li > ul > li > ul {
+
   font-size: 12px;
-
   opacity: 0;
+
   font-weight: normal;
-
   visibility: hidden;
+
-
   position: absolute;
+
}
}
-
#cssmenu > ul > li > ul > li:hover > ul {
+
#verticalmenu ul ul a:before {
-
   opacity: 1;
+
   content: '»';
-
  visibility: visible;
+
   position: absolute;
   position: absolute;
 +
  left: 10px;
 +
  color: #e94f31;
}
}
-
#cssmenu > ul > li > ul > li > ul {
+
#verticalmenu ul ul a:hover {
-
   left: 200px;
+
   color: #e94f31;
-
  top: 1px;
+
-
  width: 200px;
+
}
}
-
#cssmenu > ul > li > ul > li > ul > li {
+
#verticalmenu {
-
  float: none;
+
position: fixed;
 +
top:75px;
 +
left:-250px;
}
}
-
#cssmenu
 
-
{
 
-
margin: auto;
 
-
}
 
</style>
</style>
</head>
</head>
Line 182: Line 231:
<img div id="mush" src="http://wallpoper.com/images/00/43/45/42/macro-mushroom_00434542.jpg" height="200" width="1332">
<img div id="mush" src="http://wallpoper.com/images/00/43/45/42/macro-mushroom_00434542.jpg" height="200" width="1332">
-
<div id='cssmenu'>
+
<div id='verticalmenu'>
<ul>
<ul>
-
   <li class='active'><a href='index.html'><span>Home</span></a></li>
+
   <li><a href='index.html'><span>Home</span></a></li>
-
   <li class='has-sub'><a href='#'><span>Project</span></a>
+
   <li class='has-sub'><a href='#'><span>Products</span></a>
       <ul>
       <ul>
-
         <li class='has-sub'><a href='#'><span>Main Idea</span></a>
+
         <li><a href='#'><span>Widgets</span></a></li>
-
            <ul>
+
        <li><a href='#'><span>Menus</span></a></li>
-
              <li><a href='#'><span>Some stuffs</span></a></li>
+
         <li class='last'><a href='#'><span>Products</span></a></li>
-
              <li class='last'><a href='#'><span>Some stuffs</span></a></li>
+
-
            </ul>
+
-
         </li>
+
-
        <li class='has-sub'><a href='#'><span>How it happened?</span></a>
+
-
            <ul>
+
-
              <li><a href='#'><span>Blabla</span></a></li>
+
-
              <li class='last'><a href='#'><span>Blabla</span></a></li>
+
-
            </ul>
+
-
        </li>
+
       </ul>
       </ul>
   </li>
   </li>
-
   <li class='has-sub'><a href='#'><span>Human Practice</span></a>
+
   <li class='has-sub'><a href='#'><span>Company</span></a>
       <ul>
       <ul>
-
         <li class='last'><a href='#'><span>Stuffs</span></a></li>
+
        <li><a href='#'><span>About</span></a></li>
 +
         <li class='last'><a href='#'><span>Location</span></a></li>
       </ul>
       </ul>
   </li>
   </li>
Line 209: Line 250:
</ul>
</ul>
</div>
</div>
-
 
-
 
</html>
</html>

Revision as of 07:12, 4 June 2014