aboutsummaryrefslogtreecommitdiff
path: root/static/scripts/preferences.js
diff options
context:
space:
mode:
authorBobby <[email protected]>2025-07-16 20:07:20 +0530
committerBobby <[email protected]>2025-07-16 20:07:20 +0530
commit2255bbed94e1459788203a92b5f0eec5370abcab (patch)
tree36ec94fb7370235ca3f7e22f892a191b82650d47 /static/scripts/preferences.js
parentbb54eaf6623acdcfb2e9056eb803260dff2150a5 (diff)
downloadimageboard-2255bbed94e1459788203a92b5f0eec5370abcab.tar.xz
imageboard-2255bbed94e1459788203a92b5f0eec5370abcab.zip
upload ui for images; registered users can upload
Diffstat (limited to 'static/scripts/preferences.js')
-rw-r--r--static/scripts/preferences.js12
1 files changed, 0 insertions, 12 deletions
diff --git a/static/scripts/preferences.js b/static/scripts/preferences.js
index 61db579..66a7bb7 100644
--- a/static/scripts/preferences.js
+++ b/static/scripts/preferences.js
@@ -8,18 +8,6 @@ function validateCSSFontSize(value) {
return validFontSizePattern.test(value);
}
-function showError(message) {
- const errorMessage = document.getElementById('error-message');
- errorMessage.textContent = message;
- errorMessage.style.display = 'block';
-}
-
-function hideError() {
- const errorMessage = document.getElementById('error-message');
- errorMessage.textContent = '';
- errorMessage.style.display = 'none';
-}
-
function setPreferences() {
const preferences = {
sidebar_width: document.getElementById('sidebar-width').value,