Skip to content

Commit 72cbc65

Browse files
authored
Changing wikis to wiki posts
1 parent 8c5a770 commit 72cbc65

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Wiki/sitemaplinks.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,16 +182,16 @@
182182
<h1>Scratch Coding Hut Wiki</h1>
183183

184184
<div class="form-container">
185-
<h2>Create a Wiki</h2>
185+
<h2>Create a Wiki Post</h2>
186186
<form id="createWikiForm">
187187
<input type="text" id="wikiTitle" placeholder="Title" required>
188188
<textarea id="wikiContent" placeholder="Content" required></textarea>
189-
<button type="submit">Create Wiki</button>
189+
<button type="submit">Create Wiki Post</button>
190190
</form>
191191
</div>
192192

193193
<div class="wikis-container">
194-
<h2>Wikis</h2>
194+
<h2>Wiki Posts</h2>
195195
<ul id="wikiList"></ul>
196196
</div>
197197

@@ -204,7 +204,7 @@ <h2>Wikis</h2>
204204
// Retrieve username from localStorage
205205
const username = localStorage.getItem('username');
206206
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.');
208208
return; // Stop execution if no username is found
209209
}
210210

@@ -274,7 +274,7 @@ <h3>${wiki.title}</h3>
274274
// Edit a wiki
275275
window.editWiki = async (id, title, content) => {
276276
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.');
278278
return;
279279
}
280280

0 commit comments

Comments
 (0)