chore: remove home button
This commit is contained in:
parent
9cac3645c9
commit
97157be747
|
@ -4,8 +4,6 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<a id="home" href="#" onclick="goToHome()">Home</a>
|
|
||||||
|
|
||||||
<div id="profile">
|
<div id="profile">
|
||||||
<h1 id="profile-name"></h1>
|
<h1 id="profile-name"></h1>
|
||||||
<p id="profile-description"></p>
|
<p id="profile-description"></p>
|
||||||
|
|
5
main.js
5
main.js
|
@ -120,11 +120,6 @@ class UserProfile {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function goToHome() {
|
|
||||||
updateUserProfile(null);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
function updateUserProfile(username) {
|
function updateUserProfile(username) {
|
||||||
if (userProfile != null) {
|
if (userProfile != null) {
|
||||||
userProfile.hide();
|
userProfile.hide();
|
||||||
|
|
|
@ -1,8 +1,3 @@
|
||||||
#home {
|
|
||||||
position: fixed;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* TODO: deal with visibility when screen cuts off left side */
|
/* TODO: deal with visibility when screen cuts off left side */
|
||||||
/* TODO: how do we show the profile on mobile */
|
/* TODO: how do we show the profile on mobile */
|
||||||
|
|
Loading…
Reference in New Issue