-
-
Notifications
You must be signed in to change notification settings - Fork 197
/
Copy path374-66eb8b064e5107f32ea4.js.map
1 lines (1 loc) · 1.55 KB
/
374-66eb8b064e5107f32ea4.js.map
1
{"version":3,"file":"374-66eb8b064e5107f32ea4.js","mappings":"qIAAA,wxC","sources":["webpack://embla-carousel-docs/./src/components/Sandbox/Vanilla/SandboxFilesDist/Autoplay/EmblaCarousel.ts"],"sourcesContent":["export default \"import EmblaCarousel, { EmblaOptionsType } from 'embla-carousel'\\nimport Autoplay from 'embla-carousel-autoplay'\\nimport { addPrevNextBtnsClickHandlers } from '../EmblaCarouselArrowButtons'\\nimport {\\n addPlayBtnListeners,\\n addNavBtnListeners\\n} from './EmblaCarouselAutoplay'\\nimport '../css/base.css'\\nimport '../css/sandbox.css'\\nimport '../css/embla.css'\\n\\nconst OPTIONS: EmblaOptionsType = {}\\n\\nconst emblaNode = <HTMLElement>document.querySelector('.embla')\\nconst viewportNode = <HTMLElement>emblaNode.querySelector('.embla__viewport')\\nconst prevBtn = <HTMLElement>emblaNode.querySelector('.embla__button--prev')\\nconst nextBtn = <HTMLElement>emblaNode.querySelector('.embla__button--next')\\nconst playBtn = <HTMLElement>document.querySelector('.embla__play')\\n\\nconst emblaApi = EmblaCarousel(viewportNode, OPTIONS, [\\n Autoplay({ playOnInit: false, delay: 3000 })\\n])\\n\\nconst removePrevNextBtnsClickHandlers = addPrevNextBtnsClickHandlers(\\n emblaApi,\\n prevBtn,\\n nextBtn\\n)\\nconst removePlayBtnListeners = addPlayBtnListeners(emblaApi, playBtn)\\nconst removeNavBtnListeners = addNavBtnListeners(emblaApi, prevBtn, nextBtn)\\n\\nemblaApi\\n .on('destroy', removePrevNextBtnsClickHandlers)\\n .on('destroy', removePlayBtnListeners)\\n .on('destroy', removeNavBtnListeners)\\n\";"],"names":[],"sourceRoot":""}