MCPcopy Create free account
hub / github.com/The-Pocket/PocketFlow-Tutorial-Website-Chatbot / toggleMaximize

Function toggleMaximize

static/chatbot.js:973–981  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

971
972 // Chat window maximize/minimize functionality
973 function toggleMaximize() {
974 isChatMaximized = !isChatMaximized;
975 chatWindow.classList.toggle('maximized', isChatMaximized);
976 const iconMax = maximizeButton.querySelector('.icon-maximize');
977 const iconMin = maximizeButton.querySelector('.icon-minimize');
978 iconMax.style.display = isChatMaximized ? 'none' : 'block';
979 iconMin.style.display = isChatMaximized ? 'block' : 'none';
980 maximizeButton.setAttribute('aria-label', isChatMaximized ? 'Restore chat' : 'Maximize chat');
981 }
982
983 // Function to render markdown with mermaid diagrams
984 async function renderMarkdownWithMermaid(markdownText) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected