Difference between revisions of "Team:Central Calgary"
Line 115: | Line 115: | ||
$(window).resize(function(){ | $(window).resize(function(){ | ||
− | var wWindow = (document.documentElement.clientWidth | + | var wWindow = (document.documentElement.clientWidth); |
− | var hWindow = (document.documentElement.clientHeight * | + | var hWindow = (document.documentElement.clientHeight * 0.8); |
console.log("width", wWindow); | console.log("width", wWindow); | ||
console.log("height", hWindow); | console.log("height", hWindow); | ||
− | if(wWindow > hWindow) | + | if((wWindow*(0.75)) > hWindow) |
{ | { | ||
− | $("homeImage").css('background-size', ' | + | $("homeImage").css('background-size', 'auto , 80vh'); |
} | } | ||
else | else | ||
{ | { | ||
− | $("homeImage").css('background-size', ' | + | $("homeImage").css('background-size', '100vw , auto'); |
} | } | ||
Revision as of 23:35, 18 September 2015
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...