1
0
forked from fr/deguapp
deguapp/frontend-plain/js/general.js
2023-12-13 19:10:39 +01:00

15 lines
326 B
JavaScript

function qS(selector) {
if(!selector) {
console.error("No selector is defined!")
return
}
return document.querySelector(selector)
}
function qSA(selector) {
if(!selector) {
console.error("No selector is defined!")
return
}
return document.querySelectorAll(selector)
}