diff options
| author | Bobby <[email protected]> | 2025-07-16 20:07:20 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2025-07-16 20:07:20 +0530 |
| commit | 2255bbed94e1459788203a92b5f0eec5370abcab (patch) | |
| tree | 36ec94fb7370235ca3f7e22f892a191b82650d47 /static/scripts/errorControls.js | |
| parent | bb54eaf6623acdcfb2e9056eb803260dff2150a5 (diff) | |
| download | imageboard-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.js | 11 |
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 |
