-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
41 lines (39 loc) · 1.63 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
<!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">
<link rel ="icon" href="https://hackernoon.com/hn-images/1*lAR9Uh_gJ7dp23e0vhy5Hg.png" type="image/x-icon">
<title>Fetch API Sandbox: Reboot13</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="anonymous">
<link rel="stylesheet" href="styles.css">
<script src="app.js" lang="javascript"></script>
</head>
<body>
<header>
<h4>Fetch API Sandbox</h4>
</header>
<main>
<div class="container">
<div class="input-group mb-3">
<span class="input-group-text" id="basic-addon1">🔗</span>
<input type="text" id="url" class="form-control" placeholder="Request Url">
</div>
</br>
<button type="button" class="btn btn-primary" onclick="getData()">Fetch Data</button>
<div class="alert alert-primary" role="alert" id="json">
Data:</br>
<span id="jsonData"></span>
</div>
<div class="alert alert-danger" role="alert">
Error:</br>
<span id="error"></span>
</div>
</div>
</main>
<footer>
<p>© Reboot13-git/<a href="https://github.com/reboot13-git/fetch-api-sandbox" target="_blank">fetch-api-sandox</a></p>
</footer>
</body>
</html>