feat: added callback click listeners

This commit is contained in:
Aliaksei Karzhou
2024-07-03 17:44:28 +03:00
parent 0c301de7f6
commit def28bfe1f
11 changed files with 4065 additions and 21 deletions

View File

@@ -3,3 +3,16 @@ import './step-by-step.js';
import './team.js';
import './faq.js';
import './nav.js';
import './modals.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));