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