@media only screen and (max-width: 480px) {.form_newsletter {width: 98% !important;} }.form_newsletter input[type=text] {color: #444;}.vk-sbscribe {display: inline-block;padding-left: 55px;position: relative;margin: 0 auto;width: 186px; box-sizing: content-box !important;}.vk-sbscribe-ico {width: 40px;height: 40px;top: -5px;left: 0;position: absolute;}
Дополнить данные профиля
Только цифры, без пробелов!
Никакого спама, гарантируем!
document.querySelectorAll('.form_newsletter').forEach(form => {form.addEventListener('submit', (e) => {var cspd = form.querySelector('.personal_policy_acc'); if (typeof cspd !== 'undefined' && !cspd.checked){alert('Необходимо дать согласие на обработку персональных данных!');e.preventDefault()}else{form.querySelector('[type="submit"]').style.opacity = '0.5';/*form.classList.add('is-submitting');*/} if (form.classList.contains('is-submitting')) {e.preventDefault();} });});function awoInitFormValidation() {let arrForm = document.querySelectorAll('.form_newsletter');if (!arrForm.length) {return;}arrForm.forEach((form) => {if (form.classList.contains('valiadtionInitialized')) {return;}form.addEventListener('submit', (event) => {let arrInput = form.querySelectorAll('input');let formIsValid = true;arrInput.forEach((input) => {if (!input.required) {return;}let message = "Укажите значения всех обязательных для заполнения полей!";let minLength = 1;if (input.name.indexOf('[phone]') >= 0 || input.name.indexOf('[date_of_birth]') >= 0) {minLength = 10;} else if (input.name.indexOf('[email]') >= 0) {minLength = 4;}if (input.value.length < minLength) {input.style.borderColor = '#c00';formIsValid = false;} else {input.style.borderColor = '#ccc';}});if (!formIsValid) {alert('Заполните все необходимые поля');event.preventDefault();form.querySelector('button[type=submit]').style.opacity = '1';return false;}return true;});form.classList.add('valiadtionInitialized');});}awoInitFormValidation()