Team:Heidelberg/Team
From 2013.igem.org
(Difference between revisions)
m |
m |
||
Line 99: | Line 99: | ||
<!-- moves around the first --> | <!-- moves around the first --> | ||
<script> | <script> | ||
- | |||
function getPicsPerSide() | function getPicsPerSide() | ||
{ | { | ||
Line 153: | Line 152: | ||
function makeNewPosition(){ | function makeNewPosition(){ | ||
- | // Get viewport dimensions (remove | + | // Get viewport dimensions (remove dimensions of image) |
- | var h = | + | var h = $("#picscontainer").innerHeight() - 170; |
- | var w = | + | var w = $("#picscontainer").innerWidth() - 150; |
var nh = Math.floor(Math.random() * h); | var nh = Math.floor(Math.random() * h); | ||
Line 209: | Line 208: | ||
var greatest = x > y ? x : y; | var greatest = x > y ? x : y; | ||
- | var speedModifier = 0. | + | var speedModifier = 0.05; |
var speed = Math.ceil(greatest/speedModifier); | var speed = Math.ceil(greatest/speedModifier); |
Revision as of 01:00, 5 October 2013