improved mobile menu

This commit is contained in:
2021-05-31 16:59:15 +02:00
parent cb15c9faf1
commit 305df5c7df
8 changed files with 8 additions and 2 deletions

View File

@@ -49,7 +49,9 @@ export default {
console.log('startShowroomCarroussel')
this.showrooms = document.querySelectorAll('.field--name-computed-showrooms-reference > .field__item')
console.log('showrooms', this.showrooms)
if (!this.showrooms.lenght) {
return
}
for (let i = 0; i < this.showrooms.length; i++) {
if (i%2 === 0) {
this.showroomsOdd.push(this.showrooms[i])