Skip to content

Commit c4b754e

Browse files
author
Jason Croft
committed
Add avatar to History page.
1 parent 4aa4e3e commit c4b754e

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

public/css/cover.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,11 @@ input {
247247
.sort.desc {
248248
text-decoration: underline;
249249
}
250+
.ui-avatar {
251+
border-radius: 15em;
252+
height: auto;
253+
width: 200px;
254+
}
250255
.ui-history-close {
251256
position: absolute;
252257
right: 14px;

public/js/cover.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ function pageInit() {
3232
$('.ui-signin').hide();
3333
$('.ui-or').hide();
3434
$('.ui-welcome').show();
35+
$('.ui-avatar').prop('src',data.photo);
3536
$('.ui-name').html(data.name);
3637
$('.ui-signout').show();
3738
$(".ui-history").click();
@@ -41,6 +42,7 @@ function pageInit() {
4142
$('.ui-signin').slideDown();
4243
$('.ui-or').slideDown();
4344
$('.ui-welcome').hide();
45+
$('.ui-avatar').prop('src','');
4446
$('.ui-name').html('');
4547
$('.ui-signout').hide();
4648
parseStorageToHistory(historyList, parseHistoryCallback);

public/views/index.ejs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
<p>Below are history from browser</p>
7878
</div>
7979
<div class="ui-signout" style="display:none;">
80+
<img class="ui-avatar" />
8081
<h4 class="ui-welcome">Welcome! <span class="ui-name"></span></h4>
8182
<a href="<%- url %>/new" class="btn btn-default">New note</a> Or
8283
<a href="#" class="btn btn-danger ui-logout">Sign Out</a>

0 commit comments

Comments
 (0)