Advertisement
Guest User

Untitled

a guest
Apr 29th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. .cycle-slideshow.auto{data: { cycle_loader: true, cycle_progressive: "#slideshow-images" }}
  2.  
  3. -# default image loaded
  4. = image_tag "image0.jpg", alt: ""
  5.  
  6. %script#slideshow-images{type: "text/cycle"}
  7. - image_count = 6
  8. [
  9. - (1..image_count).each_with_index do |i|
  10. - path = image_path("image#{i}.jpg")
  11. - comma = "," unless i == image_count
  12. :plain
  13. "<img src='#{path}' alt: ''>"#{comma}
  14. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement