Template:Kyoto/js

From 2014.igem.org

(Difference between revisions)
 
(21 intermediate revisions not shown)
Line 2: Line 2:
<script type="text/javascript">  
<script type="text/javascript">  
function adjustHeight() {
function adjustHeight() {
-
   HEIGHT = screen.height
+
   var HEIGHT = $(window).height() + 100
-
   document.getElementById("kyoto-background").style.height = HEIGHT + 'px';  
+
   document.getElementById("kyoto-background").style.height = screen.height + 'px';  
-
   HEIGHT = screen.availHeight - 250
+
   HEIGHT = HEIGHT - 260
-
   document.getElementById("kyoto-side_menu").style.height = HEIGHT + 'px';  
+
   document.getElementById("kyoto-side_menu").style.maxHeight = HEIGHT + 'px';  
-
   HEIGHT = HEIGHT - 10
+
   HEIGHT = HEIGHT - 20
-
   document.getElementById("kyoto-content_page").style.height = HEIGHT + 'px';  
+
   document.getElementById("kyoto-content_page").style.maxHeight = HEIGHT + 'px';  
}
}
</script>
</script>
</html>
</html>
<html><body onload="javascript:adjustHeight()"></html>
<html><body onload="javascript:adjustHeight()"></html>

Latest revision as of 10:32, 8 October 2014