Skip to content

Commit

Permalink
#10 adds save svg
Browse files Browse the repository at this point in the history
  • Loading branch information
dangerdak committed Nov 16, 2017
1 parent fb80698 commit 8420028
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/views/partials/draw.hbs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<canvas id="c" width="500" height="500" style="border:1px solid #aaa"></canvas>

<div style="display: inline-block; margin-left: 10px">
<button id="save-canvas" class="btn btn-info bn bg-transparent w3 h3 pointer" data-user-id="{{userId}}">Save</button><br>
<button id="save-canvas" class="btn btn-info bn bg-transparent w3 h3 pointer" data-user-id="{{userId}}">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M13 3h2.996v5h-2.996v-5zm11 1v20h-24v-24h20l4 4zm-17 5h10v-7h-10v7zm15-4.171l-2.828-2.829h-.172v9h-14v-9h-3v20h20v-17.171z"/></svg>
Save
</button><br>
<button id="drawing-mode" class="btn btn-info bn bg-transparent w3 h3 pointer"><img src="/padlock-locked.png"></button><br>
<button id="clear-canvas" class="btn btn-info bn bg-transparent w3 h3 pointer">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M24 3.752l-4.423-3.752-7.771 9.039-7.647-9.008-4.159 4.278c2.285 2.885 5.284 5.903 8.362 8.708l-8.165 9.447 1.343 1.487c1.978-1.335 5.981-4.373 10.205-7.958 4.304 3.67 8.306 6.663 10.229 8.006l1.449-1.278-8.254-9.724c3.287-2.973 6.584-6.354 8.831-9.245z"/></svg>
Expand Down

0 comments on commit 8420028

Please sign in to comment.