Skip to content
nakahide3200 edited this page Jan 8, 2016 · 14 revisions
  1. Download rectangle_comment.js.

  2. Prepare a image file.

  3. Write a html file as below.

<html>
  <head>
    <script type="text/javascript" src="rectangle_comment.js"></script>
  </head>
  <body>
    <div style="position: relative">
      <img id="example" src="example.jpg">
    </div>

    <script type="text/javascript">
      var rectangleComment = new RectangleComment("example");
    </script>
  </body>
</html>
Clone this wiki locally