mirror of
https://github.com/multipleofnpm/qtmodal.git
synced 2026-01-14 08:38:08 +00:00
Update index.js
This commit is contained in:
8
index.js
8
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 = {
|
var QTModal = {
|
||||||
html: `
|
html: `
|
||||||
|
|||||||
Reference in New Issue
Block a user