- Add a convenient constructor
- Optimize the design solution for mobile devices
- Fix the display when changing the canvas height
- Unstable work on mobile devices
- The path selection for the static folder is canceled due to the variety of backend engines
Dillinger uses a number of open source projects to work properly:
- jQuery - Duh
- jqueryClickAndHold - Smooth movement (modified)
Add to html
<div class="entry-content clearfix" style="display:flex; flex-direction:column; align-items:center; justify-content:center; margin-top: 10px">
<!-- data-path = path to /static -->
<!-- NOTE: don't change data-Cheight -->
<canvas data-path="" data-Cwidth="800" data-Cheight="600"></canvas>
</div>
<script src="/static/js/button.js?v=1" charset="utf-8"></script>
<script src="/static/js/jquery.click-hold.js?v=1"></script>
<script src="/static/js/master.js?v=1" charset="utf-8"></script>
and create a static folder on your server
By using this project you agree to the GNU license