Team:Kyoto/TimeLimit

From 2013.igem.org

(Difference between revisions)
Line 40: Line 40:
function resize() {
function resize() {
   var wrapper = document.getElementById("limit_wrapper");
   var wrapper = document.getElementById("limit_wrapper");
-
   var top = window.innerHeight;
+
   var top = 300;
-
   if (top != undefined) {
+
  if (window.innerHeight != undefined) {
-
     wrapper.style.top = (top / 2) + "px";
+
    top = window.innerHeight / 2;
 +
   } else if (document.documentElement.clientWidth != undefined) {
 +
     top = document.documentElement.clientWidth / 2;
   }
   }
 +
  wrapper.style.top = top + "px";
}
}

Revision as of 07:40, 26 September 2013

:
: