Skip to content

Commit

Permalink
Update to styling in profile page
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhavesh committed Feb 10, 2023
1 parent ab86b48 commit b507893
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logout.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ $(document).ready(function () {
if ((localStorage.getItem("username") != null) &&(localStorage.getItem("pwd") != null) ){
let content = `<div id="user-details"><h1 id="userinfo-username">Username:${localStorage.getItem("username")}</h1>
<h2 id="userinfo-userEmail">Email:${localStorage.getItem("useremail")}</h2>
<h2 id="userinfo-userPoints">Total Points:${localStorage.getItem("points")}</h2></div> <div id="logoutpos"><button id="logout" onclick="">LogOut</button><div>`;
<h2 id="userinfo-userPoints">TotalPoints:${localStorage.getItem("points")}</h2></div> <div id="logoutpos"><button id="logout" onclick="">LogOut</button><div>`;

document.getElementById("userinfo").innerHTML += content
}
Expand Down

0 comments on commit b507893

Please sign in to comment.