Team:Kyoto/TimeLimit
From 2013.igem.org
(Difference between revisions)
m |
|||
Line 38: | Line 38: | ||
} | } | ||
- | + | function resize() { | |
var wrapper = document.getElementById("limit_wrapper"); | var wrapper = document.getElementById("limit_wrapper"); | ||
var top = window.innerHeight; | var top = window.innerHeight; | ||
Line 44: | Line 44: | ||
wrapper.style.top = (top / 2) + "px"; | wrapper.style.top = (top / 2) + "px"; | ||
} | } | ||
+ | } | ||
+ | |||
+ | window.onload = function() { | ||
+ | resize(); | ||
update(); | update(); | ||
setInterval(function() { | setInterval(function() { | ||
update(); | update(); | ||
}, 200); | }, 200); | ||
- | } | + | }; |
+ | window.onresize = function() { | ||
+ | resize(); | ||
+ | }; | ||
</script> | </script> | ||
<style type="text/css"> | <style type="text/css"> |
Revision as of 07:36, 26 September 2013
:
: