From 288893999c04a2cbe9adbc61ae7d753913bdb07e Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Tue, 7 Jul 2015 17:44:02 +0300 Subject: Partial canvas overflow fix --- client/button.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'client/button.js') 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!
This is your icon!
'); $('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(); -- cgit v1.3.1