You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
484 B
20 lines
484 B
import './sliders.js';
|
|
import './step-by-step.js';
|
|
import './team.js';
|
|
import './faq.js';
|
|
import './nav.js';
|
|
import './modals.js';
|
|
import './reviews.js';
|
|
|
|
const maskOptions = {
|
|
mask: '+{7} (000) 000 00 00',
|
|
};
|
|
|
|
const phoneInputClassNames = ['input--phone'];
|
|
|
|
const phoneInputs = phoneInputClassNames
|
|
.map((name) => document.querySelectorAll(`.${name}`))
|
|
.reduce((acc, array) => [...acc, ...array], []);
|
|
|
|
phoneInputs.forEach((inputElement) => IMask(inputElement, maskOptions));
|
|
|
|
|