Skip to content

Commit a254f78

Browse files
committed
need to click page to move to next announcement
1 parent ab78ae6 commit a254f78

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

static/particle-background.html

+8
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,14 @@
277277
currentAnnouncementIndex = (currentAnnouncementIndex + 1) % announcements.length;
278278
}, 500); // Match this to the animation duration (0.5s = 500ms)
279279
}
280+
281+
// Add click event listener to move to next announcement
282+
document.addEventListener('click', (event) => {
283+
// Ignore clicks on the settings panel
284+
if (!event.target.closest('.settings')) {
285+
showNextAnnouncement();
286+
}
287+
});
280288
</script>
281289
<script>
282290
const canvas = document.createElement('canvas');

0 commit comments

Comments
 (0)