diff --git a/about.html b/about.html
index a259b3c1..80aad4be 100644
--- a/about.html
+++ b/about.html
@@ -64,9 +64,10 @@
js-cookie: working with cookies.
Shoelace: a lot of smaller styling, such as the safe mode alert
3kh0: a lot of games, the download/upload save feature, and the main inspiration
+ View Background Credits
Developers
- Sky
+ Sky
Supporters
Caidn
diff --git a/backgrounds.html b/backgrounds.html
new file mode 100644
index 00000000..59e89af6
--- /dev/null
+++ b/backgrounds.html
@@ -0,0 +1,81 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Selenite
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 邦乔彦
+
+ Matt Vince
+
+
+
+
+
+
diff --git a/index.html b/index.html
index c3f99aa8..b80169f1 100644
--- a/index.html
+++ b/index.html
@@ -56,7 +56,7 @@
-
+
Thank you for choosing Selenite! You will be able to play over 140 high quality games, and we have many tools to make your experience better.
Wanting to transfer your data from another website? Try the transfer utility in the footer!
diff --git a/js/cloaks.js b/js/cloaks.js
index e0b7e9ad..caa5767e 100644
--- a/js/cloaks.js
+++ b/js/cloaks.js
@@ -31,7 +31,7 @@ function clearCloak() {
document.cookie = "tabname=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
var link = document.querySelector("link[rel~='icon']");
link.remove();
- document.title = "Tab Cloak | e-gamepass";
+ document.title = "Settings | Selenite";
link = document.createElement("link");
link.rel = "icon";
document.head.appendChild(link);
diff --git a/js/main.js b/js/main.js
index 3d9c2644..0567735b 100644
--- a/js/main.js
+++ b/js/main.js
@@ -14,11 +14,31 @@ function check() {
}
document.addEventListener('DOMContentLoaded', function() {
- if (localStorage.getItem("theme")) {
- document.body.setAttribute("theme", localStorage.getItem("theme"));
+ const iconSetting = document.querySelector("input#discordIcon");
+ if(localStorage.getItem("theme")) {
+ localStorage.setItem("selenite.theme", localStorage.getItem("theme"));
+ localStorage.removeItem("theme");
+ }
+ if (localStorage.getItem("selenite.theme")) {
+ document.body.setAttribute("theme", localStorage.getItem("selenite.theme"));
} else {
document.body.setAttribute("theme", "main");
}
+ if(document.querySelector("widgetbot-crate")) {
+ if(localStorage.getItem("selenite.discordIcon") == "true") {
+ const widget = document.querySelector("widgetbot-crate");
+ widget.setAttribute("style", "display:none");
+ }
+ }
+ if(document.querySelector("input#discordIcon")) {
+ if(localStorage.getItem("selenite.discordIcon") == "true") {
+ iconSetting.checked = true;
+ }
+ iconSetting.addEventListener("click", () => {
+ localStorage.setItem("selenite.discordIcon", iconSetting.checked)
+ });
+ }
+
check();
checkAlert();
});
@@ -29,6 +49,7 @@ function checkAlert() {
const openButton = dialog.nextElementSibling;
const closeButton = dialog.querySelector('sl-button[slot="footer"]');
setTimeout(() => {
+ dialog.removeAttribute("display");
dialog.show();
}, 250)
closeButton.addEventListener('click', () => dialog.hide());
@@ -50,7 +71,7 @@ function copyToClipboard(text) {
}
function setTheme(theme) {
- localStorage.setItem("theme", theme);
+ localStorage.setItem("selenite.theme", theme);
document.body.setAttribute("theme", theme);
}
function setPanicMode() {
@@ -60,3 +81,7 @@ function setPanicMode() {
}
document.cookie = "panicurl=" + $("#panic").val();
}
+function customTheme() {
+ const customMenu = document.querySelector('#customMenu');
+ customMenu.removeAttribute("display");
+}
\ No newline at end of file
diff --git a/settings.html b/settings.html
index eaf2eae2..c7c9acc6 100644
--- a/settings.html
+++ b/settings.html
@@ -63,7 +63,7 @@
Website Name
Website Icon
-
+
Or select a preset: