forked from AustinCodingAcademy/javascript-workbook
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
34 lines (33 loc) · 884 Bytes
/
index.html
File metadata and controls
34 lines (33 loc) · 884 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Fetch Practice</title>
</head>
<body>
<button onclick="consolePosts()">Console Posts</button>
<button onclick="displayPost()">Display Posts</button>
<button onclick="displayPostFive()">Fetch Post 5</button>
<button onclick="displayComments()">Fetch Comments</button>
<button onclick="displayUsers()">Fetch Users</button>
<div>
<h3>All Posts</h3>
<ul id='all-posts'></ul>
</div>
<div>
<h3>Post 5</h3>
<ul id='post5'></ul>
</div>
<div>
<h3>All Comments</h3>
<ul id='all-comments'></ul>
</div>
<div>
<h3>All Users</h3>
<ul id='all-users'></ul>
</div>
<script src="./main.js"></script>
</body>
</html>