includes/clientside/static/windows.js
changeset 76 608dee512bf0
parent 14 ce6053bb48d8
child 338 915d399dfdbf
equal deleted inserted replaced
75:1f85c1c609fd 76:608dee512bf0
   213     myHeight = document.documentElement.clientHeight;
   213     myHeight = document.documentElement.clientHeight;
   214   } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
   214   } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
   215     myHeight = document.body.clientHeight;
   215     myHeight = document.body.clientHeight;
   216   }
   216   }
   217   return myHeight;
   217   return myHeight;
   218 }           
   218 }
   219 
   219 
   220 function getWidth() {
   220 function getWidth() {
   221   var myWidth = 0;
   221   var myWidth = 0;
   222   if( typeof( window.innerWidth ) == 'number' ) {
   222   if( typeof( window.innerWidth ) == 'number' ) {
   223     myWidth = window.innerWidth;
   223     myWidth = window.innerWidth;