Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't turn off the autoplay #858

Open
spip93 opened this issue Apr 24, 2021 · 0 comments
Open

I can't turn off the autoplay #858

spip93 opened this issue Apr 24, 2021 · 0 comments

Comments

@spip93
Copy link

spip93 commented Apr 24, 2021

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:
#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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant