-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
51 lines (49 loc) · 1.96 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Coolor: Link Color Selector</title>
<link rel="stylesheet" href="popup.css">
<style>
</style>
</head>
<body>
<div class="container">
<h3>Recolor Links</h3>
<label for="colorScheme">Recolor the links:</label>
<select id="colorScheme">
<option value="custom">Custom</option>
<option value="protanopia">Red-green color vision deficiency</option>
<option value="tritanopia">Blue-yellow color vision deficiency</option>
<option value="monochromacy">Complete color vision deficiency</option>
</select>
<!-- Existing color pickers for custom colors -->
<div class="colorCustom">
<label for="visitedColor">Visited Link Color:</label>
<input type="color" id="visitedColorCustom">
</div>
<div class="colorCustom">
<label for="unvisitedColor">Unvisited Link Color:</label>
<input type="color" id="unvisitedColorCustom">
</div>
<div class="colorPreview">
<label for="visitedPreview">Visited Link Color:</label>
<div class="PreviewColorWrapper"><span id="visitedPreview" style="display:inline-block; width:40px; height:16px;"></span></div>
<label for="unvisitedPreview">Unvisited Link Color:</label>
<div class="PreviewColorWrapper"><span id="unvisitedPreview" style="display:inline-block; width:40px; height:16px;"></span></div>
</div>
<div id="bottom">
<label class="switch">
<input type="checkbox" id="toggleExtension">
<div class="slider round">
<!--ADDED HTML -->
<span class="on">ON</span>
<span class="off">OFF</span>
<!--END-->
</div>
</label>
</div>
</div>
<script src="popup.js"></script>
</body>
</html>