-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
55 lines (52 loc) · 2.15 KB
/
index.html
File metadata and controls
55 lines (52 loc) · 2.15 KB
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
54
55
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/svg+xml" href="/logo.svg">
<title>JSON Diff Viewer</title>
</head>
<body>
<div id="app">
<header>
<h1>JSON Diff Viewer
<div class="header-controls">
<a id="docs-link" href="https://github.com/metaory/json-diff-viewer-component#usage" target="_blank"
rel="noopener noreferrer">Library</a>
<button id="load-toggle">Load Data</button>
<button id="theme-toggle">Light</button>
<a href="https://github.com/metaory/json-diff-viewer-component" target="_blank" rel="noopener noreferrer"><img
src="/github.svg" alt="GitHub" class="github-logo"></a>
</div>
</h1>
<p class="tagline">Framework Agnostic Web Component</p>
</header>
<section id="input-panel" class="collapsed" data-mode="file">
<nav class="input-tabs">
<button class="tab active" data-mode="file">File</button>
<button class="tab" data-mode="paste">Paste</button>
<button class="tab" data-mode="url">URL</button>
</nav>
<div class="input-grid">
<div class="input-col">
<label>Left</label>
<input type="file" accept=".json" data-side="left" hidden>
<button type="button" class="file-btn" data-side="left">Choose file...</button>
<textarea placeholder="Paste JSON..." data-side="left"></textarea>
<input type="url" placeholder="https://..." data-side="left">
</div>
<div class="input-col">
<label>Right</label>
<input type="file" accept=".json" data-side="right" hidden>
<button type="button" class="file-btn" data-side="right">Choose file...</button>
<textarea placeholder="Paste JSON..." data-side="right"></textarea>
<input type="url" placeholder="https://..." data-side="right">
</div>
</div>
<button id="compare-btn">Compare</button>
</section>
<json-diff-viewer></json-diff-viewer>
</div>
<script type="module" src="/src/main.js"></script>
</body>
</html>