This commit is contained in:
Aevann1 2021-11-18 22:27:46 +02:00
parent 59bc1ec102
commit 301db1841e
2 changed files with 15 additions and 13 deletions

View file

@ -1,3 +1,13 @@
function toggleElement(group, id) {
for(let el of document.getElementsByClassName(group)) {
if(el.id != id) {
el.classList.add('d-none');
}
}
document.getElementById(id).classList.toggle('d-none');
}
function post_toast_callback(url, data, callback) {
var xhr = new XMLHttpRequest();
xhr.open("POST", url, true);