This repository has been archived by the owner on Jul 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
editor.html
190 lines (156 loc) · 3.76 KB
/
editor.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<!doctype html>
<!--
This software project was created in 2017 by the U.S. Federal government.
See INTENT.md for information about what that means. See CONTRIBUTORS.md and
LICENSE.md for licensing, copyright, and attribution information.
Copyright (C) 2017 U.S. Federal Government (in countries where recognized)
Copyright (C) 2017 <Contributor Names>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>MCM editor</title>
<script>window.TOC_URL = "toc.c7619ba.json";</script>
<style>
html, body, .container {
margin: 0;
padding: 0;
height: 100%;
overflow: hidden;
font-family: Helvetica;
}
.col {
height: 100%;
float: left;
border-right: 1px solid #eee;
}
.nav {
position: relative;
width: 16%;
overflow: scroll;
font-size: 0.7rem;
line-height: 2;
background: #e6e6e6;
}
.nav ul {
list-style: none;
margin: 0;
padding: 0 0 0 12px;
width: 100%;
}
.nav > ul {
padding: 12px 12px 12px 0;
}
.nav li {
padding-left: 0.8rem;
}
.nav li.selected {
background: linear-gradient(0deg, #8e8e8e, #b3b3b3);
border: 1px solid #a7a7a7;
}
.nav li.selected a {
color: #fff;
font-weight: bold;
}
.nav li.has-children {
padding-left: 0.1rem;
}
.nav li.has-children > a {
font-weight: bold;
}
.nav li.has-children > ul {
display: none;
}
.nav li.expanded > ul {
display: block;
}
.nav li.has-children::before {
content: '\25B8';
font-family: monospace;
font-size: 1rem;
cursor: pointer;
}
.nav li.expanded::before {
content: '\25BE';
}
.nav li a {
color: #000;
text-decoration: none;
}
.editor {
width: 43%;
}
.preview {
width: 40%;
border-right: none;
}
.preview iframe {
border: none;
width: 100%;
height: 100%;
margin: 20px;
margin-right: -20px;
}
.diff {
width: 83%;
}
.bottom-bar {
position: absolute;
bottom: 0;
left: 0;
right: 0;
text-align: center;
}
.bottom-bar button {
font-size: 1.2rem;
}
</style>
</head>
<body>
<div class="container">
<div class="col nav">
<ul id="toc">
<li id="toc-proto">
<a href="#"></a>
</li>
</ul>
<ul id="review-toc">
</ul>
<div class="bottom-bar">
<div id="edit-mode-buttons">
<!-- <button title="New file">+</button> -->
<!-- <button title="Delete file">-</button> -->
<button id="review-button" title="Review changes">Review changes</button>
</div>
<div id="review-mode-buttons">
<button id="save-draft-button" title="Save draft">Save draft</button>
<button id="cancel-review-button" title="Back to editor">Back to editor</button>
</div>
</div>
</div>
<div class="col editor" id="editor">
</div>
<div class="col preview">
<iframe id="preview" src="preview.html">
</iframe>
</div>
<div class="col diff" id="diff">
</div>
</div>
<script src="vs/loader.js"></script>
<script src="js/common.js"></script>
<script src="js/editor.js"></script>
</body>
</html>