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>
-
var animated = true;
 
function getPicsPerSide()
function getPicsPerSide()
{
{
Line 153: Line 152:
function makeNewPosition(){
function makeNewPosition(){
-
     // Get viewport dimensions (remove the dimension of the div)
+
     // Get viewport dimensions (remove dimensions of image)
-
     var h = 0.1*$(".container").height();
+
     var h = $("#picscontainer").innerHeight() - 170;
-
     var w = 0.1*$(".container").width();
+
     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.01;
+
     var speedModifier = 0.05;
     var speed = Math.ceil(greatest/speedModifier);
     var speed = Math.ceil(greatest/speedModifier);

Revision as of 01:00, 5 October 2013