-
Notifications
You must be signed in to change notification settings - Fork 1
/
popup.html
75 lines (69 loc) · 1.4 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
<!doctype html>
<html>
<head>
<title>Text Redactor</title>
<script src="src/popup.js"></script>
</head>
<style>
main {
padding: 8px;
display: flex;
flex-direction: column;
gap: 8px;
min-width: 300px;
}
button {
min-width: 40px;
}
ul {
list-style-type: none;
padding: 0;
width: 100%;
gap: 8px;
display: flex;
flex-direction: column;
}
li {
display: flex;
gap: 8px;
width: 100%;
}
li input {
flex: 1;
}
.label {
font-size: 1.2em;
}
.inputGroup {
display: flex;
flex-direction: column;
width: 100%;
margin-bottom: 20px;
}
#colorPicker {
width: % 100px;
height: 20px;
}
</style>
<body>
<main>
<h1>Text Redactor</h1>
<div class="inputGroup">
<h4>Manage text to redact</h4>
<ul id="textInputs">
<li>
<input type="text" placeholder="Enter text to redact" />
<button>Remove</button>
</li>
</ul>
<button id="addInput">Add more text</button>
</div>
<div class="inputGroup">
<h4>Choose overlay color</h4>
<input type="color" id="colorPicker" />
</div>
<h5 id="redactionStatus">Redaction is OFF</h5>
<button id="toggleRedact">Toggle Redact</button>
</main>
</body>
</html>