Team:Goettingen/suplement/scripts ie ff patch

From 2013.igem.org

(Difference between revisions)
m
Line 15: Line 15:
return ob;
return ob;
}
}
-
 
function getPageSize() {
function getPageSize() {
   var scrW, scrH;
   var scrW, scrH;
   if(window.innerHeight && window.scrollMaxY) {
   if(window.innerHeight && window.scrollMaxY) {
-
 
+
 
     scrW = window.innerWidth + window.scrollMaxX;
     scrW = window.innerWidth + window.scrollMaxX;
     scrH = window.innerHeight + window.scrollMaxY;
     scrH = window.innerHeight + window.scrollMaxY;
Line 32: Line 31:
   var winW, winH;
   var winW, winH;
-
   if(window.innerHeight) {
+
   if(window.innerHeight) {  
     winW = window.innerWidth;
     winW = window.innerWidth;
     winH = window.innerHeight;
     winH = window.innerHeight;
Line 44: Line 43:
     winH = document.body.clientHeight;
     winH = document.body.clientHeight;
   }
   }
 +
   var pageW = (scrW<winW) ? winW : scrW;
   var pageW = (scrW<winW) ? winW : scrW;
Line 50: Line 50:
   return {PageW:pageW, PageH:pageH, WinW:winW, WinH:winH};
   return {PageW:pageW, PageH:pageH, WinW:winW, WinH:winH};
}
}
-
 
</script>
</script>
</html>
</html>

Revision as of 18:36, 21 July 2013