2024-12-17 00:47:41 -03:00
|
|
|
const belowChatInput = document.querySelectorAll(
|
|
|
|
"#chat-tab > div > :nth-child(1), #chat-tab > div > :nth-child(3), #chat-tab > div > :nth-child(4), #extensions"
|
|
|
|
);
|
2023-09-15 21:39:37 -06:00
|
|
|
const chatParent = document.querySelector(".chat-parent");
|
2023-08-16 02:39:58 -03:00
|
|
|
|
|
|
|
function toggle_controls(value) {
|
2023-10-07 19:07:57 -07:00
|
|
|
if (value) {
|
|
|
|
belowChatInput.forEach(element => {
|
|
|
|
element.style.display = "inherit";
|
|
|
|
});
|
2023-08-16 02:39:58 -03:00
|
|
|
|
2023-10-07 19:07:57 -07:00
|
|
|
chatParent.classList.remove("bigchat");
|
|
|
|
document.getElementById("chat-input-row").classList.remove("bigchat");
|
|
|
|
document.getElementById("chat-col").classList.remove("bigchat");
|
2023-12-25 08:38:17 -08:00
|
|
|
document.getElementById("chat-tab").style.paddingBottom = "";
|
2023-11-19 08:31:01 -08:00
|
|
|
|
2023-12-27 09:59:23 -08:00
|
|
|
let gallery_element = document.getElementById("gallery-extension");
|
2023-11-19 08:31:01 -08:00
|
|
|
if (gallery_element) {
|
2023-12-27 09:59:23 -08:00
|
|
|
gallery_element.style.display = "block";
|
2023-11-19 08:31:01 -08:00
|
|
|
}
|
|
|
|
|
2023-10-07 19:07:57 -07:00
|
|
|
} else {
|
|
|
|
belowChatInput.forEach(element => {
|
|
|
|
element.style.display = "none";
|
|
|
|
});
|
2023-08-16 02:39:58 -03:00
|
|
|
|
2023-10-07 19:07:57 -07:00
|
|
|
chatParent.classList.add("bigchat");
|
|
|
|
document.getElementById("chat-input-row").classList.add("bigchat");
|
|
|
|
document.getElementById("chat-col").classList.add("bigchat");
|
2023-12-25 08:38:17 -08:00
|
|
|
document.getElementById("chat-tab").style.paddingBottom = "0px";
|
2023-10-07 19:07:57 -07:00
|
|
|
}
|
2023-08-16 02:39:58 -03:00
|
|
|
}
|