1import { LitElement, html, Splide } from '@hh/global.js' 2 3class LandingPagePromoSlider extends LitElement { 4 static properties = { 5 slider: { state: true }, 6 } 7 8 connectedCallback() { 9 super.connectedCallback() 10 11 const slider = this.querySelector('.splide') 12 if (slider) { 13 this.initSlider(slider) 14 } 15 } 16 17 initSlider(slider) { 18 this.slider = new Splide(slider, { 19 type: 'slide', 20 fixedWidth: '60%', 21 arrows: false, 22 gap: 10, 23 drag: 'free', 24 snap: false, 25 easing: 'ease', 26 }) 27 28 this.slider.mount() 29 } 30 31 render() { 32 return html`<slot></slot>` 33 } 34} 35 36customElements.define('landing-page-promo-slider', LandingPagePromoSlider)
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.