summaryrefslogtreecommitdiff
path: root/client/button.js
diff options
context:
space:
mode:
authorYuval Adam <yuval@y3xz.com>2015-07-07 17:44:02 +0300
committerYuval Adam <yuval@y3xz.com>2015-07-07 17:44:02 +0300
commit288893999c04a2cbe9adbc61ae7d753913bdb07e (patch)
tree51f67638654942aa260edd606919651f89fad0d8 /client/button.js
parente9ce70493ff75a997007a594fd47aff09da451ad (diff)
Partial canvas overflow fix
Diffstat (limited to 'client/button.js')
-rw-r--r--client/button.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/client/button.js b/client/button.js
index d4336d5..f483e8e 100644
--- a/client/button.js
+++ b/client/button.js
@@ -105,6 +105,11 @@ function animate2() {
delay += 400 * photos.length;
delay += 2000;
+ var canvas = document.getElementById('canvas-final');
+ var dataUrl = canvas.toDataURL();
+ $('a.share-save').attr('href', dataUrl);
+ $('a.share-save').attr('download', new Date().getTime());
+
_.delay(function() {
$('h2.title').html('Done!<div class="sec">This is your icon!</div>');
$('div.final div.final-dominants').hide();
@@ -112,7 +117,6 @@ function animate2() {
$('div.about-link').show();
}, delay + 2000);
-
}
Template.layout.events({
@@ -210,7 +214,7 @@ Template.photos.events({
window.print();
},
'click button.share-save': function (event) {
- window.print();
+
},
'click button.share-print': function (event) {
window.print();