CoolFace
Apppublic

sleepdeep/llm-deploy

sourceHugging Faceupdated 3y agoView on Hugging Face
0likes
show_controls.js31 linesDownload Raw Back to js
1const belowChatInput = document.querySelectorAll("#chat-tab > div > :nth-child(n+2), #extensions");2const chatParent = document.querySelector(".chat-parent");3 4function toggle_controls(value) {5  if (value) {6    belowChatInput.forEach(element => {7      element.style.display = "inherit";8    });9 10    chatParent.classList.remove("bigchat");11    document.getElementById("chat-input-row").classList.remove("bigchat");12    document.getElementById("chat-col").classList.remove("bigchat");13    document.getElementById("chat-tab").style.paddingBottom = "";14 15    let gallery_element = document.getElementById("gallery-extension");16    if (gallery_element) {17      gallery_element.style.display = "block";18    }19 20  } else {21    belowChatInput.forEach(element => {22      element.style.display = "none";23    });24 25    chatParent.classList.add("bigchat");26    document.getElementById("chat-input-row").classList.add("bigchat");27    document.getElementById("chat-col").classList.add("bigchat");28    document.getElementById("chat-tab").style.paddingBottom = "0px";29  }30}31