-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
50 lines (39 loc) · 1.7 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
<!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>JSON Parser</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO"
crossorigin="anonymous">
<link href="https://unpkg.com/[email protected]/dist/css/tabulator.min.css" rel="stylesheet">
<script type="text/javascript" src="https://unpkg.com/[email protected]/dist/js/tabulator.min.js"></script>
</head>
<body>
<div class="container-fluid">
<h1>JSON Parser</h1>
<div>
<input type="checkbox" name="toggleAuth" id="toggleAuth">
<label class="form-check-label" for="toggleAuth" onclick="toggleAuth()">Toggle Authentication</label>
</div>
<div id="authBlock">
<h2>Auth</h2>
<input type="text" id="loginUrl" placeholder="loginUrl">
<input type="text" name="" placeholder="username" id="loginUsername">
<input type="password" name="" placeholder="password" id="loginPassword">
<button onclick="doLogin()">Log in</button>
</div>
<div>
<h2>Request</h2>
<input type="text" id="requestUrl" placeholder="requestUrl" value="https://restcountries.eu/rest/v2/all">
<button onclick="doRequestData()">Do Request</button>
</div>
<div>
<h2>Viewer</h2>
<div id="viewer-table"></div>
</div>
</div>
<script src="main.js"></script>
</body>
</html>