{
success: function(answer){
const href = window.location.href;
if (href.includes("gisteroskopiya")){
ym(67782700,'reachGoal','gisteroskopiya');
}
if (href.includes("organizma-posle-covid")){
ym(67782700,'reachGoal','check-up-diagnostika-organizma-posle-covid-19');
};
if (href.includes("nevrologiya")) {
ym(67782700,'reachGoal','nevrologiya');
};
if (href.includes("travmpunkt")) {
ym(67782700,'reachGoal','travmpunkt');
};
$(".popup").removeClass("active");
$(".popup-sent").addClass("active");
$(".popup-sent__info").html(answer);
form.trigger("reset");
console.log("success");
},}
const arrHref = ['gisteroskopiya','aasdads','home'];
const href = window.location.href;
arrHref.forEach(item=>{
if(href.includes(item)) {
ym(67782700,'reachGoal',item);
}
});
mainStyle:{ transition:all 3s;}
let element = document..//получили элемент
element.style.transform = `rotate(${randomDeg})`;
document.addEventListener('DOMContentLoaded', (event) => {
let place1 = document.querySelector('#place1')
var store = place1.offsetLeft
localStorage.setItem('left', store)
place1.offsetLeft = localStorage.getItem('left')
})