From 4e4be610c889a148129738eb3645c92f8e78f0f1 Mon Sep 17 00:00:00 2001 From: Jan Umbach Date: Fri, 31 May 2024 00:20:38 +0200 Subject: [PATCH] test --- snippets/shx-video-base.liquid | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/snippets/shx-video-base.liquid b/snippets/shx-video-base.liquid index 155b3d1..2765f88 100644 --- a/snippets/shx-video-base.liquid +++ b/snippets/shx-video-base.liquid @@ -52,12 +52,11 @@ connectedCallback() { console.log('connected'); - this.video = this.querySelector('video'); - this.videoWrapper = video.closest('.shx-video__wrapper'); - //this.videoWrapper.addEventListener('click', this.togglePlay.bind(this)); + this.video = this.querySelector('video'); // get parrent with class "card-wrapper product-card-wrapper" this.productCard = video.closest('.product-card-wrapper'); + console.log(this.productCard); //hover effect this.productCard.addEventListener('mouseenter', this.hoverEffectIn.bind(this));