-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
97 lines (85 loc) · 2.15 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" >
<title>Elegant JSON Editor</title>
<link href="editor/jsoneditor.min.css" rel="stylesheet" type="text/css" >
<link rel="shortcut icon" href="./icons/32.png" >
<style>
html, body {
height: 100%;
}
body {
font-family: consolas, monospace, courier new, courier, sans-serif;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
.block {
-webkit-user-select: none;
-moz-user-select: none;
cursor: col-resize;
}
.block .codeEditor, .block .treeEditor {
pointer-events: none;
}
.jsoneditor-poweredBy {
display: none;
}
.box {
margin: 10px;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.codeEditor {
position: absolute;
left: 0;
top: 0;
bottom: 0;
}
.treeEditor {
position: absolute;
right: 0;
top: 0;
bottom: 0;
}
.split {
position: absolute;
top: 0;
bottom: 0;
width: 10px;
border: 1px solid #fff;
border-width: 0 2px 0 2px;
border-radius: 2px;
display: flex;
align-items: center;
justify-content: center;
cursor: col-resize;
}
.split:hover, .split.hover {
background-color: #f5f5f5;
}
.split img {
opacity: 0.2;
pointer-events: none;
}
.split:hover img, .split.hover img {
opacity: 0.6;
}
</style>
</head>
<body>
<div class="box">
<div id="codeEditor" class="codeEditor"></div>
<div id="split" class="split"><img src="images/dot.svg" /></div>
<div id="treeEditor" class="treeEditor"></div>
</div>
<script src="editor/jsoneditor.min.js"></script>
<script src="js/json-editor.js"></script>
</body>
</html>