-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
458 lines (425 loc) · 16.2 KB
/
index.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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
<!--
_____ _ _ _
/ ___| | | | | | |
\ `--. __ _| |_ _ _ _ __ _ __ ___| |_ __ _ _ __| |_ _ __ __ _ __ _ ___
`--. \/ _` | __| | | | '__| '_ \ / __| __/ _` | '__| __| '_ \ / _` |/ _` |/ _ \
/\__/ / (_| | |_| |_| | | | | | | \__ \ || (_| | | | |_| |_) | (_| | (_| | __/
\____/ \__,_|\__|\__,_|_| |_| |_| |___/\__\__,_|_| \__| .__/ \__,_|\__, |\___|
| | __/ |
|_| |___/
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>New Tab</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/x-icon" href="/assets/img/favicon.ico" />
<!-- =+=+= All the CSS needed to make Saturn Work =+=+= -->
<link rel="stylesheet" href="./src/css/core.css" />
<link rel="stylesheet" href="./src/css/styles.css" />
<link rel="stylesheet" href="./src/css/anim.css" />
<link rel="stylesheet" href="./src/css/custom.css" />
<link rel="stylesheet" href="./src/css/themes.css" />
<link rel="stylesheet" href="assets/icons/css/line-awesome.min.css" />
<link rel="stylesheet" href="./src/css/tootik.min.css" />
<!-- =+=+= jQuery [v3.7.0] =+=+= -->
<script src="./src/js/jquery.js"></script>
</head>
<body>
<!-- =+=+= Good morning/afternoon/night and time text =+=+= -->
<div class="sat-header">
<p class="date" id="date"></p>
<p class="time" id="time"></p>
<p class="good_morning" id="good_morning"></p>
<div class="quote">
<p class="quote quotes_bg" id="quotation"></p>
</div>
</div>
<main>
<!-- =+=+= Saturn Search =+=+= -->
<div class="full">
<div class="search_block">
<form
id="search_eng_form"
method="get"
action="https://www.google.com/search"
>
<a
href="javascript:void(0)"
class="search-engine-logo"
id="se_button"
>
<img
id="se_icon"
src="/assets/icons/search.svg"
alt="Search engine logo"
class="se_icon"
title="Change search engine.. (Ctrl + Arrow Up)"
/>
</a>
<input
class="search-bar"
type="search"
id="search"
placeholder="Search with Google.."
autocomplete="off"
name="q"
title="Click to search (Ctrl + /)"
/>
</form>
</div>
</div>
<div class="minimalistic-ui">
<div class="dropdown" style="float: right">
<button class="dropbtn"><i class="las la-ellipsis-h"></i></button>
<div class="dropdown-content">
<a href="#" target="_blank">
<i class="las la-plus-square"></i>
New window</a
>
<a
class="dropdown_redaccent"
href="https://github.com/mraif13/Saturn-startpage/issues/new"
target="_blank"
><i class="las la-bug"></i>
Report bug...
</a>
</div>
</div>
<!-- =+=+= App lists + App category =+=+= -->
<div class="apps_list">
<ul class="apps-category">
<li class="tab-link current" data-tab="app-1">
<i class="lar la-grin-hearts"></i> <span>Most used</span>
</li>
<li class="tab-link" data-tab="app-2">
<i class="las la-graduation-cap"></i> <span>Education</span>
</li>
<li class="tab-link" data-tab="app-3">
<i class="las la-share-alt"></i> <span>Social media</span>
</li>
<li class="tab-link" data-tab="app-4">
<i class="las la-play-circle"></i> <span>Multimedia</span>
</li>
</ul>
<div id="apps_list"></div>
<!-- =+=+= All apps are loaded inside [render.js] =+=+= -->
<!-- End of app list -->
<div class="tab-link fix-favorites-header">
<!-- =+=+= Favorite v3.2 =+=+= -->
<div id="fav-container" class="fav-container">
<div id="content">
<div class="favorites-search">
<input
type="text"
placeholder="Find favorites.."
id="searchfavorites"
/>
<button
class="favorite-button"
title="Add favorites (Shift + Z)"
>
<i class="las la-plus"></i> Add
</button>
</div>
<p
style="display: none"
id="search-results"
class="search-results"
>
<span id="search-results-text"></span>
</p>
<ul id="fav-link"></ul>
</div>
</div>
</div>
</div>
</div>
<!-- =+=+= Favorites Modal =+=+= -->
<div id="fav_modal" class="fav_modal">
<div class="favorites_modal_content">
<p class="settings-item-title" style="margin-top: 5px">Favorites</p>
<p class="settings-item-under-title description">
Add your favorite websites & more.
<a
href="https://github.com/mraif13/Saturn-startpage/wiki/Favorites-feature"
target="_blank"
style="color: var(--sat-accent-color1)"
>Learn more...
</a>
</p>
<!-- =+=+= Input ++ Favorite title =+=+=-->
<label class="fav_title"> Link title</label>
<input
id="title"
placeholder="Enter a title"
autocomplete="off"
spellcheck="false"
class="favorite-input"
type="text"
/>
<p
class="small_text"
style="
color: var(--sat-lighter-ids);
margin-bottom: -20px;
font-size: 13px;
"
>
<i class="las la-exclamation-circle"></i> Icons may take a few
seconds to appear.
</p>
<br />
<!-- =+=+= Input ++ Favorite URL =+=+= -->
<label class="fav_title">URL</label>
<input
id="url"
placeholder="Enter or paste a URL"
autocomplete="off"
spellcheck="false"
class="favorite-input"
/>
<div class="button-container">
<button id="cancel-fav-btn" class="cancel-fav-btn danger_red">
<i class="las la-times"></i> Cancel
</button>
<button id="add" class="save-button">
<i class="lar la-save"></i> Save
</button>
</div>
</div>
<!-- =+=+= Save message =+=+= -->
<div id="saveMsgBar">Favorites added</div>
</div>
<!-- Sidebar -->
<div class="sidebar">
<div class="settings-header">
<h3 class="settings-title">Settings</h3>
</div>
<button id="open_settings" class="sidebar-trigger">
<i class="las la-cog"></i>
</button>
<!-- Sidebar Tab Menu -->
<ul class="tab-menu">
<li
class="settings-tab-item active"
data-tab="tab1"
>
<i class="las la-cog"></i> General
</li>
<li
class="settings-tab-item"
data-tab="tab2"
>
<i class="las la-brush"></i> Style
</li>
<li
class="settings-tab-item"
data-tab="tab3"
>
<i class="las la-palette"></i> Themes
</li>
<li
class="settings-tab-item"
data-tab="tab5"
>
<i class="las la-info-circle"></i> About
</li>
</ul>
<div class="setting-content">
<!-- Tab 1: General Settings -->
<div id="tab1" class="tab-pane active fade-in">
<div class="settings-background">
<h3><i class="las la-user-edit"></i> Username</h3>
<p class="description">
Replace the default "null" username with your own.
</p>
<div class="username-section">
<input
type="text"
id="username_input"
placeholder="Username..."
/>
<button id="save" class="save-button">
<i class="las la-save"></i> Apply
</button>
</div>
</div>
<div class="settings-background">
<h3><i class="las la-keyboard"></i> Kpress (Beta)</h3>
<p class="description">
Display a pop-up on the bottom right of the screen, when two or more keys are pressed
simultaneously.
</p>
<label class="switch">
<input type="checkbox" id="kpresstoggle" />
<span class="slider round"></span>
</label>
</div>
<div class="settings-background">
<h3><i class="las la-search"></i> Saturn Search</h3>
<p class="description">
Tip: Click the search icon to effortlessly toggle between various search providers.
</p>
<h3>Search provider</h3>
<p class="description">
Select your preferred search provider.
Your choice will be saved and applied across all future searches.
</p>
<div class="search-engine-select">
<select id="searchEngine">
<option value="0">Google (Default)</option>
<option value="1">DuckDuckGo</option>
<option value="2">Reddit</option>
<option value="3">YouTube</option>
<option value="4">ProtonDB</option>
</select>
</div>
</div>
<div class="settings-background">
<h3><i class="las la-compress-arrows-alt"></i> Minimalistic Interface</h3>
<p class="description">
Toggle to simplify the interface by hiding non-essential elements. In this mode,
you'll rely on keyboard shortcuts for quick navigation to different websites.
</p>
<label class="switch">
<input type="checkbox" id="toggle_minimalistic_mode" />
<span class="slider round"></span>
</label>
</div>
<div class="settings-background danger-zone">
<h3><i class="las la-trash-alt"></i> Reset Data</h3>
<p class="description">
Performing this action will reset Saturn to its default settings and
permanently erase all saved data.
This action cannot be undone.
</p>
<button
id="reset_button"
class="danger_red"
aria-label="Erase everything"
>
<i class="las la-trash-alt"></i> Erase everything
</button>
</div>
</div>
<!-- Tab 2: Style Settings -->
<div id="tab2" class="tab-pane fade-in">
<div class="settings-background">
<h3><i class="las la-image"></i> Background</h3>
<p class="description">
You can set a custom image as your background. Please note that
using a URL-based background requires an active internet connection to load the image.
</p>
<input
type="text"
id="image_url"
placeholder="Enter or paste a URL"
/>
<button
id="copy-backgroundurl"
class="copy-url-button"
aria-label="Copy URL to clipboard"
>
<i class="las la-clipboard"></i>
</button>
<p class="processing_bg"></p>
<label>
<input type="checkbox" id="force_white_color_header" />
<span>White font</span>
</label>
<div class="button-container">
<button id="delete_custom_image" class="danger_red">
<i class="las la-times"></i> Delete
</button>
<button id="save-image" class="save-button">
<i class="lar la-save"></i> Apply
</button>
</div>
<div class="settings-separator">
<h3>Upload Background</h3>
<p class="description">
Uploaded images will be converted to <code>base64</code> format and stored locally.
</p>
</div>
<input type="file" id="imageupload" accept="image/*" />
</div>
<div class="settings-background">
<h3>Fonts</h3>
<p class="description">
Apply different fonts options.
</p>
<label>
<input type="checkbox" id="bold_text" />
<span>Bold Text</span>
</label>
<br />
<label>
<input type="checkbox" id="browser_font" />
<span>Use Sans Serif font</span>
</label>
</div>
<div class="settings-background">
<h3>Hide Search Bar</h3>
<p class="description">
Hide the search bar to help prevent UI clutter. Please note that, Saturn search
does not work when its hidden.
</p>
<label class="switch">
<input type="checkbox" class="hide-search" />
<span class="slider round"></span>
</label>
</div>
</div>
<!-- Tab 3: Themes -->
<div id="tab3" class="tab-pane fade-in">
<div class="settings-background">
<h3><i class="las la-palette"></i> Themes</h3>
<p class="description">
Choose a theme to match your mood and style.
</p>
<div id="themes-container">
<!-- Themes will be dynamically generated here -->
</div>
</div>
</div>
<!-- Tab 5: About Section -->
<div id="tab5" class="tab-pane fade-in">
<div id="setting_about"></div>
<div id="k_shortcuts"></div>
</div>
</div>
<p class="line"></p>
<p
class="description"
style="text-align: center; font-weight: 500; font-size: 13px"
>
<a
href="https://github.com/mraif13/Saturn-startpage/issues/new"
target="_blank"
><i class="las la-bug"></i>
Report a bug
</a>
</p>
</div>
<div id="kpress_popup" class="hidden"></div>
<!-- All the javascript needed to make saturn's core features work -->
<script type="text/javascript" src="./src/js/index.js"></script>
<!-- Main JS - File -->
<script type="text/javascript" src="./src/js/search.js"></script>
<!-- Search JS - File -->
<script type="text/javascript" src="./src/js/favorites.js"></script>
<!-- Favorites JS - File -->
<script type="text/javascript" src="./src/js/render.js"></script>
<!-- QUOTE JS - File -->
<script type="text/javascript" src="./src/js/quote.js"></script>
<!-- THEMES JS - File -->
<script type="text/javascript" src="./src/js/themes.js"></script>
<!-- FOCUS JS - File -->
<script type="text/javascript" src="./src/js/keyboard.js"></script>
<script type="text/javascript" src="./src/js/applist.js"></script>
</main>
</body>
</html>