forked from homa31/CSE134B-HW4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
crud.html
43 lines (38 loc) · 1.01 KB
/
crud.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Big List of Blog Posts</title>
</head>
<body>
<h1>Big List of Blog Posts</h1>
<table>
<thead>
<tr>
<th>Title</th>
<th>Date</th>
<th>Summary</th>
<th></th>
</tr>
</thead>
<tbody id="post-list">
</tbody>
</table>
<dialog id="post-dialog">
<form>
<label for="title-input">Title:</label>
<input type="text" id="title-input">
<label for="date-input">Date:</label>
<input type="date" id="date-input">
<label for="summary-input">Summary:</label>
<input type="text" id="summary-input">
<button type="submit">Save</button>
<button type="button" id="cancel-button">Cancel</button>
</form>
</dialog>
<button id="add-button" onclick="addPost()">Add Post</button>
<script src="blog.js"></script>
</body>
</html>