-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
465 lines (448 loc) · 27.8 KB
/
index.html
File metadata and controls
465 lines (448 loc) · 27.8 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
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
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self'; font-src 'self' data:; connect-src 'self' https://globalbr.ai">
<title>OpenMarkdownReader</title>
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="vendor/fontawesome-css/all.min.css">
<link rel="stylesheet" href="vendor/github.min.css" media="(prefers-color-scheme: light)">
<link rel="stylesheet" href="vendor/github-dark.min.css" media="(prefers-color-scheme: dark)">
<link rel="stylesheet" href="vendor/easymde.min.css">
<link rel="icon" type="image/svg+xml" href="icon.svg">
</head>
<body>
<div class="titlebar" id="titlebar">
<button id="sidebar-toggle" class="sidebar-toggle" title="Toggle Sidebar (⌘B)">
<svg viewBox="0 0 20 20" fill="currentColor" width="16" height="16">
<path d="M2 4.5A1.5 1.5 0 013.5 3h13A1.5 1.5 0 0118 4.5v11a1.5 1.5 0 01-1.5 1.5h-13A1.5 1.5 0 012 15.5v-11zM3.5 4a.5.5 0 00-.5.5v11a.5.5 0 00.5.5H7V4H3.5zM8 4v12h8.5a.5.5 0 00.5-.5v-11a.5.5 0 00-.5-.5H8z"/>
</svg>
</button>
<button id="nav-back-btn" class="nav-btn" title="Go Back (⌘[)" disabled>
<svg viewBox="0 0 16 16" fill="currentColor" width="14" height="14">
<path fill-rule="evenodd" d="M7.78 12.53a.75.75 0 01-1.06 0L2.47 8.28a.75.75 0 010-1.06l4.25-4.25a.75.75 0 011.06 1.06L4.81 7h7.44a.75.75 0 010 1.5H4.81l2.97 2.97a.75.75 0 010 1.06z"/>
</svg>
</button>
<button id="nav-forward-btn" class="nav-btn" title="Go Forward (⌘])" disabled>
<svg viewBox="0 0 16 16" fill="currentColor" width="14" height="14">
<path fill-rule="evenodd" d="M8.22 3.47a.75.75 0 011.06 0l4.25 4.25a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06-1.06l2.97-2.97H3.75a.75.75 0 010-1.5h7.44L8.22 4.53a.75.75 0 010-1.06z"/>
</svg>
</button>
<div class="tab-bar-wrapper">
<div id="tab-bar" class="tab-bar"></div>
<button id="new-tab-btn" class="new-tab-btn" title="New Tab (⌘T)">+</button>
</div>
<div class="titlebar-drag-spacer"></div>
<span id="dev-badge" class="dev-badge hidden">DEV</span>
<button id="dev-restart-btn" class="dev-restart-btn hidden" title="Source code changed. Click to restart.">
<svg viewBox="0 0 16 16" fill="currentColor" width="14" height="14">
<path fill-rule="evenodd" d="M8 2.5a5.487 5.487 0 00-4.131 1.869l1.204 1.204A.25.25 0 014.896 6H1.25A.25.25 0 011 5.75V2.104a.25.25 0 01.427-.177l1.38 1.38A7.002 7.002 0 0114.95 7.16a.75.75 0 01-1.49.178A5.5 5.5 0 008 2.5zM1.705 8.005a.75.75 0 01.834.656 5.5 5.5 0 009.592 2.97l-1.204-1.204a.25.25 0 01.177-.427h3.646a.25.25 0 01.25.25v3.646a.25.25 0 01-.427.177l-1.38-1.38A7.002 7.002 0 011.05 8.84a.75.75 0 01.656-.834z"/>
</svg>
<span class="dev-restart-btn-label">Restart</span>
</button>
<div id="watch-indicator" class="watch-indicator hidden" title="Watching for file changes">
<svg viewBox="0 0 16 16" fill="currentColor" width="14" height="14">
<path d="M8 2C4.5 2 1.55 4.13 0 7.5 1.55 10.87 4.5 13 8 13s6.45-2.13 8-5.5C14.45 4.13 11.5 2 8 2zM8 11c-1.93 0-3.5-1.57-3.5-3.5S6.07 4 8 4s3.5 1.57 3.5 3.5S9.93 11 8 11zm0-5.5c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/>
</svg>
Watching
<span class="indicator-close" title="Turn off">
<svg viewBox="0 0 16 16" fill="currentColor" width="12" height="12">
<path d="M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"/>
</svg>
</span>
</div>
<div id="autosave-indicator" class="autosave-indicator hidden" title="Auto-save enabled">
<svg viewBox="0 0 16 16" fill="currentColor" width="14" height="14">
<path d="M8 0a8 8 0 100 16A8 8 0 008 0zm3.78 4.22a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06 0L4.22 7.28a.75.75 0 011.06-1.06l1.72 1.72 3.72-3.72a.75.75 0 011.06 0z"/>
</svg>
Auto Save
<span class="indicator-close" title="Turn off">
<svg viewBox="0 0 16 16" fill="currentColor" width="12" height="12">
<path d="M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"/>
</svg>
</span>
</div>
<div id="word-count-indicator" class="word-count-indicator hidden" title="Word count for current document">
0 words
</div>
<button id="save-btn" class="save-btn hidden" title="Save (⌘S)">
<svg viewBox="0 0 16 16" fill="currentColor" width="14" height="14">
<path d="M11.013 2.513a1.75 1.75 0 012.475 2.474l-6.5 6.5a.75.75 0 01-.354.198l-3.5 1a.75.75 0 01-.928-.928l1-3.5a.75.75 0 01.198-.354l6.5-6.5a.25.25 0 00-.354-.354l-6.5 6.5-.086.302-.302.086 6.5-6.5z"/>
<path d="M3.5 5.75v8.5c0 .414.336.75.75.75h8.5a.75.75 0 00.75-.75v-8.5a.75.75 0 00-.75-.75h-1.5a.75.75 0 010-1.5h1.5A2.25 2.25 0 0115 5.75v8.5A2.25 2.25 0 0112.75 16h-8.5A2.25 2.25 0 012 14.25v-8.5A2.25 2.25 0 014.25 3.5h1.5a.75.75 0 010 1.5h-1.5a.75.75 0 00-.75.75z"/>
</svg>
Save
</button>
<button id="toc-toggle-btn" class="toc-toggle-btn" title="Toggle Table of Contents">
<svg viewBox="0 0 16 16" fill="currentColor" width="14" height="14">
<path d="M2 4a1 1 0 100-2 1 1 0 000 2zm3.75-1.5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zm0 5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zm0 5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zM3 8a1 1 0 11-2 0 1 1 0 012 0zm-1 6a1 1 0 100-2 1 1 0 000 2z"/>
</svg>
</button>
<button id="rich-mode-btn" class="rich-mode-btn hidden" title="Toggle Rich Editor">
<svg viewBox="0 0 16 16" fill="currentColor" width="14" height="14">
<path d="M6.5 2.25L3.5 14h1.5l.75-3h4.5l.75 3h1.5L9.5 2.25H6.5zm.75 7L8 5.5l.75 3.75h-1.5z"/>
<path d="M12 10h2v1h-2v2h-1v-2h-2v-1h2V8h1v2z"/>
</svg>
Rich
</button>
<button id="rich-toolbar-btn" class="rich-toolbar-btn hidden" title="Toggle Formatting Toolbar">
<svg viewBox="0 0 16 16" fill="currentColor" width="14" height="14">
<path d="M2 3.5h12v1H2zM2 7.5h12v1H2zM2 11.5h12v1H2z"/>
</svg>
Toolbar
</button>
<button id="share-btn" class="share-btn hidden" title="Share to web">
<svg viewBox="0 0 16 16" fill="currentColor" width="14" height="14">
<path d="M7.47 2.22a.75.75 0 011.06 0l3.75 3.75a.75.75 0 01-1.06 1.06L8.75 4.56v6.19a.75.75 0 01-1.5 0V4.56L4.78 7.03a.75.75 0 01-1.06-1.06l3.75-3.75zM3.75 13a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5z"/>
</svg>
</button>
<!-- Share Popover -->
<div id="share-popover" class="share-popover hidden">
<div class="share-popover-content">
<!-- Unpublished state -->
<div id="share-unpublished" class="share-state">
<div class="share-header">
<svg viewBox="0 0 16 16" fill="currentColor" width="16" height="16">
<path d="M8 0a8 8 0 100 16A8 8 0 008 0zM1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0z"/>
</svg>
<span>Publish to Web</span>
</div>
<p class="share-description">Share this document as an unlisted page on globalbr.ai. Anyone with the link can view it.</p>
<p class="share-warning">⚠️ Links are permanent and cannot be deleted.</p>
<button id="share-publish-btn" class="share-action-btn share-publish">
<svg viewBox="0 0 16 16" fill="currentColor" width="14" height="14">
<path d="M2.75 14A1.75 1.75 0 011 12.25v-2.5a.75.75 0 011.5 0v2.5c0 .138.112.25.25.25h10.5a.25.25 0 00.25-.25v-2.5a.75.75 0 011.5 0v2.5A1.75 1.75 0 0113.25 14H2.75z"/>
<path d="M4.22 6.28a.75.75 0 001.06 0L7.25 4.31v5.94a.75.75 0 001.5 0V4.31l1.97 1.97a.75.75 0 001.06-1.06l-3.25-3.25a.75.75 0 00-1.06 0L4.22 5.22a.75.75 0 000 1.06z"/>
</svg>
Publish
</button>
</div>
<!-- Published state -->
<div id="share-published" class="share-state hidden">
<div class="share-header share-header-live">
<svg viewBox="0 0 16 16" fill="currentColor" width="16" height="16">
<path d="M8 9.5a1.5 1.5 0 100-3 1.5 1.5 0 000 3z"/>
<path d="M8 0a8 8 0 100 16A8 8 0 008 0zM1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0z"/>
</svg>
<span>Published as Unlisted</span>
</div>
<div class="share-url-row">
<input type="text" id="share-url-input" class="share-url-input" readonly>
<button id="share-copy-btn" class="share-icon-btn" title="Copy link">
<svg viewBox="0 0 16 16" fill="currentColor" width="14" height="14">
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"/>
<path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"/>
</svg>
</button>
</div>
<button id="share-open-btn" class="share-action-btn share-secondary">
<svg viewBox="0 0 16 16" fill="currentColor" width="14" height="14">
<path d="M3.75 2A1.75 1.75 0 002 3.75v8.5c0 .966.784 1.75 1.75 1.75h8.5A1.75 1.75 0 0014 12.25v-3.5a.75.75 0 00-1.5 0v3.5a.25.25 0 01-.25.25h-8.5a.25.25 0 01-.25-.25v-8.5a.25.25 0 01.25-.25h3.5a.75.75 0 000-1.5h-3.5z"/>
<path d="M10 1a.75.75 0 000 1.5h2.44L8.22 6.72a.75.75 0 001.06 1.06l4.22-4.22V6a.75.75 0 001.5 0V1.75a.75.75 0 00-.75-.75H10z"/>
</svg>
Open in Browser
</button>
</div>
<!-- Publishing state -->
<div id="share-publishing" class="share-state hidden">
<div class="share-header">
<div class="share-spinner"></div>
<span>Publishing...</span>
</div>
</div>
</div>
</div>
<button id="edit-toggle-btn" class="edit-toggle-btn" title="Toggle Edit Mode (⌘E)">
<svg viewBox="0 0 16 16" fill="currentColor" width="14" height="14">
<path d="M11.013 1.427a1.75 1.75 0 012.474 0l1.086 1.086a1.75 1.75 0 010 2.474l-8.61 8.61c-.21.21-.47.364-.756.445l-3.251.93a.75.75 0 01-.927-.928l.929-3.25c.081-.286.235-.547.445-.758l8.61-8.61zm1.414 1.06a.25.25 0 00-.354 0L10.811 3.75l1.439 1.44 1.263-1.263a.25.25 0 000-.354l-1.086-1.086zM11.189 6.25L9.75 4.81l-6.286 6.287a.25.25 0 00-.064.108l-.558 1.953 1.953-.558a.249.249 0 00.108-.064l6.286-6.286z"/>
</svg>
</button>
</div>
<div class="main-container">
<!-- Sidebar -->
<div id="sidebar" class="sidebar hidden">
<div class="sidebar-header">
<div class="sidebar-header-meta">
<span class="sidebar-title">Files</span>
<span id="sidebar-sort-status" class="sidebar-sort-status" title="Sorted alphabetically (A to Z)">
<span id="sidebar-sort-status-label" class="sidebar-sort-status-label">Sort: Name</span>
<span id="sidebar-sort-status-indicator" class="sidebar-sort-status-indicator">A-Z</span>
</span>
</div>
<div class="sidebar-header-buttons">
<button id="sidebar-new-file-btn" class="sidebar-btn" title="New File">
<svg viewBox="0 0 16 16" fill="currentColor" width="14" height="14">
<path d="M1.75 1.5a.25.25 0 00-.25.25v12.5c0 .138.112.25.25.25h12.5a.25.25 0 00.25-.25V4.664a.25.25 0 00-.073-.177l-2.914-2.914a.25.25 0 00-.177-.073H1.75zM0 1.75C0 .784.784 0 1.75 0h9.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0114.25 16H1.75A1.75 1.75 0 010 14.25V1.75z"/>
<path d="M8 4a.75.75 0 01.75.75v2.5h2.5a.75.75 0 010 1.5h-2.5v2.5a.75.75 0 01-1.5 0v-2.5h-2.5a.75.75 0 010-1.5h2.5v-2.5A.75.75 0 018 4z"/>
</svg>
</button>
<button id="sidebar-new-folder-btn" class="sidebar-btn" title="New Folder">
<svg viewBox="0 0 16 16" fill="currentColor" width="14" height="14">
<path d="M1.75 2.5a.25.25 0 00-.25.25v10.5c0 .138.112.25.25.25h12.5a.25.25 0 00.25-.25v-8.5a.25.25 0 00-.25-.25H7.5c-.55 0-1.07-.26-1.4-.7l-.9-1.2a.25.25 0 00-.2-.1H1.75zM0 2.75C0 1.784.784 1 1.75 1H5c.55 0 1.07.26 1.4.7l.9 1.2a.25.25 0 00.2.1h6.75c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0114.25 15H1.75A1.75 1.75 0 010 13.25V2.75z"/>
<path d="M8 6a.75.75 0 01.75.75v1.5h1.5a.75.75 0 010 1.5h-1.5v1.5a.75.75 0 01-1.5 0v-1.5h-1.5a.75.75 0 010-1.5h1.5v-1.5A.75.75 0 018 6z"/>
</svg>
</button>
<button id="sidebar-sort-btn" class="sidebar-btn" title="Sort by Name / Date Modified">
<svg viewBox="0 0 16 16" fill="currentColor" width="14" height="14">
<path d="M2 4a.5.5 0 01.5-.5h11a.5.5 0 010 1h-11A.5.5 0 012 4zm0 4a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7A.5.5 0 012 8zm0 4a.5.5 0 01.5-.5h4a.5.5 0 010 1h-4A.5.5 0 012 12z"/>
</svg>
</button>
<button id="sidebar-recent-btn" class="sidebar-btn" title="Show Recently Modified">
<svg viewBox="0 0 16 16" fill="currentColor" width="14" height="14">
<path fill-rule="evenodd" d="M1.75 8a6.25 6.25 0 1112.5 0 6.25 6.25 0 01-12.5 0zM8 3.25a.75.75 0 01.75.75v3.25H11a.75.75 0 010 1.5H8a.75.75 0 01-.75-.75V4A.75.75 0 018 3.25zM8 12.75a4.75 4.75 0 100-9.5 4.75 4.75 0 000 9.5z"/>
</svg>
</button>
<button id="sidebar-collapse-all-btn" class="sidebar-btn" title="Collapse All Folders">
<svg viewBox="0 0 16 16" fill="currentColor" width="14" height="14">
<path d="M3.5 4.5a.5.5 0 0 1 .5-.5h8a.5.5 0 0 1 0 1H4a.5.5 0 0 1-.5-.5zm0 3a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1H4a.5.5 0 0 1-.5-.5zm0 3a.5.5 0 0 1 .5-.5h4a.5.5 0 0 1 0 1H4a.5.5 0 0 1-.5-.5z"/>
<path d="M11.854 8.146a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 1 1 .708-.708L8 10.793l2.646-2.647a.5.5 0 0 1 .708 0z" transform="rotate(180 8 10)"/>
</svg>
</button>
<button id="open-folder-btn" class="sidebar-btn" title="Open Folder">
<svg viewBox="0 0 20 20" fill="currentColor" width="14" height="14">
<path d="M3.75 3A1.75 1.75 0 002 4.75v10.5c0 .966.784 1.75 1.75 1.75h12.5A1.75 1.75 0 0018 15.25v-8.5A1.75 1.75 0 0016.25 5H9.414a.25.25 0 01-.177-.073l-.896-.897A1.75 1.75 0 006.586 3.5H3.75z"/>
</svg>
</button>
</div>
</div>
<div id="sidebar-path" class="sidebar-path hidden">
<span id="sidebar-path-text" class="sidebar-path-text"></span>
</div>
<div id="file-tree" class="file-tree"></div>
</div>
<div id="sidebar-resizer" class="sidebar-resizer hidden" role="separator" aria-orientation="vertical" aria-label="Resize sidebar"></div>
<!-- Main content area -->
<div class="content-area">
<div id="drop-zone" class="drop-zone">
<div class="welcome">
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5">
<path d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"/>
</svg>
<h1>OpenMarkdownReader</h1>
<p>Drop a file here or</p>
<div class="welcome-buttons">
<button id="new-file-btn" class="welcome-btn" title="New File (⌘N)">
<svg viewBox="0 0 16 16" fill="currentColor" width="16" height="16">
<path d="M8 0a.75.75 0 01.75.75v6.5h6.5a.75.75 0 010 1.5h-6.5v6.5a.75.75 0 01-1.5 0v-6.5h-6.5a.75.75 0 010-1.5h6.5V.75A.75.75 0 018 0z"/>
</svg>
New File
</button>
<button id="open-btn" class="welcome-btn welcome-btn-secondary" title="Open File or Folder (⌘O)">
<svg viewBox="0 0 16 16" fill="currentColor" width="16" height="16">
<path d="M1.75 2.5a.25.25 0 00-.25.25v10.5c0 .138.112.25.25.25h12.5a.25.25 0 00.25-.25v-8.5a.25.25 0 00-.25-.25H7.414a.25.25 0 01-.177-.073l-.896-.897A.75.75 0 005.586 3H1.75z"/>
</svg>
Open...
</button>
</div>
<div id="recent-files-section" class="recent-files-section hidden">
<p class="recent-files-title">Recent</p>
<div id="recent-files-list" class="recent-files-list"></div>
</div>
<p class="hint">⌘N new | ⌘O open file or folder | ⌘P search</p>
</div>
</div>
<div id="content" class="content hidden">
<div id="editor-container" class="editor-container hidden">
<textarea id="editor" class="editor" spellcheck="false"></textarea>
</div>
<article id="markdown-body" class="markdown-body"></article>
<!-- CSV Table View -->
<div id="csv-view" class="csv-view hidden">
<div class="csv-toolbar">
<span class="csv-label">CSV Table View</span>
<button id="csv-toggle-raw" class="csv-toggle-btn" title="View as raw text">
<svg viewBox="0 0 16 16" fill="currentColor" width="14" height="14">
<path d="M4 1.75C4 .784 4.784 0 5.75 0h5.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v8.586A1.75 1.75 0 0114.25 15h-9a.75.75 0 010-1.5h9a.25.25 0 00.25-.25V6H12.5a.25.25 0 01-.25-.25V2.5H5.75a.25.25 0 00-.25.25v2.5a.75.75 0 01-1.5 0V1.75z"/>
<path d="M0 10.75C0 9.784.784 9 1.75 9h5.5c.966 0 1.75.784 1.75 1.75v3.5A1.75 1.75 0 017.25 16h-5.5A1.75 1.75 0 010 14.25v-3.5zm1.75-.25a.25.25 0 00-.25.25v3.5c0 .138.112.25.25.25h5.5a.25.25 0 00.25-.25v-3.5a.25.25 0 00-.25-.25h-5.5z"/>
</svg>
Raw
</button>
</div>
<div id="csv-table-container" class="csv-table-container"></div>
</div>
</div>
<!-- Table of Contents Panel -->
<div id="toc-panel" class="toc-panel hidden">
<div class="toc-header">
<span class="toc-title">Contents</span>
<button id="toc-close" class="toc-close-btn" title="Close">
<svg viewBox="0 0 16 16" fill="currentColor" width="12" height="12">
<path d="M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"/>
</svg>
</button>
</div>
<nav id="toc-content" class="toc-content"></nav>
</div>
</div>
</div>
<!-- Find Bar -->
<div id="find-bar" class="find-bar hidden">
<div class="find-bar-input-wrapper">
<input type="text" id="find-input" class="find-input" placeholder="Find" autocomplete="off">
<div id="find-count" class="find-count hidden">0/0</div>
</div>
<div class="find-bar-buttons">
<button id="find-prev-btn" class="find-btn" title="Previous Match (Shift+Enter)">
<svg viewBox="0 0 16 16" fill="currentColor" width="14" height="14">
<path d="M8 3.5a.5.5 0 01.354.146l4 4a.5.5 0 01-.708.708L8.5 5.207V12.5a.5.5 0 01-1 0V5.207L4.354 8.354a.5.5 0 11-.708-.708l4-4A.5.5 0 018 3.5z"/>
</svg>
</button>
<button id="find-next-btn" class="find-btn" title="Next Match (Enter)">
<svg viewBox="0 0 16 16" fill="currentColor" width="14" height="14">
<path d="M8 12.5a.5.5 0 01-.354-.146l-4-4a.5.5 0 11.708-.708L7.5 10.793V3.5a.5.5 0 011 0v7.293l3.146-3.147a.5.5 0 01.708.708l-4 4a.5.5 0 01-.354.146z"/>
</svg>
</button>
<button id="find-close-btn" class="find-btn find-close-btn" title="Close (Esc)">
<svg viewBox="0 0 16 16" fill="currentColor" width="14" height="14">
<path d="M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"/>
</svg>
</button>
</div>
</div>
<!-- Command Palette / File Search -->
<div id="command-palette" class="command-palette hidden">
<div class="command-palette-backdrop"></div>
<div class="command-palette-modal">
<input type="text" id="command-palette-input" class="command-palette-input" placeholder="Search files..." autocomplete="off">
<div id="command-palette-results" class="command-palette-results"></div>
</div>
</div>
<!-- Global Search -->
<div id="global-search" class="global-search hidden">
<div class="global-search-backdrop"></div>
<div class="global-search-modal">
<div class="global-search-header">
<svg class="search-icon" viewBox="0 0 16 16" fill="currentColor" width="16" height="16">
<path d="M10.68 11.74a6 6 0 01-7.922-8.982 6 6 0 018.982 7.922l3.04 3.04a.749.749 0 01-.326 1.275.749.749 0 01-.734-.215l-3.04-3.04zM11.5 7a4.5 4.5 0 10-9 0 4.5 4.5 0 009 0z"/>
</svg>
<input type="text" id="global-search-input" class="global-search-input" placeholder="Search in files..." autocomplete="off">
<span class="global-search-hint">Press Enter to search</span>
</div>
<div id="global-search-status" class="global-search-status hidden"></div>
<div id="global-search-results" class="global-search-results"></div>
</div>
</div>
<!-- Keyboard Shortcuts Modal -->
<div id="keyboard-shortcuts-modal" class="shortcuts-modal hidden">
<div class="shortcuts-backdrop"></div>
<div class="shortcuts-content">
<div class="shortcuts-header">
<h2>Keyboard Shortcuts</h2>
<button class="shortcuts-close">×</button>
</div>
<div class="shortcuts-body">
<div class="shortcuts-section">
<h3>File</h3>
<div class="shortcut-row"><span class="shortcut-keys">⌘N</span><span>New File</span></div>
<div class="shortcut-row"><span class="shortcut-keys">⌘T</span><span>New Tab</span></div>
<div class="shortcut-row"><span class="shortcut-keys">⇧⌘N</span><span>New Window</span></div>
<div class="shortcut-row"><span class="shortcut-keys">⌘O</span><span>Open File/Folder</span></div>
<div class="shortcut-row"><span class="shortcut-keys">⌘P</span><span>Quick Open</span></div>
<div class="shortcut-row"><span class="shortcut-keys">⌘R</span><span>Refresh File</span></div>
<div class="shortcut-row"><span class="shortcut-keys">⌘S</span><span>Save</span></div>
<div class="shortcut-row"><span class="shortcut-keys">⇧⌘S</span><span>Save As</span></div>
<div class="shortcut-row"><span class="shortcut-keys">⌘W</span><span>Close Tab</span></div>
<div class="shortcut-row"><span class="shortcut-keys">⇧⌘T</span><span>Reopen Closed Tab</span></div>
</div>
<div class="shortcuts-section">
<h3>Daily Notes</h3>
<div class="shortcut-row"><span class="shortcut-keys">⇧⌘D</span><span>New Scratch Note</span></div>
<div class="shortcut-row"><span class="shortcut-keys">⌥⌘D</span><span>New Reference Note</span></div>
</div>
<div class="shortcuts-section">
<h3>Edit</h3>
<div class="shortcut-row"><span class="shortcut-keys">⌘E</span><span>Toggle Edit Mode</span></div>
<div class="shortcut-row"><span class="shortcut-keys">⌘F</span><span>Find in File</span></div>
<div class="shortcut-row"><span class="shortcut-keys">⇧⌘F</span><span>Search in Files</span></div>
<div class="shortcut-row"><span class="shortcut-keys">⌘Z</span><span>Undo</span></div>
<div class="shortcut-row"><span class="shortcut-keys">⇧⌘Z</span><span>Redo</span></div>
</div>
<div class="shortcuts-section">
<h3>View</h3>
<div class="shortcut-row"><span class="shortcut-keys">⌘B</span><span>Toggle Sidebar</span></div>
<div class="shortcut-row"><span class="shortcut-keys">⌘+</span><span>Zoom In</span></div>
<div class="shortcut-row"><span class="shortcut-keys">⌘-</span><span>Zoom Out</span></div>
<div class="shortcut-row"><span class="shortcut-keys">⌘0</span><span>Reset Zoom</span></div>
</div>
<div class="shortcuts-section">
<h3>Navigation</h3>
<div class="shortcut-row"><span class="shortcut-keys">⌘[</span><span>Go Back</span></div>
<div class="shortcut-row"><span class="shortcut-keys">⌘]</span><span>Go Forward</span></div>
<div class="shortcut-row"><span class="shortcut-keys">⌘1-9</span><span>Switch to Tab</span></div>
<div class="shortcut-row"><span class="shortcut-keys">⌥⌘←</span><span>Previous Tab</span></div>
<div class="shortcut-row"><span class="shortcut-keys">⌥⌘→</span><span>Next Tab</span></div>
</div>
</div>
</div>
</div>
<!-- Custom Width Dialog -->
<div id="custom-width-dialog" class="custom-width-dialog hidden">
<div class="custom-width-backdrop"></div>
<div class="custom-width-modal">
<div class="custom-width-header">
<h3>Custom Content Width</h3>
<button class="custom-width-close">×</button>
</div>
<div class="custom-width-body">
<p>Enter a width in pixels (300-3000):</p>
<input type="number" id="custom-width-input" class="custom-width-input" min="300" max="3000" step="50" placeholder="e.g., 1000">
<div class="custom-width-buttons">
<button id="custom-width-cancel" class="custom-width-btn">Cancel</button>
<button id="custom-width-apply" class="custom-width-btn custom-width-btn-primary">Apply</button>
</div>
</div>
</div>
</div>
<!-- Report Issue Modal -->
<div id="report-issue-modal" class="report-issue-modal hidden">
<div class="report-issue-backdrop"></div>
<div class="report-issue-content">
<div class="report-issue-header">
<h2>Report an Issue</h2>
<button class="report-issue-close">×</button>
</div>
<div class="report-issue-body">
<div class="report-issue-field">
<label for="report-issue-title">Title</label>
<input type="text" id="report-issue-title" placeholder="Brief description of the issue">
</div>
<div class="report-issue-field">
<label for="report-issue-content">Details (optional)</label>
<textarea id="report-issue-content" rows="4" placeholder="Steps to reproduce, expected vs actual behavior..."></textarea>
</div>
<div class="report-issue-buttons">
<button id="report-issue-cancel" class="report-issue-btn">Cancel</button>
<button id="report-issue-submit" class="report-issue-btn report-issue-btn-primary">Submit</button>
</div>
<div class="report-issue-status" id="report-issue-status"></div>
</div>
</div>
</div>
<!-- Toast notifications -->
<div id="toast-container" class="toast-container"></div>
<!-- Update banner -->
<div id="update-banner" class="update-banner hidden">
<span id="update-banner-text">A new version is available</span>
<a id="update-banner-link" href="#" class="update-banner-btn">Download</a>
<button id="update-banner-dismiss" class="update-banner-dismiss" title="Dismiss">×</button>
</div>
<script src="vendor/marked.min.js"></script>
<script src="vendor/highlight.min.js"></script>
<script src="vendor/easymde.min.js"></script>
<script src="word-count.js"></script>
<script src="sidebar-highlight.js"></script>
<script src="sidebar-tree-utils.js"></script>
<script src="sidebar-sort-indicator.js"></script>
<script src="renderer.js"></script>
<!-- Noos Feedback Widget -->
<script
id="noos-widget-script"
src="vendor/noos-feedback.js"
data-project="openmarkdownreader"
data-domain="openmarkdownreader"
data-position="bottom-right"
data-theme="auto"
data-api-url="https://globalbr.ai/api"
></script>
</body>
</html>