summaryrefslogtreecommitdiffstats
path: root/web_src/js/standalone/devtest.js
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/standalone/devtest.js')
-rw-r--r--web_src/js/standalone/devtest.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/web_src/js/standalone/devtest.js b/web_src/js/standalone/devtest.js
new file mode 100644
index 0000000..d0ca511
--- /dev/null
+++ b/web_src/js/standalone/devtest.js
@@ -0,0 +1,11 @@
+import {showInfoToast, showWarningToast, showErrorToast} from '../modules/toast.js';
+
+document.getElementById('info-toast').addEventListener('click', () => {
+ showInfoToast('success 😀');
+});
+document.getElementById('warning-toast').addEventListener('click', () => {
+ showWarningToast('warning 😐');
+});
+document.getElementById('error-toast').addEventListener('click', () => {
+ showErrorToast('error 🙁');
+});