summaryrefslogtreecommitdiffstats
path: root/web_src/js/standalone/devtest.js
blob: d0ca511c0f36a10ae6c787a11ab2de805c6dcd09 (plain)
1
2
3
4
5
6
7
8
9
10
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 🙁');
});