]>
Commit | Line | Data |
---|---|---|
1 | <!doctype html> | |
2 | <html> | |
3 | <head> | |
4 | <meta charset='utf-8'/> | |
5 | <title>Tabs Backup & Restore - Options</title> | |
6 | ||
7 | <link rel='stylesheet' href='dark.css' media='(prefers-color-scheme: dark)'/> | |
8 | <link rel='stylesheet' href='light.css' media='(prefers-color-scheme: light), (prefers-color-scheme: no-preference)'/> | |
9 | <!-- Load theme override asap to help with initial loading/flashing. --> | |
10 | <link rel='stylesheet' href='' id='theme-override'/> | |
11 | <script src="theme-init.js"></script> | |
12 | ||
13 | <style> | |
14 | body { | |
15 | font-family: Arial; | |
16 | background-color: var(--body-color); | |
17 | filter: var(--body-filter); | |
18 | overflow-x:hidden; | |
19 | } | |
20 | ||
21 | #content { | |
22 | min-width:357px; | |
23 | max-width: 500px; | |
24 | margin: 0 auto; | |
25 | } | |
26 | ||
27 | img { | |
28 | margin:5px; | |
29 | border:2px solid black; | |
30 | vertical-align:middle; | |
31 | width:75px; | |
32 | height:75px; | |
33 | filter: var(--img-filter); | |
34 | } | |
35 | ||
36 | .menuItem { | |
37 | position: relative; | |
38 | background: #edf6fd; | |
39 | padding: 20px; | |
40 | margin-top: 0px; | |
41 | margin-left: 20px; | |
42 | margin-right: 20px; | |
43 | margin-bottom: 20px; | |
44 | color: black; | |
45 | display: block; | |
46 | cursor: hand; | |
47 | cursor: pointer; | |
48 | } | |
49 | ||
50 | .menuItem:hover { | |
51 | background: #d8edfc; | |
52 | } | |
53 | ||
54 | .backupItem { | |
55 | position: relative; | |
56 | display: block; | |
57 | background: #f4f4f4; | |
58 | padding: 8px; | |
59 | margin: 8px; | |
60 | } | |
61 | ||
62 | .backupItemTitle { | |
63 | font-size: 14px; | |
64 | font-weight: bold; | |
65 | } | |
66 | ||
67 | .backupItemDetails { | |
68 | font-size: 12px; | |
69 | padding: 5px; | |
70 | } | |
71 | ||
72 | .backupItemDetailsNr { | |
73 | position: absolute; | |
74 | left: 100px; | |
75 | } | |
76 | ||
77 | .backupItemToolbar { | |
78 | position: absolute; | |
79 | display: block; | |
80 | right: 10px; | |
81 | top: 10px; | |
82 | } | |
83 | ||
84 | .backupItemToolbar a { | |
85 | cursor: hand; | |
86 | cursor: pointer; | |
87 | } | |
88 | ||
89 | .backupItemFooter { | |
90 | position: absolute; | |
91 | display: block; | |
92 | right: 10px; | |
93 | bottom: 10px; | |
94 | ||
95 | font-size: 10px; | |
96 | } | |
97 | ||
98 | .backupItemFooterAutoBackup { | |
99 | color: #23b827; | |
100 | } | |
101 | ||
102 | .backupItemFooterManualBackup { | |
103 | color: #d95843; | |
104 | } | |
105 | ||
106 | #backupsListTitle { | |
107 | font-size: 16px; | |
108 | margin: 10px; | |
109 | padding: 10px; | |
110 | padding-bottom: 0px; | |
111 | text-decoration:underline; | |
112 | } | |
113 | ||
114 | #statusDiv { | |
115 | display: block; | |
116 | font-size: 12px; | |
117 | background-color: #ecffed; | |
118 | padding: 8px; | |
119 | margin-top: 4px; | |
120 | height: 16px; | |
121 | } | |
122 | ||
123 | #prefs { | |
124 | margin-top: 10px; | |
125 | } | |
126 | ||
127 | .prefsRow td { | |
128 | padding-top: 20px; | |
129 | } | |
130 | ||
131 | .prefsDescription { | |
132 | font-size: 12px; | |
133 | color: grey; | |
134 | } | |
135 | ||
136 | #buttonsDiv { | |
137 | position: relative; | |
138 | margin-top: 20px; | |
139 | } | |
140 | ||
141 | #smallDescription { | |
142 | font-size: 12px; | |
143 | color: grey; | |
144 | } | |
145 | ||
146 | select { | |
147 | padding: 5px; | |
148 | } | |
149 | ||
150 | button.selected { | |
151 | filter: invert(1); | |
152 | } | |
153 | </style> | |
154 | ||
155 | <!-- <script src="jquery-1.8.2.min.js"></script> --> | |
156 | <!-- JavaScript and HTML must be in separate files for security. --> | |
157 | <script src="options.js?v=2"></script> | |
158 | ||
159 | </head> | |
160 | <body> | |
161 | <div id="content"> | |
162 | ||
163 | <div id="prefs"> | |
164 | ||
165 | <table> | |
166 | <tr class="prefsRow"> | |
167 | <td width="200">Auto backup every<br /> | |
168 | </td> | |
169 | <td><select id="prefsSelectBackupPeriod"> | |
170 | <option value="1">1 minute</option> | |
171 | <option value="2">2 minutes</option> | |
172 | <option value="3">3 minutes</option> | |
173 | <option value="5">5 minutes</option> | |
174 | <option value="10">10 minutes</option> | |
175 | <option value="15">15 minutes</option> | |
176 | <option value="30">30 minutes</option> | |
177 | <option value="45">45 minutes</option> | |
178 | <option value="60">1 hour</option> | |
179 | <option value="120">2 hours</option> | |
180 | <option value="240">4 hours</option> | |
181 | </select></td> | |
182 | </tr> | |
183 | <tr> | |
184 | <td colspan="2" class="prefsDescription"> | |
185 | A backup is created only when something has changed from the previous one. A change is considered when a window or tab is created, closed or moved. | |
186 | </td> | |
187 | </tr> | |
188 | ||
189 | <tr class="prefsRow"> | |
190 | <td width="200">Max number of backups</td> | |
191 | <td> | |
192 | <select id="prefsSelectMaxBackups"> | |
193 | <option value="10">10</option> | |
194 | <option value="15">15</option> | |
195 | <option value="20">20</option> | |
196 | <option value="30">30</option> | |
197 | <option value="60">60</option> | |
198 | <option value="80">80</option> | |
199 | </select> | |
200 | </td> | |
201 | </tr> | |
202 | <tr> | |
203 | <td colspan="2" class="prefsDescription"> | |
204 | The maximum number of backups to keep. Old backups will be deleted when this number is reached. | |
205 | </td> | |
206 | </tr> | |
207 | ||
208 | <tr class="prefsRow"> | |
209 | <td width="200">Theme</td> | |
210 | <td style="white-space: nowrap"> | |
211 | <input type="text" id="prefsTheme" hidden> | |
212 | <button id="theme-light">Light</button> | |
213 | <button id="theme-system">System</button> | |
214 | <button id="theme-dark">Dark</button> | |
215 | </td> | |
216 | </tr> | |
217 | <tr> | |
218 | <td colspan="2" class="prefsDescription"> | |
219 | The color scheme to use in this extension. | |
220 | </td> | |
221 | </tr> | |
222 | ||
223 | </table> | |
224 | ||
225 | </div> | |
226 | ||
227 | <div id="buttonsDiv"> | |
228 | <button id="saveBtn" style="padding: 10px 20px;">Save</button> | |
229 | <a href="#" id="restoreDefaultBtn" style="position: absolute; right: 0px; top: 24px; font-size: 10px;">Restore options to default</a> | |
230 | <div id="statusDiv"></div> | |
231 | ||
232 | </div> | |
233 | </div> | |
234 | </body> | |
235 | </html> |