miru/app/js/util.js
2020-09-15 21:44:16 +02:00

11 lines
345 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")
}
}