-
-
Notifications
You must be signed in to change notification settings - Fork 283
Expand file tree
/
Copy pathindex.html
More file actions
37 lines (34 loc) · 1.19 KB
/
index.html
File metadata and controls
37 lines (34 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html>
<html lang="en">
<head>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Cat Slideshow</title>
<link rel="stylesheet" href="style.css">
<script defer src="slideshow.js"></script>
</head>
</head>
<body>
<img id="carousel-img" src="./assets/cute-cat-a.png" alt="cat-pic" />
<div>
<!-- Manual control buttons -->
<button type="button" id="backward-btn">Backwards</button>
<button type="button" id="forward-btn">Forward</button>
</div>
<div>
<!-- Auto-play control buttons -->
<button type="button" id="auto-forward-btn">Auto Forward</button>
<button type="button" id="auto-back-btn">Auto Back</button>
<button type="button" id="stop-btn">Stop</button>
</div>
<p style="margin-top: 20px; color: #666;">
<small>
Click "Auto Forward" to automatically move forward every 3 seconds.<br>
Click "Auto Back" to automatically move backward every 3 seconds.<br>
Click "Stop" to stop the automatic slideshow.<br>
You can still use "Forward" and "Backwards" buttons anytime.
</small>
</p>
</body>
</html>