2023-08-16 07:39:58 +02:00
|
|
|
const belowChatInput = document.querySelectorAll("#chat-tab > div > :nth-child(n+3), #extensions");
|
2023-08-28 21:03:20 +02:00
|
|
|
const chatParent = document.getElementById("chat").parentNode.parentNode.parentNode;
|
2023-08-16 07:39:58 +02:00
|
|
|
|
|
|
|
function toggle_controls(value) {
|
|
|
|
if (value) {
|
|
|
|
belowChatInput.forEach(element => {
|
|
|
|
element.style.display = "inherit";
|
|
|
|
});
|
|
|
|
|
|
|
|
chatParent.classList.remove("bigchat");
|
2023-09-13 07:36:12 +02:00
|
|
|
document.getElementById('stop').parentElement.parentElement.parentElement.style.paddingBottom = '20px';
|
2023-08-16 07:39:58 +02:00
|
|
|
} else {
|
|
|
|
belowChatInput.forEach(element => {
|
|
|
|
element.style.display = "none";
|
|
|
|
});
|
|
|
|
|
|
|
|
chatParent.classList.add("bigchat");
|
2023-09-13 07:36:12 +02:00
|
|
|
document.getElementById('stop').parentElement.parentElement.parentElement.style.paddingBottom = '0px';
|
2023-08-16 07:39:58 +02:00
|
|
|
}
|
|
|
|
}
|