add the injection module

This commit is contained in:
buzz-lightsnack-2007 2024-04-18 22:55:32 +08:00
parent 7c4b4f84bf
commit c27fe808fe
2 changed files with 14 additions and 0 deletions

14
scripts/GUI/inject.js Normal file
View file

@ -0,0 +1,14 @@
export default class injection {
constructor (parent, element, id, classes, options) {
let ELEMENTS = {};
ELEMENTS[`parents`] = ((typeof parent) != `object`) ? docuent.querySelectorAll(parent) : [...parent];
// must only run if there are elements to inject
if ((ELEMENTS[`parents`]).length > 0) {
}
};
}

View file