mirror of
https://github.com/multipleofnpm/qtmodal.git
synced 2026-01-13 16:17:57 +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 = {
|
||||
html: `
|
||||
|
||||
Reference in New Issue
Block a user