Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
alert for saving profile
  • Loading branch information
met18001 committed May 6, 2020
1 parent 9e8f259 commit 48a5149
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions js/profile.js
Expand Up @@ -29,10 +29,13 @@ profileSaveInput.addEventListener( 'click', function(e) {
});

function savedProfile() {
alert("You have saved your profile Congrats!")

var text = document.getElementById("showText");
if (text.style.display === "none") {
text.style.display = "block";
} else {
text.style.display = "none";
}

}
2 changes: 1 addition & 1 deletion profile.html
Expand Up @@ -14,7 +14,7 @@
<p><input type="text" placeholder="Display Name" name="Username" id="usernameInput"></p>
<p><input type="text" placeholder="Status Message" name="StatusMessage" id="statusInput"></p>
<p><input type="file" id="profilePicInput" name="profilePicInput"></p>
<button class="button" id="profileSaveInput" onclick="savedProfile()">Save Changes</button>
<button a href="index.html" class="button" id="profileSaveInput" onclick="savedProfile()">Save Changes</a></button>
<h1 class="button"> <a href="index.html">Go Back to Chat App</a></h1>
</div>
</div>
Expand Down

0 comments on commit 48a5149

Please sign in to comment.