forked from a456pur/seraph
-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.html
170 lines (144 loc) · 7.18 KB
/
settings.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
<html lang="en">
<head>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-7FN7LEVWXD"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-7FN7LEVWXD');
</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="images/ico.ico" type="image/x-icon">
<link rel="stylesheet" href="storage/css/settings.css">
<title>Settings | AidanGames</title>
<meta name="description" content="an open source games site hosting 500+ games, useful utilities, powerful settings + a clean user interface">
<meta property="og:site_name" content="AidanGames">
<meta property="og:title" content="AidanGames">
<meta property="og:type" content="website">
<meta property="og:description" content="an open source games site hosting 500+ games, useful utilities, powerful settings + a clean user interface">
<style>
button {
margin: 2px;
}
</style>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register('/offline-worker.js').then(function(registration) {
console.log('service worker initalised! scope:', registration.scope);
navigator.serviceWorker.addEventListener('message', function(event) {
if (event.data === 'cached') {
document.getElementById('cache-status').style.display = 'block';
}
});
}, function(error) {
console.log('ack, error with serviceworker! ', error);
});
});
}
</script>
</head>
<body>
<div id="content-side">
<h1>settings</h1>
<a href="index.html" style="font-size: 18px;">go to homepage</a>
<br>
<h2 style="margin: 0;">tab cloaking</h2>
<br>
<select id="presetSelect">
<option value="google">google</option>
<option value="googleclassroom">google classroom</option>
<option value="googledrive">google drive</option>
<option value="chrometab">chrome new tab</option>
<option value="gmail">gmail</option>
<option value="bing">bing</option>
<option value="desmos">desmos calculator</option>
<option value="wikipedia">wikipedia</option>
</select>
<button id="saveButton">select cloak</button>
<button id="resetButton">reset cloak</button>
<p id="success" style="display: none;">success message here</p>
<br>
<h2 style="margin: 0;">themes</h2>
<br>
<select id="theme-select">
<option value="aidangames">aidangames</option>
<option value="azurite">azurite</option>
<option value="retro">retro</option>
<option value="cosmic">cosmic</option>
<option value="molten">molten</option>
<option value="amethyst">amethyst</option>
<option value="ethereal">ethereal</option>
<option value="subzero">subzero</option>
<option value="metro">metro</option>
<option value="ghostly">ghostly</option>
<option value="custom">custom</option>
</select>
<button id="apply-theme">apply theme</button>
<div id="custom-theme-settings" style="display: none;">
<h2 style="text-decoration: underline;">theme customisation</h2>
<div class="theme-property">
<label for="background-image">background image url:</label>
<input type="text" id="background-image" value="https://raw.githubusercontent.com/a456pur/seraph/main/images/backgrounds/seraph/homebg.png">
</div>
<div class="theme-property">
<label for="font-family">font family:</label>
<input type="text" id="font-family" value="Ubuntu">
</div>
<div class="theme-property">
<label for="text-color">text colour:</label>
<input type="color" id="text-color" value="#000000">
</div>
<div class="theme-property">
<label for="background-color">background colour:</label>
<input type="color" id="background-color">
</div>
<div class="theme-property">
<label for="border-color1">border colour:</label>
<input type="color" id="border-color1">
</div>
<div class="theme-property">
<label for="border-color2">secondary border colour:</label>
<input type="color" id="border-color2">
</div>
<div class="theme-property">
<label for="hover-color">hover colour:</label>
<input type="color" id="hover-color">
</div>
<div class="theme-property">
<label for="text-glow">text glow colour:</label>
<input type="color" id="text-glow">
</div>
<button id="apply-custom-theme" style="font-size: 18px;">apply settings</button>
<br>
<button id="import-theme" style="font-size: 18px; width: 120px;">import</button>
<button id="export-theme" style="font-size: 18px; width: 120px;">export</button>
</div>
<br>
<h2 style="margin-bottom: 20px;">PANIC MODE</h2>
<input type="text" id="panicKey" placeholder="choose a key combination" readonly>
<input type="url" id="panicUrl" placeholder="https://www.desmos.com/scientific">
<button onclick="saveSettings()">set panic key</button>
<p id="success-panic" style="display: none;">success message here</p>
<br>
<h2 style="margin-bottom: 20px;">data management</h2>
<button onclick="importData()">import data</button>
<button onclick="exportData()">export data</button>
<button onclick="clearData()">clear data</button>
<br>
<h2 style="margin-bottom: 5px;">other</h2>
<p style="text-decoration: underline;">link behaviour</p>
<label>
<input type="radio" name="openBlankSetting" value="true"> open links in new tab
</label>
<label>
<input type="radio" name="openBlankSetting" value="false"> open links in same tab
</label>
<br>
<br>
<script src="storage/js/cloak.js"></script>
<script src="storage/js/data.js"></script>
<script src="/storage/js/settings.js"></script>
</body>
</html>