forked from fr/deguapp
15 lines
326 B
JavaScript
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)
|
||
|
}
|