feat: added callback click listeners
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user