Adjust site-wide settings here.
-
- Toggle light/dark mode.
- (It should default to your system setting.)
-
-
- Alternatively, click here to clear your selection to allow the website to
- automatically adjust to your system setting.
-
-
+ Change the color theme in the top-right corner of the navbar.
+
diff --git a/client/settings/index.js b/client/settings/index.js
index 271b4bd3d..1ce6e18fd 100644
--- a/client/settings/index.js
+++ b/client/settings/index.js
@@ -15,27 +15,6 @@ if (window.localStorage.getItem('sound-effects') === 'true') {
document.getElementById('toggle-sound-effects').checked = true;
}
-const stylesheet = document.querySelector('#custom-css');
-document.getElementById('toggle-color-theme').addEventListener('click', function () {
- if (stylesheet.getAttribute('href') === '/bootstrap/light.css') {
- stylesheet.setAttribute('href', '/bootstrap/dark.css');
- window.localStorage.setItem('color-theme', 'dark');
- } else {
- stylesheet.setAttribute('href', '/bootstrap/light.css');
- window.localStorage.setItem('color-theme', 'light');
- }
-});
-
-document.getElementById('reset-color-theme').addEventListener('click', function () {
- window.localStorage.removeItem('color-theme');
- if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
- // Get OS preferred color scheme
- document.querySelector('#custom-css').setAttribute('href', '/bootstrap/dark.css');
- } else if (window.matchMedia && window.matchMedia('(prefers-color-scheme: light)').matches) {
- document.querySelector('#custom-css').setAttribute('href', '/bootstrap/light.css');
- }
-});
-
document.getElementById('font-size').addEventListener('input', function () {
window.localStorage.setItem('font-size', this.value);
document.getElementById('font-size-display').textContent = this.value;
diff --git a/client/tools/api-docs/bonus.html b/client/tools/api-docs/bonus.html
index 658f07665..345c25642 100644
--- a/client/tools/api-docs/bonus.html
+++ b/client/tools/api-docs/bonus.html
@@ -11,13 +11,12 @@
-
-
-
+
+
-