Difference between revisions of "Team:UCL/Playingaround3"

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

Revision as of 21:56, 29 June 2015

1
2
3
abstract
why