miru/app/js/util.js
2021-03-22 16:26:27 +01:00

10 lines
320 B
JavaScript

if ((typeof halfmoon === 'object' || typeof halfmoon === 'function') && (halfmoon !== null)) {
halfmoon.showModal = id => {
const t = document.getElementById(id)
t && t.classList.add('show')
}
halfmoon.hideModal = id => {
const t = document.getElementById(id)
t && t.classList.remove('show')
}
}