diff --git a/html/kidsai/script-new.js b/html/kidsai/script-new.js index f1137bf..bf9b79a 100644 --- a/html/kidsai/script-new.js +++ b/html/kidsai/script-new.js @@ -541,11 +541,10 @@ class KidsAIExplorer { this.scrollToBottomSmoothly(); }, 100); - // Ask next question + // Add choice buttons after AI response setTimeout(() => { - this.currentQuestionIndex++; // Move to next question - this.askNextQuestion(); - }, 2000); + this.addContinueChoiceButtons(); + }, 1500); } else { throw new Error(data.error || 'Failed to generate response'); } @@ -574,367 +573,62 @@ class KidsAIExplorer { }, 100); setTimeout(() => { - this.currentQuestionIndex++; // Move to next question - this.askNextQuestion(); - }, 2000); + this.addContinueChoiceButtons(); + }, 1500); } } - askNextQuestion() { - if (this.currentQuestionIndex >= this.questions.length) { - // All questions asked, add and show reveal section - const revealDiv = document.createElement('div'); - revealDiv.className = 'reveal-section'; - revealDiv.innerHTML = ` -
🎉 ${this.translate('great-thinking')}
-${this.translate('see-how-close')}
- -