Make it do something

This commit is contained in:
Skylar Grant 2025-01-04 10:33:08 -05:00
parent 73b75f9946
commit 2de2f4b008

View File

@ -37,3 +37,10 @@ async function readResponse(response) {
outputArea.innerHTML = `<span class="text-red-500">Error: ${error.message}</span>`; outputArea.innerHTML = `<span class="text-red-500">Error: ${error.message}</span>`;
} }
} }
// Event listeners
sendButton.addEventListener('click', async () => {
outputArea.innerHTML = '';
const response = await sendGen();
readResponse(response);
});