Repository navigation
Expand file tree
/
Copy pathplugin.html
More file actions
58 lines (54 loc) · 2.29 KB
/
Copy pathplugin.html
File metadata and controls
58 lines (54 loc) · 2.29 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>chm — CHM Viewer (Plugin)</title>
<link rel="stylesheet" href="/src/style.css" />
<script>window.__CHM_PLUGIN = true;</script>
</head>
<body>
<!-- Top toolbar (no Open control in plugin mode) -->
<header id="toolbar">
<div id="toolbar-left">
<button id="back-btn" class="btn icon-btn" disabled title="Back" aria-label="Back">
<svg class="icon" viewBox="0 0 24 24" width="18" height="18" aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg">
<path d="M15 6 L9 12 L15 18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</button>
<button id="fwd-btn" class="btn icon-btn" disabled title="Forward" aria-label="Forward">
<svg class="icon" viewBox="0 0 24 24" width="18" height="18" aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg">
<path d="M9 6 L15 12 L9 18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</button>
</div>
<span id="title" class="toolbar-title">chm</span>
<div id="toolbar-right">
<div id="status" hidden></div>
</div>
</header>
<!-- Welcome hidden in plugin mode (host will supply file) -->
<div id="welcome" hidden>
<div id="drop-zone">
<div class="drop-icon">📄</div>
<p class="drop-primary">Drop a <strong>.chm</strong> file here</p>
<p class="drop-secondary">or</p>
<label class="btn btn-large" id="open-btn-welcome" for="file-input" style="cursor:pointer">Choose file…</label>
</div>
</div>
<!-- Main viewer (visible) -->
<div id="viewer">
<div id="sidebar">
<div id="toc-header">Contents</div>
<div id="toc-container"></div>
</div>
<div id="resizer"></div>
<div id="content">
<div id="content-html" tabindex="0" style="width:100%;height:100%;outline:none;overflow:auto;"></div>
</div>
</div>
<!-- Hidden file input kept for compatibility (host may not use it) -->
<input id="file-input" type="file" accept=".chm" style="display:none" />
<script type="module" src="/src/app.ts"></script>
</body>
</html>