Skip to content

Commit b85ce39

Browse files
authored
Update sitemaplinks.html
1 parent a052e93 commit b85ce39

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

sitemaplinks.html

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
</div>
4949
</nav>
5050
</head>
51-
<body><img src="images.png" alt="Edit Image" id="editImage" style="height: 20px; width: 20px;">
51+
<body><img src="images.png" alt="Edit Image" id="editImage" style="height: 30px; width: 30px;">
5252

5353
<script>
5454
// Function to check if the user is logged in and if action=edit is set
@@ -61,7 +61,8 @@
6161
if (action === 'edit') {
6262
console.log('Edit action detected and user is logged in!');
6363
alert('You are in edit mode!');
64-
} else {
64+
window.location.href = 'editor.html';
65+
} else {
6566
console.log('No edit action found.');
6667
alert('No edit action specified.');
6768
}
@@ -75,10 +76,18 @@
7576
const editImage = document.getElementById('editImage');
7677
editImage.addEventListener('click', handleImageClick);
7778
</script>
78-
<h1><center><b>Wiki | FAQ | More Links</b></center></h1><a href="/sitemaplinks?action=edit"><img src="images.png"></a></img>
79-
<h2>Sorry but this page is still in progress and is Coming Soon</h2>
80-
81-
We are working hard to work on this page. Check Back Later!</body>
79+
<h1><center><b>Wiki | FAQ | More Links</b></center></h1>
80+
<pre id="display">Loading Wiki...</pre>
81+
<script>
82+
if (!localStorage.getItem('wiki')) {
83+
localStorage.setItem('wiki', 'This is some wiki content!');
84+
}
85+
if (wiki) {
86+
displayElement.textContent = storedMessage; // Sets the element’s content
87+
} else {
88+
displayElement.textContent = 'No message found in local storage!';
89+
}
90+
</script>
8291
</html>
8392

8493
<style>

0 commit comments

Comments
 (0)