Tobillera Bioskin TriLok

Tobillera Bioskin TriLok

Tan bajo como
77,24 € incl. impuesto
chevron-right Escribir una reseña
plus minus
Detalles Especificaciones Reseñas

Detalles Tobillera Bioskin TriLok

` this.vimeoPlayer = vimeoContainer.childNodes[0] }, getSlider () { return this.$refs.jsThumbSlides }, calcPageSize () { const slider = this.getSlider() if (slider) { const slideEl = slider.querySelector('.js_thumbs_slide'), marginRight = parseInt(window.getComputedStyle(slideEl).marginRight) this.itemCount = slider.querySelectorAll('.js_thumbs_slide').length this.pageSize = Math.round(slider.clientWidth / (slideEl.clientWidth + marginRight)) this.pageFillers = ( this.pageSize * Math.ceil(this.itemCount / this.pageSize) ) - this.itemCount this.isSlider = ((slider.clientWidth - (this.itemCount * (slideEl.clientWidth + marginRight))) < 0) } }, calcScrollStartEnd () { const slider = this.getSlider() if (slider) { this.isSliderStart = slider.scrollLeft === 0 this.isSliderEnd = Math.ceil(slider.scrollLeft + slider.offsetWidth) >= slider.scrollWidth } }, calcActive () { const slider = this.getSlider() if (slider) { const sliderItems = this.itemCount + this.pageFillers const calculatedActiveSlide = slider.scrollLeft / (slider.scrollWidth / sliderItems) this.activeSlide = Math.round(calculatedActiveSlide / this.pageSize) * this.pageSize } }, scrollPrevious () { this.scrollTo(this.activeSlide - this.pageSize) }, scrollNext () { this.scrollTo(this.activeSlide + this.pageSize) }, scrollTo (idx) { const slider = this.getSlider() if (slider) { const slideWidth = slider.scrollWidth / (this.itemCount + this.pageFillers) slider.scrollLeft = Math.floor(slideWidth) * idx this.activeSlide = idx } }, setActiveAndScrollTo (index) { this.setActive(index) if (this.isSlider) { this.scrollTo(index) } }, eventListeners: { ['@keydown.window.escape'] () { if (!this.fullscreen) return this.closeFullScreen() }, ['@update-gallery.window'] (event) { this.receiveImages(event.detail) }, ['@reset-gallery.window'] (event) { this.resetGallery() }, ['@keyup.arrow-right.window'] () { if (!this.fullscreen) return this.nextItem() }, ['@keyup.arrow-left.window'] () { if (!this.fullscreen) return this.previousItem() } }, scrollLock (use = true) { document.body.style.overflow = use ? 'hidden' : '' }, openFullscreen () { this.fullscreen = true hyva.trapFocus(this.$root) }, closeFullScreen (setFocusTo = this.$refs.galleryFullscreenBtn) { this.fullscreen = false hyva.releaseFocus(this.$root) this.$nextTick(() => { this.calcPageSize() setFocusTo && setFocusTo.focus() }) }, handleTouchStart (event) { if (this.images.length <= 1) { return } const firstTouch = event.touches[0] touchXDown = firstTouch.clientX touchYDown = firstTouch.clientY }, handleTouchMove (event) { if (this.images.length <= 1 || !touchXDown || !touchYDown) { return } const xDiff = touchXDown - event.touches[0].clientX const yDiff = touchYDown - event.touches[0].clientY if (Math.abs(xDiff) > Math.abs(yDiff)) { const newIndex = xDiff > 0 ? this.getNextIndex() : this.getPreviousIndex() this.setActiveAndScrollTo(newIndex) } touchXDown = touchYDown = null }, getPreviousIndex () { return this.active > 0 ? this.active - 1 : this.itemCount - 1 }, getNextIndex () { return this.active + 1 === this.itemCount ? 0 : this.active + 1 }, previousItem () { if (this.active === 0) return this.setActiveAndScrollTo(this.active - 1) }, nextItem () { if ((this.active + 1) === this.itemCount) return this.setActiveAndScrollTo(this.active + 1) } } }