From d803f5572277eb0cf434c5252ee884e270e79f3d Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Sun, 12 Jul 2015 15:27:15 +0300 Subject: Add final username signature --- client/button.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'client/button.js') 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!
This is your icon!
'); + $('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(); } -- cgit v1.3.1