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