aboutsummaryrefslogtreecommitdiff
path: root/static/scripts/errorControls.js
diff options
context:
space:
mode:
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