File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 182
182
< h1 > Scratch Coding Hut Wiki</ h1 >
183
183
184
184
< div class ="form-container ">
185
- < h2 > Create a Wiki</ h2 >
185
+ < h2 > Create a Wiki Post </ h2 >
186
186
< form id ="createWikiForm ">
187
187
< input type ="text " id ="wikiTitle " placeholder ="Title " required >
188
188
< textarea id ="wikiContent " placeholder ="Content " required > </ textarea >
189
- < button type ="submit "> Create Wiki</ button >
189
+ < button type ="submit "> Create Wiki Post </ button >
190
190
</ form >
191
191
</ div >
192
192
193
193
< div class ="wikis-container ">
194
- < h2 > Wikis </ h2 >
194
+ < h2 > Wiki Posts </ h2 >
195
195
< ul id ="wikiList "> </ ul >
196
196
</ div >
197
197
@@ -204,7 +204,7 @@ <h2>Wikis</h2>
204
204
// Retrieve username from localStorage
205
205
const username = localStorage . getItem ( 'username' ) ;
206
206
if ( ! username ) {
207
- alert ( 'You must be logged in to interact with the wiki.' ) ;
207
+ alert ( 'Sorry, You must be logged in to interact with the wiki. Go to https://scratch-coding-hut.netlify.app/account to log in .' ) ;
208
208
return ; // Stop execution if no username is found
209
209
}
210
210
@@ -274,7 +274,7 @@ <h3>${wiki.title}</h3>
274
274
// Edit a wiki
275
275
window . editWiki = async ( id , title , content ) => {
276
276
if ( ! username ) {
277
- alert ( 'You must be logged in to edit a wiki.' ) ;
277
+ alert ( 'You must be logged in to edit a wiki. Go to https://scratch-coding-hut.netlify.app/account to log in. ' ) ;
278
278
return ;
279
279
}
280
280
You can’t perform that action at this time.
0 commit comments