Difference between revisions of "Team:UCL/Playingaround3"

Line 84: Line 84:
  
 
</div>
 
</div>
 +
 +
 +
<script>
 +
$(document).ready(function(){
 +
resizeDiv();
 +
});
 +
 +
window.onresize = function(event) {
 +
resizeDiv();
 +
}
 +
 +
function resizeDiv() {
 +
vpw = $(window).width();
 +
vph = $(window).height();
 +
$(‘#somediv’).css({‘height': vph + ‘px’});
 +
}
 +
</script>
  
 
</body>
 
</body>
 
</html>
 
</html>

Revision as of 21:55, 29 June 2015

1
2
3
abstract
why