File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 127
127
</ ul >
128
128
< ul >
129
129
< li > < a href ="https://scratch-coding-hut.github.io/messages "> Messages</ a > </ li >
130
- < li > < a href ="https://scratch-coding-hut.github.io/account "> My Account</ a > </ li >
130
+ < li > < a id =" user " href ="https://scratch-coding-hut.github.io/account "> My Account</ a > </ li >
131
131
</ ul >
132
132
</ div >
133
133
</ nav >
@@ -139,6 +139,10 @@ <h2 style="text-align:center;">Welcome to the official Coding Hut website.</h2>
139
139
You can learn more about Coding Hut on our About page.
140
140
141
141
< script >
142
+ if ( localStorage . getItem ( 'username' ) ) {
143
+ document . getElementById ( 'user' ) . textContent = localStorage . getItem ( 'username' ) ;
144
+ }
145
+
142
146
function toggleMenu ( ) {
143
147
var menu = document . querySelector ( '.menu' ) ;
144
148
menu . style . display = menu . style . display === 'flex' ? 'none' : 'flex' ;
You can’t perform that action at this time.
0 commit comments