fdssfd
This commit is contained in:
parent
59bc1ec102
commit
301db1841e
2 changed files with 15 additions and 13 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue