Use randomness for the initial (dummy placement)

This commit is contained in:
Paul van Tilburg 2012-01-14 12:52:14 +01:00
parent 86f518d0c7
commit 4fdc97c66b

View file

@ -28,8 +28,8 @@ fs.readdir(__dirname + '/public/upload', function (err, files) {
if (files[i][0] == ".")
continue;
draggables[files[i]] = { mime: mime.lookup(files[i]),
top: 200,
left: 350 };
top: 40 + Math.random() * 360,
left: 10 + Math.random() * 644 };
}
});