diff --git a/uncloseai.js b/uncloseai.js index 47334aa..545d1a0 100644 --- a/uncloseai.js +++ b/uncloseai.js @@ -1998,6 +1998,18 @@ Format: Start with "Greetings! I'm Hermes..." and make it sound natural and enga const sendButton = document.createElement('button'); sendButton.textContent = 'Send'; + +// Expose functions to the global scope for direct HTML calls +window.handleUserInput = handleUserInput; +window.readPageWithHermes = readPageWithHermes; +window.openTTSModal = openTTSModal; +window.handleTTSFromElement = handleTTSFromElement; +window.handleUploadFromElement = handleUploadFromElement; +window.uploadFile = uploadFile; +window.showProgressIndicator = showProgressIndicator; +window.hideProgressIndicator = hideProgressIndicator; +window.sendMessage = sendMessage; +window.speakText = speakText; if (USE_CUSTOM_STYLING) { sendButton.style.cssText = ` padding: 12px 24px;