aboutsummaryrefslogtreecommitdiff
path: root/static/scripts/errorControls.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/errorControls.js
parentbb54eaf6623acdcfb2e9056eb803260dff2150a5 (diff)
downloadimageboard-2255bbed94e1459788203a92b5f0eec5370abcab.tar.xz
imageboard-2255bbed94e1459788203a92b5f0eec5370abcab.zip
upload ui for images; registered users can upload
Diffstat (limited to 'static/scripts/errorControls.js')
-rw-r--r--static/scripts/errorControls.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/static/scripts/errorControls.js b/static/scripts/errorControls.js
new file mode 100644
index 0000000..8a00756
--- /dev/null
+++ b/static/scripts/errorControls.js
@@ -0,0 +1,11 @@
+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';
+} \ No newline at end of file