/
popup.html
98 lines (86 loc) · 2.08 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html>
<html style="min-width:400px;">
<head>
<title>Domestic Hearth</title>
<style>
body {
text-align: center;
min-width: 100px;
}
h2 > *:last-child {
float: right;
}
table {
width: 100%;
border-collapse: collapse;
}
table, th, td {
border: 1px solid black;
}
th, td {
padding: 8px 12px;
}
input[type="text"] {
width: 100%;
box-sizing: border-box;
border-color: lightgray;
}
#error {
border-color: red;
}
.buttonContainer {
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
}
#submit,#clear {
margin: 5px 0 0px 0;
padding: 5px 5px 5px 5px;
background-color: white;
border: 1px solid darkgrey;
color: black;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
transition-duration: 0.2s;
}
#submit:hover,#clear:hover {
box-shadow: 3px 3px darkgrey;
}
#submit:active,#clear:active {
background-color: white;
box-shadow: 0 0 0 0;
transform: translateX(3px) translateY(3px);
}
</style>
</head>
<body>
<h2>
<b><i>Domestic Hearth</i></b>
<a href="https://chromewebstore.google.com/detail/domestic-hearth/gkfinngilpdbfjmmgcnjikelebdldcik?pli=1"
target="_blank"
style="padding-right:10px; text-decoration: none;"
>
?
</a>
</h2>
<form id="overridesForm">
<table>
<thead>
<tr>
<th>distraction</th>
<th>replacement</th>
</tr>
</thead>
<tbody class="overrideTable"></tbody>
</table>
<div class="buttonContainer">
<button id="submit" type="submit"><b><i>focus</i></b></button>
<button id="clear"><i>clear</i></button>
</div>
</form>
<script type="module" src="./dist/popup.js"></script>
</body>
</html>