mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-03-23 06:07:41 +00:00
10 lines
320 B
JavaScript
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')
|
|
}
|
|
}
|