1
0
forked from fr/deguapp
deguapp/frontend-plain/js/general.js

15 lines
326 B
JavaScript
Raw Permalink Normal View History

2023-11-09 01:36:43 +01:00
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)
}