This commit is contained in:
Jaime Pillora
2013-05-30 16:35:16 +10:00
parent 04ad20dda3
commit aa7d387776
4 changed files with 176 additions and 79 deletions
+17 -3
View File
@@ -6,7 +6,18 @@
<style type="text/css">
.box { padding: 30px; }
.boxes {
margin: 150px;
}
.box {
padding: 10px;
margin: 10px;
border: thin solid blue;
width: 100px;
}
.wrapper {
margin-top: 50px
}
</style>
<div class="boxes"></div>
@@ -19,8 +30,11 @@
$.each(positions, function(i, p) {
var box = $("<div class=\"box\">"+p+"</div>");
boxes.append(box);
box.notify(p, {pos: p});
boxes.append($("<div class=\"wrapper\"/>").append(box));
setTimeout(function() {
box.notify(p, {position: p});
}, 500)
});
</script>