summaryrefslogtreecommitdiff
path: root/client/button.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/button.js')
-rw-r--r--client/button.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/client/button.js b/client/button.js
index 9e3e834..2cdac14 100644
--- a/client/button.js
+++ b/client/button.js
@@ -116,7 +116,12 @@ function animate2() {
_.delay(function() {
$('h2.title').html('Done!<div class="sec">This is your icon!</div>');
+ $('span.final-username').text(Session.get('username'));
+ var months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
+ $('span.final-date').text(months[Session.get('date').month-1] + ' ' + Session.get('date').year);
$('div.final div.final-dominants').hide();
+
+ $('div.final-userdate').show();
$('div.final div.share').show();
$('div.about-link').show();
}, delay + 2000);
@@ -166,6 +171,10 @@ Template.dates.events({
Session.set('date', { month: month, year: year });
Session.set('photos', photos);
+ Meteor.call('getInstagramUsername', function (err, res) {
+ Session.set('username', res);
+ });
+
$('form.dates div.error').hide();
$('form.dates button.dates').show();
}