-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
116 lines (116 loc) · 4.47 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="popup.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href='https://fonts.googleapis.com/css?family=IBM Plex Mono' rel='stylesheet'>
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Ubuntu:regular,bold&subset=Latin">
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans&display=swap" rel="stylesheet">
</head>
<body>
<div id="section-1">
<div id="title">
<img src="images/logo.svg" id="logo" alt="logo"/>
<h1>WebStylus</h1>
</div>
<div class="switch">
<div class="switch-box">
<img class="c1 master" />
<img class="c2 master" />
</div>
</div>
</div>
<div id="section-2">
<div class="section-row">
<div class="subtitle">
<p><b>Saturation</b> - <div id="saturation">100%</div></p>
</div>
<div class="slider">
<input type="range" min="0" max="20" value="10" class="slider-bar" id="saturation_slider">
</div>
</div>
<div class="section-row">
<div class="subtitle">
<p><b>Contrast</b> - <div id="contrast">100%</div></p>
</div>
<div class="slider">
<input type="range" min="0" max="20" value="10" class="slider-bar" id="contrast_slider">
<div id="contrast"></div>
</div>
</div>
</div>
<div id="section-3">
<div class="section-row">
<div class="subtitle">
<p><b>Dark Mode</b> - Smart colour invert</p>
</div>
<div class="switch">
<div class="switch-box">
<img class="c1 darkMode" />
<img class="c2 darkMode" />
</div>
</div>
</div>
<div class="section-row">
<div class="subtitle">
<p><b>Night Mode</b> - Reduce blue light</p>
</div>
<div class="switch">
<div class="switch-box">
<img class="c1 nightMode" />
<img class="c2 nightMode" />
</div>
</div>
</div>
</div>
<div id="section-4" style="display: none;">
<div class="section-row">
<div class="subtitle">
<p><b>AI alt-text</b> - Enable</p>
</div>
<div class="switch">
<div class="switch-box">
<img class="c1 enableAltText" />
<img class="c2 enableAltText" />
</div>
</div>
</div>
<div class="section-row">
<div class="subtitle">
<p><b>AI alt-text</b> - Display</p>
</div>
<div class="switch">
<div class="switch-box">
<img class="c1 displayAltText" />
<img class="c2 displayAltText" />
</div>
</div>
</div>
</div>
<div id="section-5">
<div class="section-row">
<div class="subtitle">
<p><b>Colour+ Mode (experimental)</b></p>
<p>Colourblind Accessibility</p>
</div>
<div class="switch">
<div class="switch-box">
<img class="c1 colourblind" />
<img class="c2 colourblind" />
</div>
</div>
</div>
<div class="section-row">
<a class="footer" href="https://webstylus.vercel.app/" target="_blank">
<p>Learn more</p>
<img id="new" src="images/new_window.png" alt="new window"/>
</a>
</div>
</div>
<script src="popup.js"></script>
</body>
</html>