File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 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 ) {
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 >
You can’t perform that action at this time.
0 commit comments