Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: bd9de96ffc
Fetching contributors…

Cannot retrieve contributors at this time

51 lines (42 sloc) 0.95 kb
title layout author authorurl
A function for each cloud
post
James

Some poor Google employee had the job of making a maintenance page for the once-hyped Google Wave. Apparently, we need a function for each cloud, and each wave:

{% highlight javascript %} var cloudMoved = false; var cloud2Moved = false; var cloud3Moved = false; var WAVE_TIME = 6000;

$(init);

function init() { cloudMove(); cloud2Move(); cloud3Move(); waves2Out(); waves3Out(); }

function cloudMove() { if (!cloudMoved) { $("#cloud").css("left", $("#cloud").offset().left) }

$("#cloud").animate(
    //...
)

}

function cloud2Move() { if (!cloud2Moved) { $("#cloud2") .css("left", $("#cloud2").offset().left) }

$("#cloud2").animate(
    //...
)

}

function cloud3Move() //... etc. {% endhighlight %}

Jump to Line
Something went wrong with that request. Please try again.