11<!DOCTYPE html>
22< html lang ="en ">
33 < head >
4- < meta charset ="UTF-8 " />
5- < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
6- < title > Image carousel</ title >
7- < script defer src ="slideshow.js "> </ script >
4+ < head >
5+ < meta charset ="UTF-8 " />
6+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
7+ < title > Cat Slideshow</ title >
8+ < link rel ="stylesheet " href ="style.css ">
9+ < script defer src ="slideshow.js "> </ script >
10+ </ head >
811 </ head >
912 < body >
1013 < img id ="carousel-img " src ="./assets/cute-cat-a.png " alt ="cat-pic " />
11- < button type ="button " id ="backward-btn "> Backwards</ button >
12- < button type ="button " id ="forward-btn "> Forward</ button >
14+
15+ < div >
16+ <!-- Manual control buttons -->
17+ < button type ="button " id ="backward-btn "> Backwards</ button >
18+ < button type ="button " id ="forward-btn "> Forward</ button >
19+ </ div >
20+
21+ < div >
22+ <!-- Auto-play control buttons -->
23+ < button type ="button " id ="auto-forward-btn "> Auto Forward</ button >
24+ < button type ="button " id ="auto-back-btn "> Auto Back</ button >
25+ < button type ="button " id ="stop-btn "> Stop</ button >
26+ </ div >
27+
28+ < p style ="margin-top: 20px; color: #666; ">
29+ < small >
30+ Click "Auto Forward" to automatically move forward every 3 seconds.< br >
31+ Click "Auto Back" to automatically move backward every 3 seconds.< br >
32+ Click "Stop" to stop the automatic slideshow.< br >
33+ You can still use "Forward" and "Backwards" buttons anytime.
34+ </ small >
35+ </ p >
1336 </ body >
14- </ html >
37+ </ html >
0 commit comments