Spaces:
Running
Running
Update index.html
Browse files- index.html +5 -1
index.html
CHANGED
|
@@ -238,7 +238,11 @@
|
|
| 238 |
promptIcon.addEventListener('click', () => {
|
| 239 |
isPromptBoxVisible = !isPromptBoxVisible;
|
| 240 |
promptBox.style.display = isPromptBoxVisible ? "block" : "none";
|
| 241 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 242 |
responseBox.style.display = "none";
|
| 243 |
}
|
| 244 |
});
|
|
|
|
| 238 |
promptIcon.addEventListener('click', () => {
|
| 239 |
isPromptBoxVisible = !isPromptBoxVisible;
|
| 240 |
promptBox.style.display = isPromptBoxVisible ? "block" : "none";
|
| 241 |
+
|
| 242 |
+
if (isPromptBoxVisible) {
|
| 243 |
+
const slideText = slides[currentIndex]?.text || "Default prompt text";
|
| 244 |
+
promptText.value = slideText;
|
| 245 |
+
} else {
|
| 246 |
responseBox.style.display = "none";
|
| 247 |
}
|
| 248 |
});
|