summaryrefslogtreecommitdiff
path: root/client/templates
diff options
context:
space:
mode:
authorYuval Adam <yuval@y3xz.com>2015-06-10 17:49:23 +0300
committerYuval Adam <yuval@y3xz.com>2015-06-10 17:49:23 +0300
commitadd6508961c4fe3a6348e96654c905a73774d390 (patch)
tree0c849fe28469154138dd529fb659061d14b0da50 /client/templates
parentf6cfae2649a3447bee4df4d6a3e9286531a71d17 (diff)
Add pixelation
Diffstat (limited to 'client/templates')
-rw-r--r--client/templates/photos.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/templates/photos.html b/client/templates/photos.html
index 565e0cc..4ca451d 100644
--- a/client/templates/photos.html
+++ b/client/templates/photos.html
@@ -2,8 +2,10 @@
{{#each photos}}
{{> photo}}
{{/each}}
+ <button class="pixelate btn btn-default">Pixelate</button>
</template>
<template name="photo">
- <img src="{{images.thumbnail.url}}">
+ <img id="img-{{id}}" src="{{images.thumbnail.url}}" crossOrigin="Anonymous">
+ <canvas id="canvas-{{id}}" resize="true" style="width: 180px; height: 230px;"></canvas>
</template>