vibe coding — describing what you want in plain English and hoping the AI nails it
@@ -1511,6 +1515,7 @@ This is a TodoApp with a FastAPI backend and React frontend.
if (n > totalSlides) currentSlide = totalSlides;
if (n < 1) currentSlide = 1;
document.querySelector(`[data-slide="${currentSlide}"]`).classList.add('active');
+ window.scrollTo(0, 0);
document.getElementById('slideCounter').textContent = `${currentSlide} / ${totalSlides}`;
document.getElementById('progress').style.width = `${(currentSlide / totalSlides) * 100}%`;
document.getElementById('prevBtn').disabled = currentSlide === 1;