This commit is contained in:
metacryst
2023-12-17 22:18:59 -06:00
parent 06b7bc3845
commit eedb8b8212

View File

@@ -1,3 +1,15 @@
HTMLElement.prototype.$ = function(query){
return this.querySelectorAll(query)
}
window.$ = function(selector) {
let query = document.querySelectorAll(selector);
if(selector[0] === "#") {
return query[0];
} else {
return query;
}
}
window.css = function css(cssString) {
let container = document.querySelector("style#quillStyles");
if(!container) {