Team:Heidelberg/Team

From 2013.igem.org

(Difference between revisions)
m
m
Line 109: Line 109:
function startAnimation()
function startAnimation()
{
{
-
    var picsperside = getPicsPerSide();
 
-
    var height = picsperside.v * 170;
 
-
    var width = $('#picscontainer').height(height).width();
 
-
    $('#memberdesc').hide();
 
-
    var images;
 
-
    if (arguments.length > 0)
 
-
        images = arguments[0];
 
-
    else
 
-
        images = $('.teamimage');
 
     if (typeof(lastclicked) == 'undefined' || new Date() - lastclicked >= arguments[1]) {
     if (typeof(lastclicked) == 'undefined' || new Date() - lastclicked >= arguments[1]) {
 +
        animated = true;
 +
        var picsperside = getPicsPerSide();
 +
        var height = picsperside.v * 170;
 +
        var width = $('#picscontainer').height(height).width();
 +
        $('#memberdesc').hide();
 +
        var images;
 +
        if (arguments.length > 0)
 +
            images = arguments[0];
 +
        else
 +
            images = $('.teamimage');
         for (var i = 0; i < images.length; ++i) {
         for (var i = 0; i < images.length; ++i) {
             var leftpos = Math.random() * width;
             var leftpos = Math.random() * width;

Revision as of 22:59, 4 October 2013