diff options
| author | Yuval Adam <yuval@y3xz.com> | 2015-07-12 15:27:15 +0300 |
|---|---|---|
| committer | Yuval Adam <yuval@y3xz.com> | 2015-07-12 15:27:15 +0300 |
| commit | d803f5572277eb0cf434c5252ee884e270e79f3d (patch) | |
| tree | eae647d45f6efa664df72960ad2bf5915647bb8f /client/button.js | |
| parent | 78b3cd94707290419e7f987700e8c50b812f684f (diff) | |
Add final username signature
Diffstat (limited to 'client/button.js')
| -rw-r--r-- | client/button.js | 9 |
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(); } |
