mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-12-27 06:39:33 +01:00
19 lines
530 B
JavaScript
19 lines
530 B
JavaScript
|
const belowChatInput = document.querySelectorAll("#chat-tab > div > :nth-child(n+3), #extensions");
|
||
|
const chatParent = document.getElementById("chat").parentNode;
|
||
|
|
||
|
function toggle_controls(value) {
|
||
|
if (value) {
|
||
|
belowChatInput.forEach(element => {
|
||
|
element.style.display = "inherit";
|
||
|
});
|
||
|
|
||
|
chatParent.classList.remove("bigchat");
|
||
|
} else {
|
||
|
belowChatInput.forEach(element => {
|
||
|
element.style.display = "none";
|
||
|
});
|
||
|
|
||
|
chatParent.classList.add("bigchat");
|
||
|
}
|
||
|
}
|