-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.html
More file actions
49 lines (40 loc) · 1.73 KB
/
Copy pathoptions.html
File metadata and controls
49 lines (40 loc) · 1.73 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Options</title>
<link rel="stylesheet" href="options.css" />
</head>
<body>
<div id="app">
<h2>Options</h2>
<div id="colors-container">
<label for="accentuationColor">Accentuation Color:</label>
<input type="color" id="accentuationColor" name="accentuationColor" />
</div>
<div class="exception-header">
<span>Websites to exclude from dark mode</span>
</div>
<div id="exceptions-container">
<!-- Exceptions will be dynamically added here -->
</div>
<button id="add-exception">Add Exception</button>
<button id="save-options">Save Options</button>
<button id="import-options">Import Options</button>
<input id="import-options-browse" type="file" class="hidden" accept=".json" id="import-options"></button>
<button id="export-options">Export Options</button>
<span id="saved-ok" class="status-ok">Options saved</span>
<span id="exported-ok" class="status-ok">Options exported to file</span>
<span id="exported-error" class="status-error">An error has occurred while exporting to file</span>
<span id="imported-ok" class="status-ok">Options imported from file</span>
<span id="imported-error" class="status-error">An error has occurred while importing file</span>
</div>
<template id="exception-template">
<div class="exception-row">
<input placeholder="URL Match Regexp" class="url" />
<span class="remove-exception-button" title="Remove Exception">✗</span>
</div>
</template>
<script src="options.js" type="module"></script>
</body>
</html>