-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
32 lines (29 loc) · 1.35 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
<html>
<head>
<title>JSON to HTML</title>
</head>
<body>
<div style="display:flex; flex-direction: column; height: calc(100vh - 16px)">
<div style="max-height: 15vh">
<h1 style="text-align: center;">JSON to interactive HTML</h1>
</div>
<div style="display: flex; justify-content: space-around">
<div>
<h3 style="text-align: center;">Before (paste json)</h3>
<textarea id="input" name="input" style="width: 48vw; height: 80vh; padding: 0; margin: 0;"></textarea>
</div>
<div style="display: flex; flex-direction: column; ">
<h3 style="text-align: center;">After (copy html)</h3>
<textarea id="output" name="output"
style="width: 48vw; height: 15vh; padding: 0; margin: 0;"></textarea>
<h3 style="text-align: center;">Preview</h3>
<div style="width: 48vw; height: 60vh; padding: 0; margin: 0;">
<div id="preview" style="height: 100%; width: 100%; overflow: auto;">
</div>
</div>
</div>
</div>
<a style="text-align: center; position: absolute; left: 0; top: 0; right: 0;"
href=https://github.com/BrentonWheeler/json2html>Github </a> </div> <script src="index.js"></script>
</body>
</html>