23_canvas.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <html>
  2. <head>
  3. <meta charset="utf-8" />
  4. <meta name="viewport" content="width=device-width" />
  5. <title>23_canvas.html</title>
  6. <link href="./23_style.css" rel="stylesheet" type="text/css" />
  7. <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
  8. <script src="https://cdnjs.cloudflare.com/ajax/libs/PapaParse/4.1.3/papaparse.min.js"></script>
  9. <script src="http://gitlab.a-level.com.ua/gitgod/nanobind/raw/master/static/nb.js"></script>
  10. </head>
  11. <body>
  12. <div class="wrapper">
  13. <canvas
  14. id="canvas"
  15. width="500"
  16. height="500"
  17. class="canvas"
  18. ></canvas>
  19. <div class="wrapper2">
  20. <button id="clear">Clear</button>
  21. <button id="undo">UNDO (delete last object)</button>
  22. <button id="delete">Delete selected</button>
  23. <select id="tool">
  24. <option value="graffity">Graffity</option>
  25. <option value="line">Line</option>
  26. // --- круг = элипс + Ctrl
  27. <!-- <option value="circle">Circle</option> -->
  28. <option value="ellipse">Ellipse</option>
  29. <option value="rectangle">Rectangle</option>
  30. <option value="select">Select</option>
  31. </select>
  32. <span id="comment"></span>
  33. <input type="color" id="color" />
  34. <input type="number" id="size" value="5" />
  35. </div>
  36. </div>
  37. <script src="./23_canvasJs.js"></script>
  38. </body>
  39. </html>