Skip to content

Commit 972b726

Browse files
committed
- update button IDs to match test requirements for automatic slideshow controls
- Changed button IDs in HTML to 'auto-forward', 'auto-backward', and 'stop' - Updated slideshow.js to use the new button IDs - Fixed test errors caused by mismatched element IDs in automatic slideshow feature
1 parent 89b9b6a commit 972b726

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

Sprint-3/slideshow/index.html

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,23 @@
33
<head>
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<title>Title here</title>
7-
<script defer src="slideshow.js"></script>
6+
<title>Image carousel</title>
7+
<link rel="stylesheet" href="style.css" />
88
</head>
99
<body>
1010
<img id="carousel-img" src="./assets/cute-cat-a.png" alt="cat-pic" />
11+
1112
<button type="button" id="backward-btn">Backwards</button>
1213
<button type="button" id="forward-btn">Forward</button>
14+
15+
<button id="auto-forward">Auto Forward</button>
16+
<button id="auto-backward">Auto Back</button>
17+
<button id="stop">Stop</button>
18+
19+
<label for="delay-input">Delay between images (seconds): </label>
20+
<input type="number" id="delay-input" min="1" max="10" value="2" />
21+
22+
<script src="slideshow.js"></script>
23+
<script src="slideshow-extra.js"></script>
1324
</body>
1425
</html>

0 commit comments

Comments
 (0)