Skip to content

Commit 39e45d1

Browse files
authored
Update account.html
1 parent 41116e2 commit 39e45d1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

account.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
const username = localStorage.getItem('username');
105105
const textElements = document.querySelectorAll('.text');
106106
const loggedIn = document.getElementById('loggedIn');
107+
const tlogged = document.getElementById('textForLogged');
107108

108109
// Hide all elements with the class "text"
109110
textElements.forEach(function(element) {
@@ -113,6 +114,7 @@
113114
// Show the welcome message
114115
loggedIn.style.display = 'block';
115116
loggedIn.textContent = `Welcome to your account, ${username}!`;
117+
tlogged.innerHTML = '<center><p>some stuff</p></center>';
116118
} else {
117119
checkAuth();
118120
}
@@ -178,7 +180,7 @@ <h1>Scratch Authentication</h1>
178180
<div id="loggedIn" class="header" style="display: none;"></div>
179181

180182
<!-- Main Content -->
181-
<div class="text content">
183+
<div id="textForLogged" class="text content">
182184
<h2>Welcome! Please log in to continue.</h2>
183185
<button onclick="registerScratchAuth()">Sign In With ScratchAuth</button>
184186
<p id="message" class="message" aria-live="polite"></p>

0 commit comments

Comments
 (0)