Commit 96253ff7 by doszhang

dos

parent a586470b
......@@ -116,7 +116,7 @@ function createALeaf()
image.src = window.base_resource_url + '/image2/snow-' + randomInteger(1, 3) + '.png';
leafDiv.style.top = "-100px";
/* Position the leaf at a random location along the screen */
leafDiv.style.left = remValue(randomInteger(0, 500));
leafDiv.style.left = pixelValue(randomInteger(0, 500));
/* Randomly choose a spin animation */
var spinAnimationName = (Math.random() < 0.5) ? 'clockwiseSpin' : 'counterclockwiseSpinAndFlip';
/* Set the -webkit-animation-name property with these values */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment