|
1 | 1 | <!DOCTYPE html>
|
2 | 2 | <html lang="en">
|
3 |
| -<head> |
4 |
| - <meta charset="UTF-8"> |
5 |
| - <title>Big JSON Viewer Demo</title> |
6 |
| - <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" |
7 |
| - integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> |
8 |
| - <link rel="stylesheet" href="../styles/default.css"> |
9 |
| - <style type="text/css"> |
10 |
| - body { |
11 |
| - font-family: Helvetica, serif; |
12 |
| - } |
13 |
| - </style> |
14 |
| -</head> |
15 |
| -<body> |
16 |
| -<div class="p-3" style="position: fixed; top: 0; right: 0; background: white; border: 1px solid #ccc"> |
17 |
| - <input type="text" placeholder="Search" id="search"> |
18 |
| - <span id="searchInfo"></span> |
19 |
| -</div> |
| 3 | + <head> |
| 4 | + <meta charset="UTF-8" /> |
| 5 | + <title>Big JSON Viewer Demo</title> |
| 6 | + <link |
| 7 | + rel="stylesheet" |
| 8 | + href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" |
| 9 | + integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" |
| 10 | + crossorigin="anonymous" |
| 11 | + /> |
| 12 | + <link rel="stylesheet" href="../styles/default.css" /> |
| 13 | + <style type="text/css"> |
| 14 | + body { |
| 15 | + font-family: Helvetica, serif; |
| 16 | + } |
| 17 | + </style> |
| 18 | + </head> |
| 19 | + <body> |
| 20 | + <div |
| 21 | + class="p-3" |
| 22 | + style="position: fixed; top: 0; right: 0; background: white; border: 1px solid #ccc" |
| 23 | + > |
| 24 | + <input type="text" placeholder="Search" id="search" /> |
| 25 | + <span id="searchInfo"></span> |
| 26 | + </div> |
20 | 27 |
|
21 |
| -<div class="container"> |
22 |
| - <h1 class="mt-3">Big JSON Viewer Demo</h1> |
| 28 | + <div class="container"> |
| 29 | + <h1 class="mt-3">Big JSON Viewer Demo</h1> |
23 | 30 |
|
24 |
| - <p> |
25 |
| - Watch large JSON structures in the Browser.<br> |
26 |
| - <a href="https://github.com/dhcode/big-json-viewer">On GitHub</a> |
27 |
| - </p> |
| 31 | + <p> |
| 32 | + Watch large JSON structures in the Browser.<br /> |
| 33 | + <a href="https://github.com/dhcode/big-json-viewer">On GitHub</a> |
| 34 | + </p> |
28 | 35 |
|
| 36 | + <h4 class="mt-3">JSON text</h4> |
| 37 | + <div> |
| 38 | + <a href="javascript:" data-load="simpleData">Simple test data</a> | |
| 39 | + <a href="javascript:" data-load="largeData">Large data</a> | |
| 40 | + <a href="javascript:" data-load="jsData">JavaScript data</a> |
| 41 | + </div> |
29 | 42 |
|
30 |
| - <h4 class="mt-3">JSON text</h4> |
31 |
| - <div> |
32 |
| - <a href="javascript:" data-load="simpleData">Simple test data</a> | |
33 |
| - <a href="javascript:" data-load="largeData">Large data</a> |
34 |
| - </div> |
| 43 | + <div> |
| 44 | + <textarea |
| 45 | + id="code" |
| 46 | + style="min-height: 15em; width: 100%; font-family: monospace, serif; font-size: 0.8em" |
| 47 | + ></textarea> |
| 48 | + </div> |
35 | 49 |
|
36 |
| - <div> |
37 |
| - <textarea id="code" |
38 |
| - style="min-height: 15em; width: 100%; font-family: monospace, serif; font-size: 0.8em"></textarea> |
39 |
| - </div> |
| 50 | + <h4 class="mt-3">Big JSON Viewer output</h4> |
40 | 51 |
|
41 |
| - <h4 class="mt-3">Big JSON Viewer output</h4> |
| 52 | + <div id="viewer"></div> |
42 | 53 |
|
43 |
| - <div id="viewer"> |
44 |
| - </div> |
| 54 | + <h5 class="mt-3">Open paths</h5> |
| 55 | + <div> |
| 56 | + <textarea |
| 57 | + id="paths" |
| 58 | + style="min-height: 6em; width: 100%; font-family: monospace, serif; font-size: 0.8em" |
| 59 | + ></textarea> |
| 60 | + </div> |
45 | 61 |
|
46 |
| - <h5 class="mt-3">Open paths</h5> |
47 |
| - <div> |
48 |
| - <textarea id="paths" |
49 |
| - style="min-height: 6em; width: 100%; font-family: monospace, serif; font-size: 0.8em"></textarea> |
50 |
| - </div> |
| 62 | + <h5 class="mt-3">Copied paths</h5> |
| 63 | + <div> |
| 64 | + <input |
| 65 | + type="text" |
| 66 | + id="copied" |
| 67 | + style="width: 100%; font-family: monospace, serif; font-size: 0.8em" |
| 68 | + /> |
| 69 | + </div> |
51 | 70 |
|
52 |
| - <h5 class="mt-3">Copied paths</h5> |
53 |
| - <div> |
54 |
| - <input type="text" id="copied" style="width: 100%; font-family: monospace, serif; font-size: 0.8em"> |
55 |
| - </div> |
| 71 | + <footer class="mt-5"> |
| 72 | + Created by <a href="https://github.com/dhcode">Dominik Herbst</a> |
| 73 | + </footer> |
| 74 | + </div> |
56 | 75 |
|
57 |
| - |
58 |
| - <footer class="mt-5"> |
59 |
| - Created by <a href="https://github.com/dhcode">Dominik Herbst</a> |
60 |
| - </footer> |
61 |
| -</div> |
62 |
| - |
63 |
| -<script src="demo.ts"></script> |
64 |
| - |
65 |
| -</body> |
| 76 | + <script src="demo.ts"></script> |
| 77 | + </body> |
66 | 78 | </html>
|
0 commit comments