Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .cycle-slideshow.auto{data: { cycle_loader: true, cycle_progressive: "#slideshow-images" }}
- -# default image loaded
- = image_tag "image0.jpg", alt: ""
- %script#slideshow-images{type: "text/cycle"}
- - image_count = 6
- [
- - (1..image_count).each_with_index do |i|
- - path = image_path("image#{i}.jpg")
- - comma = "," unless i == image_count
- :plain
- "<img src='#{path}' alt: ''>"#{comma}
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement