Update index.js

This commit is contained in:
2025-06-05 13:57:51 -07:00
committed by GitHub
parent 32a4d7454f
commit a4e05f23af

View File

@@ -1,4 +1,10 @@
import { $ } from 'https://cdn.jsdelivr.net/npm/qthtml';
const $ = (selector) =>
{
const el = document.querySelector(selector)
el.render = (html) => el.innerHTML = html
el.inject = (html) => el.insertAdjacentHTML('beforeend', html)
return el;
};
var QTModal = {
html: `