File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 80
80
if ( pages . length === 0 ) {
81
81
pagesDiv . innerHTML = '<p>No wiki pages found.</p>' ;
82
82
}
83
-
84
83
pages . forEach ( page => {
85
84
pagesDiv . innerHTML += `
86
85
<div class="card">
89
88
<p>${ page . body } </p>
90
89
</div>
91
90
<div class="actions">
91
+ <b>Page Actions</b>
92
92
<button onclick="editPage(${ page . id } , '${ page . title } ', '${ page . body } ')">✏️ Edit</button>
93
93
<button onclick="deletePage(${ page . id } )">🗑️ Delete</button>
94
94
</div>
187
187
</ style >
188
188
</ head >
189
189
< body >
190
- < h1 > Coding Hut Wiki</ h1 >
190
+ < center > < h1 > Coding Hut Wiki</ h1 > </ center >
191
191
< div class ="container ">
192
192
< h2 > Create New Wiki Page</ h2 >
193
+ You can create a new wiki page using the below form.
193
194
< div class ="form-container ">
194
195
< input type ="text " id ="createTitle " placeholder ="Enter title " />
195
196
< textarea id ="createContent " placeholder ="Enter content "> </ textarea >
196
- < button onclick ="createPage() "> ➕ Create Wiki</ button >
197
+ < button onclick ="createPage() "> ➕ Create Wiki Page </ button >
197
198
</ div >
198
199
199
200
< h2 > Wiki Pages</ h2 >
201
+ The wiki pages will appear below, we may have a search function in the future as well.
200
202
< div id ="pages ">
201
203
<!-- List of pages will appear here -->
202
204
</ div >
You can’t perform that action at this time.
0 commit comments