Skip to content

Commit e5aaebd

Browse files
committed
Fix carousel disabling auto-sliding
1 parent 18e7a79 commit e5aaebd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/views/homes/_images_carousel.html.erb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<%# Based on https://stackoverflow.com/questions/41548027 %>
22

3-
<div id="homeImagesCarousel" class="carousel carousel-fade">
3+
<div id="homeImagesCarousel" class="carousel carousel-fade" data-interval="false">
44
<%# Carousel full-size images %>
55
<div class="carousel-inner shadow">
66
<% images.each_with_index do |image, idx| %>
7-
<div class="<%= 'active' if idx.zero? %> carousel-item" data-slide-number="<%= idx %>" data-interval="false">
7+
<div class="<%= 'active' if idx.zero? %> carousel-item" data-slide-number="<%= idx %>">
88
<%= image_tag image.full_url_fallback, class: 'd-block w-100', alt: "Image #{idx + 1} of #{images.size}" %>
99
</div>
1010
<% end %>

0 commit comments

Comments
 (0)