-
Notifications
You must be signed in to change notification settings - Fork 149
/
index.html
265 lines (254 loc) · 11 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
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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
<!DOCTYPE html>
<html>
<head>
<title>Text</title>
<link href="third_party/material-components-web/material-components-web.min.css" rel="stylesheet">
<link href="third_party/material-design-icons/iconfont/material-icons.css" rel="stylesheet">
<link href="css/app.css" rel="stylesheet">
<link href="css/print.css" rel="stylesheet" media="print">
</head>
<body>
<div id="window-container">
<div id="sidebar">
<div id="sidebar-resizer"></div>
<div id="file-tabs-menu" role="navigation">
<h1>Text</h1>
<hr>
<ul id="file-menu">
<li>
<button
id="file-menu-new"
class="sidebar-button"
i18n-content="fileMenuNew">
</button>
</li>
<li>
<button
id="file-menu-open"
class="sidebar-button"
i18n-content="fileMenuOpen">
</button>
</li>
<li>
<button
id="file-menu-save"
class="sidebar-button"
i18n-content="fileMenuSave">
</button>
</li>
<li>
<button
id="file-menu-saveas"
class="sidebar-button"
i18n-content="fileMenuSaveas">
</button>
</li>
</ul>
<hr>
<div id="tabs-list-container">
<ul id="tabs-list"></ul>
</div>
<hr>
<ul class="settings-switch-ul">
<li>
<button
id="open-settings"
class="sidebar-button"
i18n-content="menuSettings">
</button>
</li>
</ul>
</div>
<div id="settings-menu" role="navigation">
<h1 i18n-content="menuSettings"></h1>
<hr>
<div id="settings-container">
<ul id="settings-list">
<li>
<label for="setting-fontsize" i18n-content="fontsizeSetting"></label>
<input type="text" id="setting-fontsize" size="1" maxlength="2"
pattern="\d\d?" value="14"
i18n-values="title:fontsizeTooltip">
</li>
<li>
<label for="setting-spacestab" i18n-content="spacestabSetting"></label>
<div class="mdc-switch" id="setting-spacestab-switch">
<div class="mdc-switch__track"></div>
<div class="mdc-switch__thumb-underlay">
<div class="mdc-switch__thumb">
<input type="checkbox" id="setting-spacestab"
class="mdc-switch__native-control" role="switch">
</div>
</div>
</div>
</li>
<li>
<label for="setting-tabsize" i18n-content="tabsizeSetting"></label>
<input type="text" id="setting-tabsize" size="1" maxlength="2"
pattern="\d\d?" value="8">
</li>
<li>
<label for="setting-wraplines" i18n-content="wraplinesSetting"></label>
<div class="mdc-switch" id="setting-wraplines-switch">
<div class="mdc-switch__track"></div>
<div class="mdc-switch__thumb-underlay">
<div class="mdc-switch__thumb">
<input type="checkbox" id="setting-wraplines"
class="mdc-switch__native-control" role="switch">
</div>
</div>
</div>
</li>
<li>
<label for="setting-linenumbers" i18n-content="linenumbersSetting"></label>
<div class="mdc-switch" id="setting-linenumbers-switch">
<div class="mdc-switch__track"></div>
<div class="mdc-switch__thumb-underlay">
<div class="mdc-switch__thumb">
<input type="checkbox" id="setting-linenumbers"
class="mdc-switch__native-control" role="switch">
</div>
</div>
</div>
</li>
<li>
<label for="setting-smartindent" i18n-content="smartindentSetting"></label>
<div class="mdc-switch" id="setting-smartindent-switch">
<div class="mdc-switch__track"></div>
<div class="mdc-switch__thumb-underlay">
<div class="mdc-switch__thumb">
<input type="checkbox" id="setting-smartindent"
class="mdc-switch__native-control" role="switch">
</div>
</div>
</div>
</li>
<li>
<label for="setting-alwaysontop" i18n-content="alwaysOnTopSetting"></label>
<div class="mdc-switch" id="setting-alwaysontop-switch">
<div class="mdc-switch__track"></div>
<div class="mdc-switch__thumb-underlay">
<div class="mdc-switch__thumb">
<input type="checkbox" id="setting-alwaysontop"
class="mdc-switch__native-control" role="switch">
</div>
</div>
</div>
</li>
<div class="group" role="radiogroup" aria-labelledby="setting-theme-heading">
<h2 id="setting-theme-heading" i18n-content="themeSetting"></h2>
<div class="mdc-form-field">
<label for="setting-theme-default" i18n-content="DeviceThemeOption"></label>
<div class="mdc-radio">
<input class="mdc-radio__native-control" type="radio" id="setting-theme-default" name="setting-theme" value="default">
<div class="mdc-radio__background">
<div class="mdc-radio__outer-circle"></div>
<div class="mdc-radio__inner-circle"></div>
</div>
</div>
</div>
<div class="mdc-form-field">
<label for="setting-theme-light" i18n-content="LightThemeOption"></label>
<div class="mdc-radio">
<input class="mdc-radio__native-control" type="radio" id="setting-theme-light" name="setting-theme" value="light">
<div class="mdc-radio__background">
<div class="mdc-radio__outer-circle"></div>
<div class="mdc-radio__inner-circle"></div>
</div>
</div>
</div>
<div class="mdc-form-field">
<label for="setting-theme-dark" i18n-content="DarkThemeOption"></label>
<div class="mdc-radio">
<input class="mdc-radio__native-control" type="radio" id="setting-theme-dark" name="setting-theme" value="dark">
<div class="mdc-radio__background">
<div class="mdc-radio__outer-circle"></div>
<div class="mdc-radio__inner-circle"></div>
</div>
</div>
</div>
</div>
<div class="group" aria-labelledby="setting-help-heading">
<h2 id="setting-help-heading" i18n-content="helpSection"></h2>
<div class="mdc-form-field">
<button
id="open-shortcuts"
class="sidebar-button">
<span i18n-content="menuShortcuts"></span>
<span class="icon material-icons">launch</span>
</button>
</div>
</div>
</ul>
</div>
<hr>
<ul class="settings-switch-ul">
<li>
<button id="close-settings" class="sidebar-button" i18n-content="closeSettings"></button>
</li>
</ul>
</div>
</div>
<div id="main-container">
<header>
<button class="mdc-icon-button material-icons" id="toggle-sidebar" i18n-values="title:openSidebarButton;aria-label:openSidebarButton">menu</button>
<div class="search-container">
<div id="search-input-container">
<input type="search" id="search-input"
i18n-values="placeholder:searchPlaceholder">
<span id="search-counting"></span>
</div>
<button
class="search-navigation-button mdc-icon-button material-icons"
id="search-previous-button"
i18n-values="title:searchPreviousButton;aria-label:searchPreviousButton">expand_less</button>
<button
class="search-navigation-button mdc-icon-button material-icons"
id="search-next-button"
i18n-values="title:searchNextButton;aria-label:searchNextButton">expand_more</button>
</div>
<div id="title-filename" i18n-content="errorTitle"></div>
<button
class="mdc-icon-button material-icons"
id="window-minimize"
i18n-values="title:minimizeButton;aria-label:minimizeButton">remove</button>
<button
class="mdc-icon-button material-icons"
id="window-maximize"
i18n-values="title:maximizeButton;aria-label:maximizeButton">crop_square</button>
<button
class="mdc-icon-button material-icons"
id="window-close"
i18n-values="title:closeButton;aria-label:closeButton">close</button>
</header>
<div id="editor" role="main" aria-labelledby="title-filename"></div>
</div> <!-- main-container -->
</div> <!-- window-container -->
<div id="dialog-container">
<div class="dialog-window">
<div class="dialog-text"></div>
<div class="dialog-buttons"></div>
</div>
</div>
<!-- Already minified javascript libraries. Not included in compilation unit. -->
<script src="third_party/jquery/jquery-1.8.3.min.js" type="text/javascript"></script>
<script src="third_party/material-components-web/material-components-web.min.js" type="text/javascript"></script>
<script src="third_party/codemirror.next/codemirror.next.bin.js" type="text/javascript" charset="utf-8"></script>
<!-- JS -->
<!-- Everything in this JS block will be replaced with a single .js file include at compilation -->
<script src="js/app.js" type="text/javascript"></script>
<script src="js/editor-cm.js" type="text/javascript"></script>
<script src="js/i18n-template.js" type="text/javascript"></script>
<script src="js/search.js" type="text/javascript"></script>
<script src="js/settings.js" type="text/javascript"></script>
<script src="js/tabs.js" type="text/javascript"></script>
<script src="js/util.js" type="text/javascript"></script>
<script src="js/controllers/dialog.js" type="text/javascript"></script>
<script src="js/controllers/hotkeys.js" type="text/javascript"></script>
<script src="js/controllers/menu.js" type="text/javascript"></script>
<script src="js/controllers/search.js" type="text/javascript"></script>
<script src="js/controllers/settings.js" type="text/javascript"></script>
<script src="js/controllers/window.js" type="text/javascript"></script>
<!-- /JS -->
</body>
</html>