-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
53 lines (48 loc) · 1.66 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
53
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'">
<title>Simple JSON Beautify</title>
<link rel="stylesheet" href="./bootstrap/css/bootstrap.css">
</head>
<body>
<div class="container overflow-hidden">
<!-- <div>-->
<!-- Title: <input id="title"/>-->
<!-- <button id="btn" type="button">Set</button>-->
<!-- </div>-->
<div class="row gx-2 mt-3">
<div class="col col-6 p-1">
<div>JSON:</div>
<div id="original-json" class="card-body border border-2 w-100 rounded p-2" contenteditable="true">
</div>
</div>
<div class="col col-6 p-1">
<div>Beautified JSON:</div>
<div id="beautified-json" class="card-body border border-2 w-100 rounded p-2" contenteditable="true">
</div>
</div>
</div>
<div class="row mt-1">
<div class="col">
<button id="beautify-btn" class="btn btn-success w-100">Beautify!</button>
</div>
</div>
<div class="row mt-1">
<div class="col text-center">
<span id="beautify-error-msg" class="w-100"></span>
</div>
</div>
<div class="row mt-3">
<div class="col text-center">
<span id="creator-name" class="w-100">Original Repository: https://github.com/Revtm/simple-code-beautify</span>
</div>
</div>
</div>
<script src="./renderer.js"></script>
<script src="./bootstrap/js/jquery-3.7.1.min.js"></script>
<script src="./bootstrap/js/bootstrap.js"></script>
</body>
</html>