cycle2 icon indicating copy to clipboard operation
cycle2 copied to clipboard

I can't turn off the autoplay

Open spip93 opened this issue 4 years ago • 0 comments

Hello,

I would like to disable the slideshow autoplay on this page: https://www.bm-aubenas.fr/nouveautes I followed the instructions you gave on this issue: https://github.com/malsup/cycle2/issues/183 Using data-cycle-timeout = 0

From what I understood, you have to add this attribute to the div which has the "slideshow" class

Searching the page, I found this: <div class = "slideshow fx-carousel fx-carousel-233882-32" style = "position: relative; overflow: hidden;">

Unable to edit the HTML, I went through the following JS command: document.getElementsByClassName ('slideshow') [0] .setAttribute ("data-cycle-timeout", 0);

That added me well data-cycle-timeout = "0" (and not data-cycle-timeout = 0) (oddly only on the first slide show), but it does not work; the slideshow (s) continue to scroll.

Would you please know which line (s) of JS code to load to disable autoplay on all slideshows on the page?

Thank you in advance for your response. Have a good day.

spip93 avatar Apr 24 '21 18:04 spip93