forked from ahrm/chrome-fastread
-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
78 lines (67 loc) · 2.18 KB
/
popup.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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="button.css">
</head>
<style>
.button-container{
padding: 10px;
}
.button-enabled{
background: lightgreen;
}
.button-disabled{
background: pink;
}
.label{
margin: 5px;
}
.desc{
text-align: center;
margin: 5px;
}
.div-group{
border: 2px;
border-style: solid;
border-color: black;
padding: 10px;
margin-bottom: 10px;
}
.small-group{
border: 1px;
border-style: dotted;
border-color: gray;
padding: 10px;
margin-bottom: 5px;
}
</style>
<body>
<div class="button-container"><button id="applyButton" >Toggle Page</button></div>
<div class="div-group">
<div class="desc">Automatic Mode</div>
<div class="button-container"><button id="autoButton">Toggle Auto</button></div>
<div class="small-group">
<div class="desc">Exclude url pattern from automatic mode </div>
<input type="text" id="excludePattern" name="highlight">
<div class="button-container"><button id="excludePageButton">Add Exclude Pattern</button></div>
</div>
</div>
<div class="div-group">
<div class="desc">Customize Settings</div>
<div class="small-group">
<div class="label">Highlight sheet</div>
<input type="text" id="highlight-input" name="highlight">
</div>
<div class="small-group">
<div class="label">Rest of the word sheet</div>
<input type="text" id="rest-input" name="rest">
</div>
<div class="small-group">
<div class="label">Algorithm <a href="https://github.com/ahrm/chrome-fastread#algorithm-specification"><b>(?)</b></a></div>
<input type="text" id="algorithmInput" name="algorithm">
</div>
<div class="button-container"><button id="restore-button">Restore Default Settings</button></div>
</div>
<script src="popup.js" type="module"></script>
</body>
</html>