Commit 6dedbccd by doszhang

dos

parent 397c59af
...@@ -114,6 +114,7 @@ function createALeaf() ...@@ -114,6 +114,7 @@ function createALeaf()
var image = document.createElement('img'); var image = document.createElement('img');
/* Randomly choose a leaf image and assign it to the newly created element */ /* Randomly choose a leaf image and assign it to the newly created element */
image.src = window.base_resource_url + '/image2/snow-' + randomInteger(1, 3) + '.png'; image.src = window.base_resource_url + '/image2/snow-' + randomInteger(1, 3) + '.png';
console.log(randomInteger(1, 3));
leafDiv.style.top = "-100px"; leafDiv.style.top = "-100px";
/* Position the leaf at a random location along the screen */ /* Position the leaf at a random location along the screen */
leafDiv.style.left = pixelValue(randomInteger(0, 500)); leafDiv.style.left = pixelValue(randomInteger(0, 500));
......
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