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 48
48
</ div >
49
49
</ nav >
50
50
</ 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 ; ">
52
52
53
53
< script >
54
54
// Function to check if the user is logged in and if action=edit is set
61
61
if ( action === 'edit' ) {
62
62
console . log ( 'Edit action detected and user is logged in!' ) ;
63
63
alert ( 'You are in edit mode!' ) ;
64
- } else {
64
+ window . location . href = 'editor.html' ;
65
+ } else {
65
66
console . log ( 'No edit action found.' ) ;
66
67
alert ( 'No edit action specified.' ) ;
67
68
}
75
76
const editImage = document . getElementById ( 'editImage' ) ;
76
77
editImage . addEventListener ( 'click' , handleImageClick ) ;
77
78
</ 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 >
82
91
</ html >
83
92
84
93
< style >
You can’t perform that action at this time.
0 commit comments