2023-09-14 06:06:42 -04:00
|
|
|
const belowChatInput = document.querySelectorAll("#chat-tab > div > :nth-child(n+2), #extensions");
|
2023-09-15 23:39:37 -04:00
|
|
|
const chatParent = document.querySelector(".chat-parent");
|
2023-08-16 01:39:58 -04:00
|
|
|
|
|
|
|
function toggle_controls(value) {
|
|
|
|
if (value) {
|
|
|
|
belowChatInput.forEach(element => {
|
|
|
|
element.style.display = "inherit";
|
|
|
|
});
|
|
|
|
|
|
|
|
chatParent.classList.remove("bigchat");
|
2023-09-17 21:33:00 -04:00
|
|
|
document.getElementById('chat-input-row').classList.remove("bigchat");
|
|
|
|
document.getElementById('chat-col').classList.remove("bigchat");
|
2023-08-16 01:39:58 -04:00
|
|
|
} else {
|
|
|
|
belowChatInput.forEach(element => {
|
|
|
|
element.style.display = "none";
|
|
|
|
});
|
|
|
|
|
|
|
|
chatParent.classList.add("bigchat");
|
2023-09-17 21:33:00 -04:00
|
|
|
document.getElementById('chat-input-row').classList.add("bigchat")
|
|
|
|
document.getElementById('chat-col').classList.add("bigchat");
|
2023-08-16 01:39:58 -04:00
|
|
|
}
|
|
|
|
}
|