Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- function initSync() {
- initTimeout = setTimeout(syncSliders, 50);
- }
- function syncOnResize() {
- resizeTimeout = setTimeout(syncSliders, 260);
- }
- function syncSliders() {
- const main = bricksData.splideInstances['47db29'],
- thumbnail = bricksData.splideInstances['636b7b']
- if( main && thumbnail) {
- main.sync(thumbnail)
- }
- clearTimeout(initTimeout);
- }
- document.addEventListener( 'DOMContentLoaded', initSync)
- window.addEventListener("resize", syncOnResize)
- </script>
Advertisement
Add Comment
Please, Sign In to add comment