-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
52 lines (41 loc) · 1.56 KB
/
index.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
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Edu+SA+Beginner:wght@400;500;600;700&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="style.css" />
<!-- Using jsDelivr CDN -->
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<title>API JSONPlaceholder</title>
</head>
<body>
<div class="content">
<div id="users">
<div class="user-box" onclick="userSelect()">
<h2 class="userName">name</h2>
<h3 class="userEmail">Email</h3>
</div>
</div>
<div id="posts">
</div>
</div>
<div id="scrollToTopButton" class="hidden"><ion-icon name="arrow-up-outline"></ion-icon></div>
<!-- first way -->
<!-- use AXIOS -->
<script src="axoisRequest.js"></script>
<!-- second way -->
<!-- use Fetch -->
<!-- <script src="fetchRequest.js"></script> -->
<!-- third way -->
<!-- use XMLHttpRequest -->
<!-- <script src="xmlRequest.js"></script> -->
<!-- ICON -->
<script type="module" src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.js"></script>
<script src="btnTop.js"></script>
</body>
</html>