deguapp/frontend/js/general.js

15 lines
326 B
JavaScript
Raw 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)
}