<script>
$(document).ready(function(){
let linkSub = [
["#rec277118214",
[
"https://google.ru",
"https://yandex.ru",
"https://mail.ru"
]],
];
setTimeout(function(){
$(linkSub).each(function(i) {
$(linkSub[i][0]+' .t-menusub__target-link').each(function(j) {
$(this).attr('data-link-href', linkSub[i][1][j]);
});
});
}, 500);
let elem;
$('.t-menu__link-item').hover(function(){
elem = $(this);
setTimeout(function(){elem.addClass('active-hover')}, 500);
}, function(){elem = $(this);
setTimeout(function(){elem.removeClass('active-hover')}, 500);
});
$('.t-menu__link-item').click(function(){
if ( $(this).hasClass('active-hover')){
let finUrl = $(this).attr('data-link-href');
if(finUrl){ document.location = $(this).attr('data-link-href')};
};
});
});
</script>