Hi,
I am trying to have multiple cards with a “read more” button to a swiper and when I duplicate the cards-slides or loop them, the JS code doesn’t work on all the looped-duplicated cards except the first card.
Please check the problem.
https://healing-space.divhunt.art
Get a video, audio file from Google Drive, and Play the file directly. You can choose a video, audio file to play from Google Drive and local computer. Supports formats: mp4, m4v, webm, flv, ogv, mov, mp3, ogg, opus, wav, m4a, flac, mkv.
Pakic
October 18, 2023, 3:25pm
2
That script needs a bit of re-coding to work on all of them correctly. I can do it for you tonight
1 Like
Do you mean that any JS code has to be written differently if it needs to be used in a loop or duplicated?
Can the re-coding be possible for other JS codes as well?
I would like to know how can I learn to re-code JS codes for loops in general so I will not bug you with it every time.
Spasibo maestro
Hi Stefan,
Do you have the code for me?
Have a good week.
Pakic
October 23, 2023, 5:35am
5
I edited that for you, should be all good now