-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathoptions.html
191 lines (177 loc) · 5.41 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<!DOCTYPE html>
<html>
<head>
<title>UnseeIt v1.0</title>
<link rel="stylesheet" type="text/css" href="assets/css/options.css">
<link rel="stylesheet" type="text/css" href="assets/css/button.css">
<link rel="stylesheet" type="text/css" href="assets/css/input.css">
</head>
<body>
<div id="main" class="visible">
<div class="tab">
<nav>
<span class="tablinks active">Settings</span>
<span class="tablinks">Ranks</span>
</nav>
<nav>
<span class="tablinks">Words</span>
<span class="tablinks">Logs</span>
</nav>
</div>
<!-- Settings Tab -->
<div id="Settings" class="tabcontent visible">
<div style="display: inline-block;">
<h4>Filter Method</h4>
<div class="dropdown">
<select id="filterMethodSelect" name ="filter-methods" class="setOption">
<option value= 0>Censor</option>
<option value= 1>Substitute</option>
<option value= 2>Remove</option>
</select>
</div>
<h4> Match Method </h4>
<select id="matchMethodSelect" name = "match-methods" class="setOption">
<option value= 0>Whole Word</option>
<option value= 1>Per Word</option>
</select>
</div>
<div id="optionsCensor" class="moveDown hidden">
<h4>Censor character:</h4>
<select id="censorCharacterSelect" class="small" name="censorCharacters" class="setOption">
<option value="****">*</option>
<option value="&&&&">&</option>
<option value="$$$$">$</option>
<option value="####">#</option>
<option value="@@@@">@</option>
<option value="^^^^">^</option>
<option value="----">-</option>
<option value="____">_</option>
<option value="mixed">mixed</option>
</select>
</div>
<h4> Multiple Meaning </h4>
<select id="multipleMean" class="setOption">
<option value= 0> Censor </option>
<option value= 1> Ignore </option>
</select>
<br><br>
<button id="btnSave" class="myButton">Save</button>
<div id="saveNotif"></div>
<br><br><br><br>
<h4> Add/Remove Words </h4>
<input type="text" id="addWords" placeholder="Add Word" class="setWord">
<select id="doubleWord">
<option>--Multiple Meaning--</option>
<option value="true">True</option>
<option value="false">False</option>
</select><br>
<div style="display: inline-block;">
<input type="text" id="substitute" placeholder="Word Substitute" class="setWord wordSubstitute">
<button id="btnAdd" class="myButton add">Add</button>
</div>
<div id="addNotif"></div>
<br><br>
<input type="text" id="removeWord" placeholder="Remove Word" class="setWord">
<button id="btnRemove" class="myButton">Remove</button><br>
<div id="removeNotif"></div>
<br>
<table id="wordAndSubstitute">
<thead>
<tr>
<th>Word</th>
<th>Substitute</th>
</tr>
</thead>
<tbody style="overflow: auto;">
<td><div id="word"></div></td>
<td><div id="wordSubstitute"></div></td>
</tbody>
</table>
</div>
<!-- Ranks Tab -->
<div id="Ranks" class="tabcontent hidden">
<h4>Warning Domains</h4>
<select id="domainSelect">
<option>--Choose Domain--</option>
</select>
<button id="domainRemove" class="myButton">Remove</button>
<div class="moveDown">
<div id="notifRemove"></div>
<br>
<div id="domainNote" class="notes">Note: To avoid the extension from not recognizing the site as a warning domain, copy and paste the link found under the ranked websites <br><br>
Example: "https://www.google.com" or "https://www.mail.google.com"</div>
<input type="text" id="domainText" name="domainText" pattern="^[a-zA-Z0-9\.\-]+$">
<button id="domainAdd" class="myButton">Add</button>
<div id="addNotif"></div>
<br>
<!-- Websites -->
<table id="siteAndCount" class="table table-bordered">
<thead>
<tr>
<th>Websites</th>
<th>Profanity Count</th>
</tr>
</thead>
<tbody style="overflow: auto;">
<!-- <tr>
<td><div id="site"></div></td>
<td><div id="count"></div></td>
</tr> -->
</tbody>
</table>
</div>
</div>
<!-- Words Tab -->
<div id="Words" class="tabcontent hidden">
<select id="wordRankSelect">
<option value= 0> --Total Words -- </option>
<option value= 1> --Daily Words -- </option>
</select>
<br><br>
<div id="totalWords" style="display:block;">
<table id="wordCounts">
<thead>
<tr>
<th>Word</th>
<th>Count</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div id="dailyWords" style="display:none;">
<select id="dateSelect">
<option> --Choose Date-- </option>
</select>
<br>
<table id="loggedWords">
<thead>
<tr>
<th>Word</th>
<th>Count</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<!-- History Tab -->
<div id="Logs" class="tabcontent hidden">
<button id="clearHistory" class="myButton">Clear Logs</button>
<div id="notifHistory"></div>
<table id="history" style="table-layout:fixed; width:350px;word-break:break-all;">
<thead>
<tr>
<th>History</th>
</tr>
</thead>
<tbody>
<td><div id="txtHistory"></div></td>
</tbody>
</div>
</div>
<script type="text/javascript" src="assets/js/options.js"></script>
</body>
</html>