Sha256: 1a16d12a9a53b3d87cf065896dbf8c5593c7ecd33e5e18b9a847912e3d598333

Contents?: true

Size: 848 Bytes

Versions: 3

Compression:

Stored size: 848 Bytes

Contents

<html>
<body>

  <script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
  <script src="../dist/notify.js"></script>

  <style type="text/css">
    .boxes {
      margin: 150px;
    }
    .box {
      border: thin solid blue;
      padding: 10px;
      margin: 20px;
      width: 100px;
    }
    .wrapper {
      margin-top: 50px
    }
  </style>

  <div class="boxes"></div>

  <!-- run code -->
  <script class="demo">

    var positions = ["top", "right", "bottom", "left"];
    var boxes = $(".boxes");

    $.notify.defaults({ arrowShow: false })
    $(function() {
      $.each(positions, function(i, p) {
        var box = $("<div class=\"box\">"+p+"</div>");
        boxes.append($("<div class=\"wrapper\"/>").append(box));
        box.notify(p, {position: p+" center"});
      });

    });
  </script>

</body>
</html>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
statixite-1.0.2 vendor/assets/bower_components/notifyjs/examples/position.html
statixite-1.0.1 vendor/assets/bower_components/notifyjs/examples/position.html
statixite-1.0.0 vendor/assets/bower_components/notifyjs/examples/position.html