const animations = ["shadow-pulse-big", "shadow2-pulse", "shadow2-pulse-big"];
const intense = ["1.5", "6", "0.5"]
$(elements).each((el) => {
let random_animation = Math.floor(Math.random() * animations.length);
let random_intense = Math.floor(Math.random() * intense.length);
setInterval(() => {
let old_random_animation = random_animation
let old_random_intense = random_intense
$(el).css({ animation: `${old_random_animation} ${old_random_intense}s infinite` });
random_animation = Math.floor(Math.random() * animations.length);
random_intense = Math.floor(Math.random() * intense.length);
}, old_random_intense * 1000)
})
if(inputName.value != '' && inputTel.value != '' && inputMail.value != ''){
localStorage.email = inputMail.value
window.location.href = "https://app.syncrm.ru/accounts/sign_up";
}
let signupEmail = document.querySelector('#signup-email');
signupEmail.value = localStorage.email
if(inputName.value && inputTel.value && inputMail.value){}
if(!localStorage.popupLastView) localStorage.popupLastView = new Date()
if(localStorage.popupLastView && new Date() - localStorage.popupLastView > *тут сравнение*) {
тут ваша функция
}