Skip to content

Commit 86b7304

Browse files
committed
Merge pull request #122 from jccrofty30/avatar_on_history
Add avatar to History page.
2 parents 1f4e1f0 + c4b754e commit 86b7304

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
@@ -80,6 +80,7 @@
8080
<p>Below are history from browser</p>
8181
</div>
8282
<div class="ui-signout" style="display:none;">
83+
<img class="ui-avatar" />
8384
<h4 class="ui-welcome">Welcome! <span class="ui-name"></span></h4>
8485
<a href="<%- url %>/new" class="btn btn-default">New note</a> Or
8586
<a href="#" class="btn btn-danger ui-logout">Sign Out</a>

0 commit comments

Comments
 (0)