-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.html
93 lines (86 loc) · 2.7 KB
/
options.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI Tab Grouper Settings</title>
<style>
body {
font-family: Arial, sans-serif;
line-height: 1.6;
margin: 0;
padding: 20px;
max-width: 800px;
margin: 0 auto;
}
h1 {
color: #333;
}
.setting {
margin-bottom: 20px;
}
label {
display: block;
margin-bottom: 5px;
}
input[type="range"] {
width: 100%;
}
input[type="number"] {
width: 60px;
}
select {
width: 100%;
padding: 5px;
}
button {
background-color: #4CAF50;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}
</style>
</head>
<body>
<h1>AI Tab Grouper Settings</h1>
<div class="setting">
<label for="groupingAlgorithm">Grouping Algorithm:</label>
<select id="groupingAlgorithm">
<option value="tfidf">TF-IDF</option>
<option value="bm25">BM25</option>
<option value="keyphrase">Keyphrase Extraction</option>
</select>
</div>
<div class="setting">
<label for="similarityThreshold">Similarity Threshold:</label>
<input type="range" id="similarityThreshold" min="0" max="1" step="0.05" value="0.3">
<span id="similarityThresholdValue">0.3</span>
</div>
<div class="setting">
<label for="groupingInterval">Automatic Grouping Interval (minutes):</label>
<input type="number" id="groupingInterval" min="1" value="5">
</div>
<div class="setting">
<label for="maxGroupNameLength">Maximum Group Name Length:</label>
<input type="number" id="maxGroupNameLength" min="1" max="20" value="15">
</div>
<div id="bm25Settings" style="display: none;">
<div class="setting">
<label for="bm25k1">BM25 k1 Parameter:</label>
<input type="number" id="bm25k1" min="0.1" max="3" step="0.1" value="1.5">
</div>
<div class="setting">
<label for="bm25b">BM25 b Parameter:</label>
<input type="number" id="bm25b" min="0" max="1" step="0.05" value="0.75">
</div>
</div>
<button id="saveSettings">Save Settings</button>
<script src="options.js"></script>
</body>
</html>