Difference between revisions of "Team:elan vital korea"

 
(165 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<html lang=''>
+
{{ElanVitalKoreaMWlook}}
<head>
+
{{ElanVitalKorea}}
  <meta charset='utf-8'>
+
 
   <meta http-equiv="X-UA-Compatible" content="IE=edge">
+
<html>
  <meta name="viewport" content="width=device-width, initial-scale=1">
+
 
   <link rel="stylesheet" href="styles.css">
+
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
  <script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
+
<script>
  <script src="script.js"></script>
+
$(document).ready(function(){
 +
    // Cache the Window object
 +
    $window = $(window);
 +
               
 +
   $('section[data-type="background"]').each(function(){
 +
    var $bgobj = $(this); // assigning the object
 +
                   
 +
      $(window).scroll(function() {
 +
                   
 +
        // Scroll the background at var speed
 +
        // the yPos is a negative value because we're scrolling it UP!                               
 +
        var yPos = -($window.scrollTop() / $bgobj.data('speed'));
 +
       
 +
        // Put together our final background position
 +
        var coords = '50% '+ yPos + 'px';
 +
 
 +
        // Move the background
 +
        $bgobj.css({ backgroundPosition: coords });
 +
       
 +
}); // window scroll Ends
 +
 
 +
});    
 +
 
 +
});
 +
/*
 +
* Create HTML5 elements for IE's sake
 +
*/
 +
 
 +
document.createElement("article");
 +
document.createElement("section");
 +
</script>
 +
<style>
 +
body{
 +
    margin:0;
 +
    padding:0;
 +
}
 +
 
 +
 
 +
#home {
 +
    background: url(https://static.igem.org/mediawiki/2015/archive/2/24/20150829203509!ElanVital_Bg.png) 50% 0 no-repeat fixed;
 +
    height: 1000px; 
 +
    margin: 0 auto;
 +
    width: 100%;
 +
    max-width: 1920px;
 +
    position: relative;
 +
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
 +
}
 +
#about {
 +
    background: url(https://static.igem.org/mediawiki/2015/2/28/Elan_Vital_solidbg.JPG) 50% 0 no-repeat fixed;
 +
    height: 1000px;
 +
    margin: 0 auto;
 +
    width: 100%;
 +
    max-width: 1920px;
 +
    position: relative;
 +
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
 +
}
 +
 
 +
/* Introduction */
 +
 
 +
#home article { background: url("#") no-repeat scroll center top transparent; height: 458px; position: absolute; text-indent: -9999px; top: 291px; width: 100%; }
 +
 
 +
#about article { background: url("#") no-repeat scroll center top transparent; height: 458px; position: absolute; text-indent: -9999px; top: 291px; width: 100%; }
 +
 
 +
 
 +
 
 +
 
 +
.galleryItem {
 +
    color: #797478;
 +
    font: 10px/1.5 Verdana, Helvetica, sans-serif;
 +
    float: left;   
 +
    width: 16%;
 +
    margin:  2% 2% 50px 2%;
 +
}
 +
 +
.galleryItem h2 {
 +
    text-transform: uppercase;
 +
}
 +
 +
.galleryItem img {
 +
    max-width: 100%;
 +
    -webkit-border-radius: 5px;
 +
    -moz-border-radius: 5px;
 +
    border-radius: 5px;
 +
}
 +
 
 +
 
 +
 
 +
.center {
 +
  position: absolute;
 +
  margin: auto;
 +
  top: 0;
 +
  right: 0;
 +
  bottom: 0;
 +
  left: 0;
 +
  width: 100px;
 +
  height: 100px;
 +
  border-radius: 3px;
 +
}
 +
 
 +
IMG.displayed {
 +
    display: block;
 +
    margin-left: auto;
 +
    margin-right: auto; }
 +
 
 +
h4 {
 +
color:white;
 +
font-size: 24px;
 +
letter-spacing:1px;
 +
line-height:25px;
 +
}
 +
 
 +
h5{
 +
text-decoration:none;
 +
font-size: 24px;
 +
letter-spacing:1px;
 +
line-height:25px;
 +
}
 +
 
 +
 
 +
IMG.igem {
 +
float:right;
 +
width:5%;
 +
margin:20px;
 +
}
 +
 
 +
</style>
 +
 
 
</head>
 
</head>
 +
 
<body>
 
<body>
 +
    <!-- Section #1 -->
 +
        <section id="home" data-speed="10" data-type="background">
 +
        <a href="#"> <img class="igem" src="https://static.igem.org/mediawiki/2015/7/70/IGEM_Logo.gif"></a>
 +
         
 +
            <br>
 +
            <br>
 +
            <br>
 +
            <br>
 +
            <br>
 +
            <br>
 +
            <br>
 +
<div class="center;">
 +
                <a href="https://2015.igem.org/Team:elan_vital_korea">
 +
                    <img class="displayed" src="https://static.igem.org/mediawiki/2015/d/d5/ElanVital_Logo.png">
 +
                </a>
  
<div id='cssmenu'>
+
                <h4 style="text-align:center;">
<ul>
+
                    HOME <br>
  <li><a href='#'><span>Home</span></a></li>
+
                </h4>
  <li class='active has-sub'><a href='#'><span>Products</span></a>
+
                </div>
      <ul>
+
          </div>
        <li class='has-sub'><a href='#'><span>Product 1</span></a>
+
    </section>
            <ul>
+
 
              <li><a href='#'><span>Sub Product</span></a></li>
+
<script>
              <li class='last'><a href='#'><span>Sub Product</span></a></li>
+
$('a').click(function(){
            </ul>
+
    $('html, body').animate({
        </li>
+
        scrollTop: $( $(this).attr('href') ).offset().top
        <li class='has-sub'><a href='#'><span>Product 2</span></a>
+
    }, 500);
            <ul>
+
    return false;
              <li><a href='#'><span>Sub Product</span></a></li>
+
});
              <li class='last'><a href='#'><span>Sub Product</span></a></li>
+
</script>
            </ul>
+
        </li>
+
      </ul>
+
  </li>
+
  <li><a href='#'><span>About</span></a></li>
+
  <li class='last'><a href='#'><span>Contact</span></a></li>
+
</ul>
+
</div>
+
  
 
</body>
 
</body>
<html>
+
 
 +
</html>

Latest revision as of 09:13, 7 September 2015








HOME