Answer the question
In order to leave comments, you need to log in
How to detect an error in the condition c true false?
Help identify the error in the condition. It should work when there are 12 characters in the input, but it only works when there are 11 characters, although 12 is indicated in the condition. If you put 12 and equal, then this part of the code does not work, which is strict (
here is the part of the code with the condition:
var phone = this.value;
if (!phone || phone.replace(/\D/g, '').length < 12) enable = false;
if (codes[phone.substr(5, 3)]) {
valid = true
} else if (enable == true & valid == false ) {
$('.form-control').val('Некорректный ввод');
}
if (enable == false & valid == true) {
obj = {
dates: 'дата',
time: 'время',
phone: phone
};
obj['date'] = retite
alert(obj['date']);
}
}).end().end()
Answer the question
In order to leave comments, you need to log in
A similar effect can be implemented in CSS.
https://www.w3schools.com/howto/howto_css_flip_card.asp
https://freefrontend.com/css-flip-cards/
Open the browser debugger and look at the implementation. See what animations are connected, what events are hung. Where are they from, from which file, and what files are loaded on the page
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question