Skip to content

Commit

Permalink
update Timezone description
Browse files Browse the repository at this point in the history
  • Loading branch information
kakuit committed Jul 4, 2014
1 parent 65c5525 commit a966451
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions blank.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@
</div>

<div id="difference">
<h2>Timezone <a href="http://twitter.com/neymarjr">@neymarjr</a></h2>
<p>Brasilia</p>
<h2 id="screen_name">Timezone <a href="http://twitter.com/neymarjr">@neymarjr</a></h2>
<p id="timezone">Brasilia</p>
<h2>Time Difference</h2>
<p>-12:00</p>
<p id="time_offset">-12:00</p>
</div>


Expand Down
7 changes: 7 additions & 0 deletions js/tw.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,15 @@ var get_timezone = function(screen_name){
var timezone = data.time_zone;
var utc_offset = data.utc_offset;
localStorage['screen_name'] = screen_name;
$('#screen_name').html("Timezone <a href='http://twitter.com/" + screen_name + "'>@" + screen_name + "</a>");

localStorage['timezone'] = timezone;
$('#timezone').text(timezone);

localStorage['utc_offset'] = utc_offset;
$('#time_offset').text(utc_offset);


d.resolve(timezone);
});
});
Expand Down

0 comments on commit a966451

Please sign in to comment.