Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
changes
  • Loading branch information
met18001 committed Mar 3, 2020
1 parent 932b1ab commit 387f43d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
5 changes: 4 additions & 1 deletion css/main.css
Expand Up @@ -111,4 +111,7 @@ a:link {
display: flex;
-webkit-box-pack: center;
justify-content: center;
}
}
.smallImage {
width:20px;
}
6 changes: 1 addition & 5 deletions index.html
Expand Up @@ -14,7 +14,7 @@
<body>

<div class="box">
<header><h1>Sending messages as <img class="smallImage" src="#" id="userProfilePicDisplay"/><a href="profile.html"><span id="usernameDisplay">{UserName}</span></a> <span class="small" id="userStatusDisplay">{Status}</span></h1></header>
<header><h1>Sending messages as <img class="smallImage" src="#" id="profilePicInput"/><a href="profile.html"><span id="usernameInput">{UserName}</span></a> <span class="small" id="statusInput">{Status}</span></h1></header>
<header><h1>~Meira's Mobile App Chat Room~</h1></header>
<a href="https://github.uconn.edu/pages/met18001/mobile-app-chat-app/profile.html">Click!<img src="img/cat.png" alt=""></a>
</div>
Expand All @@ -25,10 +25,6 @@
<button id="sendBtn">Send messege</button>
</div>





<script src="js/main.js"></script>
</body>
</html>
5 changes: 4 additions & 1 deletion js/main.js
Expand Up @@ -64,5 +64,8 @@ document.querySelector("#sendBtn").addEventListener('click', function(){
let date_str = month.toString() + "/" + curr_date.getDate().toString() + "/" + curr_date.getFullYear().toString();

});


document.getElementById("usernameInput").innerHTML = localStorage.getItem("userName");
document.getElementById("statusInput").innerHTML = localStorage.getItem("userStatus");
document.getElementById("profilePicInput").innerHTML = localStorage.getItem("userProfilePic");

2 changes: 2 additions & 0 deletions js/profile.js
Expand Up @@ -25,3 +25,5 @@ profileSaveInput.addEventListener( 'click', function(e) {

saveProfileImageLocally();
});


0 comments on commit 387f43d

Please sign in to comment.