MCPcopy Create free account
hub / github.com/pollinations/pollinations / updateGenerateButtonState

Function updateGenerateButtonState

apps/catgpt/script.js:244–248  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

242}
243
244function updateGenerateButtonState() {
245 const hasText = dom.userInput.value.trim().length > 0;
246 dom.generateBtn.disabled =
247 !hasText && !dom.generateBtn.classList.contains("generating");
248}
249
250function setInputsDisabled(disabled) {
251 dom.userInput.disabled = disabled;

Callers 3

resetButtonFunction · 0.85
createMemeCardFunction · 0.85
setupEventListenersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected