new position api in progress

This commit is contained in:
Jaime Pillora
2013-05-29 16:59:19 +10:00
parent abfa27f817
commit 04ad20dda3
5 changed files with 124 additions and 71 deletions
+28
View File
@@ -0,0 +1,28 @@
<html>
<body>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
<script src="../dist/notify.js"></script>
<style type="text/css">
.box { padding: 30px; }
</style>
<div class="boxes"></div>
<!-- run code -->
<script class="demo">
var positions = ["top", "right", "bottom", "left"];
var boxes = $(".boxes");
$.each(positions, function(i, p) {
var box = $("<div class=\"box\">"+p+"</div>");
boxes.append(box);
box.notify(p, {pos: p});
});
</script>
</body>
</html>