Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
location and website
Browse files Browse the repository at this point in the history
I added location and website address to the profile.
  • Loading branch information
danawidmo committed Dec 14, 2017
1 parent 2e2ac84 commit 7c0bfa7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions module/steem/steem-profile.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<div id="profile-banner">
<h1><div id="profile-image"></div> <span id="profile-name"></span> (<span id="profile-reputation"></span>)</h1>
<div id="profile-about"></div>
<h2><span id="profile-location"></span> <br> <span id="profile-website"></span></h2>
</div>
5 changes: 2 additions & 3 deletions module/steem/steem.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,12 @@ function displaySteemProfile(template) {
$("#profile-banner").css("background","url("+metadata.profile.cover_image+") no-repeat");
$("#profile-image").html('<img src="'+metadata.profile.profile_image+'">');
$("#profile-username").html('@'+steem_profile.name);
$("#profile-username").html('@'+steem_profile.name);
$("#profile-name").html(metadata.profile.name);
var reputation = simpleReputation(steem_profile.reputation);
$("#profile-reputation").html(Math.round(reputation));

$("#profile-about").html(metadata.profile.about);
$("#profile-location").html(metadata.profile.location);
$("#profile-website").html('<a href="'+metadata.profile.website+'">'+metadata.profile.website+'</a>');
}
function getSteemProfileTemplate(err, profile) {
// Save profile in global variable
Expand All @@ -122,7 +122,6 @@ function getSteemProfileTemplate(err, profile) {
$.ajax("/module/steem/steem-profile.html").done(displaySteemProfile);
});

content = 'profile';
}
function getSteemProfile(username) {
//
Expand Down

1 comment on commit 7c0bfa7

@danawidmo
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This relates to issue #2

Please sign in to comment.