This commit is contained in:
sss
2025-06-05 15:15:40 -07:00
parent 2db0b52a04
commit 21f922efb4
3 changed files with 368 additions and 7 deletions

View File

@@ -2,7 +2,7 @@ const $ = (selector) =>
{
const el = document.querySelector(selector)
el.render = (html) => el.innerHTML = html
el.inject = (html) => el.insertAdjacentHTML('beforeend', html)
el.ontop = (html) => el.insertAdjacentHTML('beforebegin', html)
return el;
};
@@ -13,6 +13,6 @@ var QTModal = {
Loading...
</div>
</div>`,
show: () => $(`body`).inject(QTModal.html),
show: () => $(`body`).ontop(QTModal.html),
hide: () => $('#qtmodal')?.remove()
}