0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-05 04:08:09 +01:00
gitea/web_src/js/standalone/devtest.js

12 lines
419 B
JavaScript
Raw Normal View History

import {showInfoToast, showWarningToast, showErrorToast} from '../modules/toast.js';
document.querySelector('#info-toast').addEventListener('click', () => {
showInfoToast('success 😀');
});
document.querySelector('#warning-toast').addEventListener('click', () => {
showWarningToast('warning 😐');
});
document.querySelector('#error-toast').addEventListener('click', () => {
showErrorToast('error 🙁');
});