Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
mobile-app-chat-app/profile.js
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
12 lines (9 sloc)
752 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// let username = localStorage.getItem('username') || "my username"; | |
// let userStatus = localStorage.getItem('userStatus') || "edit profile to display status"; | |
// let userProfilePic = localStorage.getItem('userProfilePic'); | |
let usernameInput = document.querySelector("#usernameInput"); | |
let statusInput = document.querySelector("#statusInput"); | |
let profilePicInput = document.querySelector("#profilePicInput"); | |
document.getElementById("usernameInput").innerHTML = localStorage.getItem("username") || "My username"; | |
document.getElementById("statusInput").innerHTML = localStorage.getItem("userStatus") || "Edit profile to display status"; | |
document.getElementById("profilePicInput").src = localStorage.getItem("userProfilePic") || "img/profile.jpeg";; |