-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
94 lines (90 loc) · 3.42 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="public/assets/logo.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>LiteOFD</title>
<style>
@font-face {
font-family: 'Times-Bold';
src: url('public/assets/fonts/Times-Bold.otf');
}
@font-face {
font-family: 'NSimSun';
src: url('public/assets/fonts/Nsimsun.ttf');
}
@font-face {
font-family: 'FangSong_GB2312';
src: url('public/assets/fonts/FangSong_GB2312.otf');
}
@font-face {
font-family: 'SimFang';
src: url('public/assets/fonts/SIMFANG.TTF');
}
@font-face {
font-family: 'ArialMT';
src: url('public/assets/fonts/ArialMT.ttf');
}
</style>
</head>
<body>
<div id="app" class="app-container">
<div class="tool-bar">
<div class="tool-bar-group">
<input type="file" id="fileInput" accept=".ofd" style="display: none;" onchange="handleFileChange(event)">
<button class="tool-bar-btn upload-icon" onclick="uploadFile()">
上传
</button>
<span id="selectedFileName" class="selected-file-name"></span>
<button class="tool-bar-btn btn-save" onclick="handleSaveOFD()">
保存
</button>
</div>
<div class="tool-bar-group">
<button class="tool-bar-btn" onclick="minus()">缩小</button>
<button class="tool-bar-btn" onclick="plus()">放大</button>
<button class="tool-bar-btn" onclick="resetZoom()">还原</button>
</div>
<div class="tool-bar-group">
<button class="tool-bar-btn" onclick="firstPage()">
<i class="fas fa-step-backward">第一页</i>
</button>
<button class="tool-bar-btn" onclick="prePage()">
<i class="fas fa-caret-left">上一页</i>
</button>
<span class="page-info"></span>
<button class="tool-bar-btn" onclick="nextPage()">
<i class="fas fa-caret-right">下一页</i>
</button>
<button class="tool-bar-btn" onclick="lastPage()">
<i class="fas fa-step-forward">最后页</i>
</button>
</div>
<div class="tool-bar-group search-container">
<input type="text" id="searchInput" placeholder="输入搜索关键词">
<button class="tool-bar-btn search-btn" id="searchButton" onclick="searchKeyword()">
搜索
</button>
</div>
<div class="tool-bar-group">
<button class="tool-bar-btn" onclick="toggleOutlines()">
显示/隐藏大纲
</button>
<!-- 在工具栏中的适当位置添加这个按钮 -->
<button class="tool-bar-btn" onclick="openToolsMenu()" title="工具">
<i class="fas fa-tools"></i> 工具
</button>
</div>
</div>
<div class="content-wrapper">
<div id="outlines" class="outlines"></div>
<div id="content" class="content"></div>
<iframe id="ofdtools" class="ofdtools" src="tools.html" style="display: none; width: 1200px; border: none;"></iframe>
</div>
<div id="overlay" class="overlay"></div>
<div id="signature-details" class="signature-details"></div>
</div>
<script type="module" src="/example/main.ts"></script>
</body>
</html>