mantinia
Fri, 13 Oct 2017 01:57:20 GMT
I tried two of the demo "Thumbs Gallery With Two-way Control" on the one page,
but only first one doesn't work correctly. I wrote like below:
---
var g1 = new Swiper('#g1 .gallery-top', {...});
var c1 = new Swiper('#g1 .gallery-control', {...});
g1.params.control = c1;
c1.params.control = g1;
var g2 = new Swiper('#g2 .gallery-top', {...});
var c2 = new Swiper('#g2 .gallery-control', {...});
g2.params.control = c2;
c2.params.control = g2;
---
#g2 works but #g1 doesn't work as linkage.
When comment out the code for #g2, #g1 works correctly.
How should I do for the work correctly both of them?