Line 1: | Line 1: | ||
+ | |||
+ | </div></div> | ||
<html lang="en"> | <html lang="en"> | ||
− | |||
<head> | <head> | ||
+ | <script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
− | <script src=" | + | <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> |
+ | <link href='https://fonts.googleapis.com/css?family=Exo|Lora' rel='stylesheet' type='text/css'> | ||
+ | |||
<link href='https://fonts.googleapis.com/css?family=Raleway:400,200' rel='stylesheet' type='text/css'> | <link href='https://fonts.googleapis.com/css?family=Raleway:400,200' rel='stylesheet' type='text/css'> | ||
− | < | + | <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css"> |
− | + | ||
</head> | </head> | ||
+ | <body> | ||
+ | <style> | ||
+ | #UMD-content { | ||
+ | font-family: Raleway; | ||
+ | margin-top: 100px; | ||
+ | margin-left: 50px; | ||
+ | margin-right: 50px; | ||
+ | color: white; | ||
+ | font-weight: 200; | ||
+ | } | ||
+ | |||
+ | #UMD-content a { | ||
+ | color: white; | ||
+ | } | ||
+ | |||
+ | #nav li { | ||
+ | display: inline; | ||
+ | font-size: 18pt; | ||
+ | margin-right: 35px; | ||
+ | } | ||
+ | |||
+ | #nav { | ||
+ | position: absolute; | ||
+ | right: 100px; | ||
+ | left: auto; | ||
+ | top: 100px; | ||
+ | display: block; | ||
+ | } | ||
+ | |||
+ | #nav ul { | ||
+ | list-style: none; | ||
+ | } | ||
+ | |||
+ | .h2 { | ||
+ | display: none; | ||
+ | font-size: 36pt; | ||
+ | margin-top: 0px; | ||
+ | } | ||
+ | |||
+ | .h3 { | ||
+ | display: none; | ||
+ | font-size: 20pt; | ||
+ | line-height: 1.5em; | ||
+ | } | ||
+ | |||
+ | .small { | ||
+ | font-size: 14pt; | ||
+ | position: absolute; | ||
+ | display: block; | ||
+ | bottom: 40px; | ||
+ | top: auto; | ||
+ | right: 100px; | ||
+ | left: auto; | ||
+ | } | ||
+ | |||
+ | #div-text { | ||
+ | width: 1200px; | ||
+ | padding-top: 20px; | ||
+ | } | ||
+ | |||
+ | #img-logo { | ||
+ | display: none; | ||
+ | margin-top: 10px; | ||
+ | float: left; | ||
+ | margin-right: 50px; | ||
+ | } | ||
+ | |||
+ | .notOutline { | ||
+ | margin-top: 250px; | ||
+ | } | ||
+ | |||
+ | .hide { | ||
+ | display: none; | ||
+ | } | ||
+ | </style> | ||
<div id="UMD-content"> | <div id="UMD-content"> | ||
− | < | + | <div class="hide"> |
− | + | <nav id="nav"> | |
− | // | + | <ul> |
− | + | <li><a href="https://2016.igem.org/Team:UMaryland/projects">Projects</a></li> | |
− | + | <!-- | |
− | + | <li><a href="https://2016.igem.org/Team:UMaryland/parts">Parts</a></li> | |
− | + | <li><a href="https://2016.igem.org/Team:UMaryland/modeling">Modeling</a></li> | |
− | + | --> | |
+ | <li><a href="https://2016.igem.org/Team:UMaryland/outreach">Outreach</a></li> | ||
+ | <li><a href="https://2016.igem.org/Team:UMaryland/notebook">Notebook</a></li> | ||
+ | <li><a href="https://2016.igem.org/Team:UMaryland/about">About Us</a></li> | ||
+ | </ul> | ||
+ | </nav> | ||
+ | </div> | ||
+ | <div class="notOutline"> | ||
+ | <img src="https://static.igem.org/mediawiki/2016/2/26/T--UMaryland--newlogo.jpeg" id="img-logo" alt="UMaryland iGEM Logo" width="300px"/> | ||
+ | <div id="div-text"> | ||
+ | <p class="h2">Biosequestration of Methane</p> | ||
+ | <p class="h3">Creating a strain of E. coli that break down methane to be implemented into landfills as an environmentally friendly strategy for ameliorating global climate change</p> | ||
+ | </div> | ||
+ | <div class="hide"> | ||
+ | <p class="small">Follow us on <a target="_blank" href="https://www.facebook.com/UMarylandiGEM/" style="text-decoration: underline;">Facebook</a> and <a target="_blank" href="https://www.instagram.com/umarylandigem/" style="text-decoration: underline;">Instagram</a> for updates!</p> | ||
+ | </div> | ||
+ | </div> | ||
+ | <div class="covervid-wrapper"> | ||
+ | <video class="covervid-video" autoplay loop> | ||
+ | <source src="https://static.igem.org/mediawiki/2016/4/4b/T--UMaryland--landfill.webm" type="video/webm"> | ||
+ | <source src="https://static.igem.org/mediawiki/2016/0/03/T--UMaryland--landfill.mp4" type="video/mp4"> | ||
+ | </video> | ||
+ | </div> | ||
</div> | </div> | ||
− | |||
<style> | <style> | ||
− | + | .covervid-wrapper { | |
+ | position: absolute; | ||
+ | top: 0; | ||
+ | left: 0; | ||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
− | + | z-index: -999; | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
</style> | </style> | ||
− | < | + | </div> |
− | + | <script> | |
+ | var height = $(document).outerHeight(true); | ||
+ | var width = $(document).outerWidth(true); | ||
− | + | resizeVid(); | |
− | + | $( window ).resize(function() { | |
− | + | resizeVid() | |
− | + | }) | |
− | + | ||
− | + | ||
− | } | + | |
− | + | function resizeVid() { | |
− | + | $('.covervid-video').css("width",""); | |
− | + | $('.covervid-video').css("height",""); | |
+ | height = $(document).outerHeight(true); | ||
+ | width = $(document).outerWidth(true); | ||
+ | ratio = width / height; | ||
+ | if (ratio < 1.777777777777) { | ||
+ | $('.covervid-video').css('height', height+20) | ||
+ | } else if (ratio >= 1.777777777777) { | ||
+ | $('.covervid-video').css('width',width+20) | ||
+ | } | ||
} | } | ||
+ | |||
+ | |||
+ | $.fn.extend({ | ||
+ | animateCss: function (animationName) { | ||
+ | var animationEnd = 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend'; | ||
+ | this.addClass('animated ' + animationName).one(animationEnd, function() { | ||
+ | $(this).removeClass('animated ' + animationName); | ||
+ | }); | ||
+ | } | ||
+ | }); | ||
− | . | + | $(window).load(function() { |
− | + | var timeoutID; | |
− | + | ||
− | + | $('#img-logo, .h2').animateCss('fadeInUp'); | |
− | + | $('.h2, #img-logo').css('display','block'); | |
− | + | timeoutID = window.setTimeout(show2, 800); | |
− | + | ||
− | + | ||
− | + | }) | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | } | + | |
− | + | function show2(){ | |
− | + | $('.h3').animateCss('fadeInUp'); | |
− | + | $('.h3').css('display','block'); | |
− | + | timeoutID = window.setTimeout(show3, 800); | |
} | } | ||
− | + | ||
− | + | function show3() { | |
− | + | $('nav, .small').animateCss('fadeInUp'); | |
− | + | $('.hide').css('display','block') | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
− | + | </script> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | </ | + | |
</html> | </html> |
Revision as of 01:44, 5 September 2016
</div></div>