Difference between revisions of "Team:UChile OpenBio-CeBiB"

 
(226 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{:Team:UChile OpenBio-CeBiB/Template/2}}
 
{{:Team:UChile OpenBio-CeBiB/Template/2}}
 
<html>
 
<html>
 +
<head>
 
<style>
 
<style>
bg { position: fixed; top: 0; left: 0; }
 
.bgwidth { width: 100%; }
 
.bgheight { height: 100%; }
 
</style>
 
<script type="text/javascript">
 
$(window).load(function() {   
 
  
var theWindow        = $(window),
 
    $bg              = $("#bg"),
 
    aspectRatio      = $bg.width() / $bg.height();
 
       
 
function resizeBg() {
 
 
if ( (theWindow.width() / theWindow.height()) < aspectRatio ) {
 
    $bg
 
    .removeClass()
 
    .addClass('bgheight');
 
} else {
 
    $bg
 
    .removeClass()
 
    .addClass('bgwidth');
 
}
 
 
}
 
                 
 
theWindow.resize(resizeBg).trigger("resize");
 
  
});
+
#home {
</script>
+
min-height:2500px;
 +
width:100%;
 +
background: url('https://static.igem.org/mediawiki/2017/4/49/T--UChile_OpenBio-CeBiB--FondoHome.png') no-repeat;
 +
background-size:contain;
 +
position:relative;
 +
margin-top:70px;
 +
background-attachment:scroll;
 +
}
 +
 
 +
body {
 +
min-height:2000px;
 +
width:100%;
 +
background: url('https://static.igem.org/mediawiki/2017/8/88/T--UChile_OpenBio-CeBiB--Home2.jpeg') repeat;
 +
background-size:cover;
 +
position:relative;
 +
}
 +
 
 +
</style>
 +
</head>
 +
 
 
<body>
 
<body>
<div id="bg">
+
 
  <img src="images/bg.jpg" id="bg" alt="">
+
 
</div>
+
<div id="home"></div>
 +
 
 +
 
 +
 
 +
 
 +
 
 
</body>
 
</body>
 
</html>
 
</html>
 +
{{:Team:UChile_OpenBio-CeBiB/Template/footer}}

Latest revision as of 22:56, 14 December 2017

Document