2023-09-14 12:06:42 +02:00
|
|
|
const belowChatInput = document.querySelectorAll("#chat-tab > div > :nth-child(n+2), #extensions");
|
2023-09-16 05:39:37 +02:00
|
|
|
const chatParent = document.querySelector(".chat-parent");
|
2023-09-16 05:56:30 +02:00
|
|
|
let isOld = document.querySelectorAll('.old-ui').length > 0;
|
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-16 05:56:30 +02:00
|
|
|
document.getElementById('stop').parentElement.parentElement.parentElement.style.paddingBottom = isOld ? '0px' : '20px';
|
2023-09-14 12:06:42 +02:00
|
|
|
document.getElementById('show-controls').parentNode.parentNode.style.paddingBottom = '115px';
|
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-09-14 12:06:42 +02:00
|
|
|
document.getElementById('show-controls').parentNode.parentNode.style.paddingBottom = '95px';
|
2023-08-16 07:39:58 +02:00
|
|
|
}
|
|
|
|
}
|