-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
52 lines (46 loc) · 1.58 KB
/
popup.html
File metadata and controls
52 lines (46 loc) · 1.58 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>增强阅读插件</title>
<style>
body { width: 300px; padding: 10px; }
label { display: block; margin-top: 10px; }
select, input { width: 100%; margin-top: 5px; }
button { width: 100%; margin-top: 15px; }
#loadingStatus { color: #888; font-size: 12px; margin-top: 5px; }
#logSection { margin-top: 15px; }
#logToggle { cursor: pointer; user-select: none; }
#logContent {
display: none;
max-height: 200px;
overflow-y: auto;
border: 1px solid #ccc;
padding: 5px;
font-size: 12px;
margin-top: 5px;
}
</style>
</head>
<body>
<label for="boldness">加粗程度:</label>
<select id="boldness">
<option value="light">轻度</option>
<option value="medium" selected>中度</option>
<option value="heavy">重度</option>
</select>
<label for="englishBoldness">英文加粗比例:</label>
<input type="number" id="englishBoldness" min="0" max="1" step="0.1" value="0.5">
<label for="chineseBoldness">中文加粗概率:</label>
<input type="number" id="chineseBoldness" min="0" max="1" step="0.1" value="0.2">
<label for="maxBoldWordsPerSentence">每句最大加粗词数:</label>
<input type="number" id="maxBoldWordsPerSentence" min="1" max="10" step="1" value="3">
<button id="toggleReading">开启增强阅读</button>
<div id="loadingStatus"></div>
<div id="logSection">
<div id="logToggle">▶ 显示日志</div>
<pre id="logContent"></pre>
</div>
<script src="popup.js"></script>
</body>
</html>