From a4e05f23af8901a69ff6bd77f1b1c0ae47d949d9 Mon Sep 17 00:00:00 2001 From: Planet Renox Date: Thu, 5 Jun 2025 13:57:51 -0700 Subject: [PATCH] Update index.js --- index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index a1b9fdf..90693f2 100644 --- a/index.js +++ b/index.js @@ -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: `