Difference between revisions of "Team:Central Calgary"

Line 84: Line 84:
  
  
<div class="jumbotron" style="color:#FFFFFF; background-image:url('https://static.igem.org/mediawiki/2015/8/81/RandomWikiCrud-12.jpg'); background-size: 100vw auto; background-repeat: no-repeat; height:88vh;">
+
<div id="homeImage" class="jumbotron" style="color:#FFFFFF; background-image:url('https://static.igem.org/mediawiki/2015/8/81/RandomWikiCrud-12.jpg'); background-size: 100vw auto; background-repeat: no-repeat; height:88vh;">
  
 
     <h1 style="padding-left:20px; border:none; font-family: 'RobotoLight';">Central iGEM</h1>
 
     <h1 style="padding-left:20px; border:none; font-family: 'RobotoLight';">Central iGEM</h1>
Line 110: Line 110:
  
 
<script type="text/javascript" src="https://2015.igem.org/Team:Central_Calgary/bootstrapjs?action=raw&ctype=text/javascript"></script>
 
<script type="text/javascript" src="https://2015.igem.org/Team:Central_Calgary/bootstrapjs?action=raw&ctype=text/javascript"></script>
 +
<script type="text/javascript" src="https://2015.igem.org/Team:Central_Calgary/js/jquery"></script>
 +
 +
<script>
 +
 +
$(window).resize(function(){
 +
 +
var wWindow = document.documentElement.clientWidth;
 +
var hWindow = document.documentElement.clientHeight;
 +
 +
if(wWindow > hWindow)
 +
{
 +
 +
$("homeImage").css('background-size', '100vw , auto');
 +
 +
}
 +
else
 +
{
 +
$("homeImage").css('background-size', 'auto , 80vh');
 +
}
 +
 +
 +
});
 +
 +
</script>
  
 
</body>
 
</body>
 
</html>
 
</html>

Revision as of 23:17, 18 September 2015

Team Central Calgary

Central iGEM

Column 1

Lorem ipsum dolor sit amet, consectetur adipisicing elit...

Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris...

Column 2

Lorem ipsum dolor sit amet, consectetur adipisicing elit...

Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris...

Column 3

Lorem ipsum dolor sit amet, consectetur adipisicing elit...

Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris...