-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
175 lines (171 loc) · 5.82 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
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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="popup.css">
</head>
<body>
<h1>Email Reader View<img src="/images/email-reader.svg" alt=""></h1>
<form id="optionsForm">
<button type="button" class="button" id="toggleReaderView"></button>
<fieldset class="profiles">
<legend>Profile</legend>
<input type="radio" name="readerviewProfile" id="readerViewA" value="A">
<label class="button" id="readerViewALabel" for="readerViewA">Light</label>
<input type="radio" name="readerviewProfile" id="readerViewB" value="B">
<label class="button" id="readerViewBLabel" for="readerViewB">Dark</label>
<input type="radio" name="readerviewProfile" id="readerViewC" value="C">
<label class="button" id="readerViewCLabel" for="readerViewC">Sepia</label>
</fieldset>
<fieldset class="profileA" hidden>
<legend>Profile settings</legend>
<div class="selectStyles">
<label>
<span>Name:</span>
<span>
<input type="text" name="nameA" id="nameA">
</span>
</label>
<label>
<span>Background: <span id="backgroundColorValueA"></span></span>
<span>
<input type="color" name="backgroundColorA" id="backgroundColorA">
</span>
</label>
<label>
<span>Text colour: <span id="colorValueA"></span></span>
<span>
<input type="color" name="colorA" id="colorA">
</span>
</label>
<label>
<span>Link colour: <span id="linkColorValueA"></span></span>
<span>
<input type="color" name="linkColorA" id="linkColorA">
</span>
</label>
</div>
</fieldset>
<fieldset class="profileB" hidden>
<legend>Profile settings</legend>
<div class="selectStyles">
<label>
<span>Name:</span>
<span>
<input type="text" name="nameB" id="nameB">
</span>
</label>
<label>
<span>Background: <span id="backgroundColorValueB"></span></span>
<span>
<input type="color" name="backgroundColorB" id="backgroundColorB">
</span>
</label>
<label>
<span>Text colour: <span id="colorValueB"></span></span>
<span>
<input type="color" name="colorB" id="colorB">
</span>
</label>
<label>
<span>Link colour: <span id="linkColorValueB"></span></span>
<span>
<input type="color" name="linkColorB" id="linkColorB">
</span>
</label>
</div>
</fieldset>
<fieldset class="profileC" hidden>
<legend>Profile settings</legend>
<div class="selectStyles">
<label>
<span>Name:</span>
<span>
<input type="text" name="nameC" id="nameC">
</span>
</label>
<label>
<span>Background: <span id="backgroundColorValueC"></span></span>
<span>
<input type="color" name="backgroundColorC" id="backgroundColorC">
</span>
</label>
<label>
<span>Text colour: <span id="colorValueC"></span></span>
<span>
<input type="color" name="colorC" id="colorC">
</span>
</label>
<label>
<span>Link colour: <span id="linkColorValueC"></span></span>
<span>
<input type="color" name="linkColorC" id="linkColorC">
</span>
</label>
</div>
</fieldset>
<details>
<summary>General settings</summary>
<div class="selectStyles">
<label>
<span>Width: <span id="maxWidthValue"></span></span>
<span>
<input type="range" name="maxWidth" id="maxWidth" min="20" max="70" step=".5">
</span>
</label>
<label>
<span>Font family: <span id="fontFamilyValue"></span></span>
<span>
<select name="fontFamily" id="fontFamily">
<option value="serif">serif</option>
<option value="sans-serif">sans-serif</option>
<option value="monospace">monospace</option>
<option value="cursive">cursive</option>
</select>
</span>
</label>
<label>
<span>Font size: <span id="fontSizeValue"></span></span>
<span>
<input type="range" name="fontSize" id="fontSize" min=".5" max="3" step=".25">
</span>
</label>
<label>
<span>Line height: <span id="lineHeightValue"></span></span>
<span>
<input type="range" name="lineHeight" id="lineHeight" min="1" max="2" step=".1">
</span>
</label>
<label>
<span>Word spacing: <span id="wordSpacingValue"></span></span>
<span>
<input type="range" name="wordSpacing" id="wordSpacing" min="0" max="1" step=".1">
</span>
</label>
<label>
<span>Letter spacing: <span id="letterSpacingValue"></span></span>
<span>
<input type="range" name="letterSpacing" id="letterSpacing" min="0" max=".3" step=".02">
</span>
</label>
<label>
<span>Block images: <span id="blockImagesValue"></span></span>
<span>
<input type="checkbox" name="blockImages" id="blockImages">
</span>
</label>
</div>
<hr>
<button type="button" id="resetStyles" class="resetStyles">Reset Settings</button>
</details>
</form>
<p class="emc-credit">Built by
<a href="https://emailmarkup.org/" target="_blank">
<picture>
<source srcset="/images/EMC-Logo-W.svg" media="(prefers-color-scheme: dark)">
<img src="/images/EMC-Logo.svg" alt="Email Markup Consortium">
</picture>
</a>
</p>
<script src="popup.js"></script>
</body>
</html>