| 1 |
/* Gutenberg adapter for the shared frontend carousel runtime. */ |
| 2 |
(function () { |
| 3 |
'use strict'; |
| 4 |
window.bkbgTemplateCarouselEditor = function (root, behavior, positions, paused) { |
| 5 |
return window.bkbgTemplateCarousel(root, behavior, { |
| 6 |
editor: true, initialIndices: positions, paused: paused, |
| 7 |
onChange: function (track, page) { positions[track] = page; } |
| 8 |
}); |
| 9 |
}; |
| 10 |
})(); |
| 11 |
|