$(document).on('mouseenter','.model-elements',function(){
BX.showWait();
var postData = {
id: id,
sectionid: sectionid,
propid: propid,
sessid: BX.bitrix_sessid()
};
BX.ajax({
method: 'POST',
dataType: 'html',
url: '/local/tools/getElementInfo.php',
data: postData,
onsuccess: function (result)
{
BX.closeWait();
timeoutId = setTimeout(function () {
$('.ajax-element').html(result);
}, 500);
},
onfailure : function()
{
BX.closeWait();
$('#ajax-element').html('Ошибка');
}
});
return false;
});
$.ajax({
url: arNextOptions['SITE_DIR'] + 'include/mainpage/comp_catalog_ajax.php',
type: 'POST',
data: {AJAX_POST: 'Y', AJAX_PARAMS: $(this).closest('.tab_slider_wrapp').find('.request-data').data('value'), GLOBAL_FILTER: curLi.data('filter')},
}).success(function(html){
curLi.find('.tabs_slider').html(html);
$(".hit-block .top_wrapper .catalog_block").slick('unslick');
$(".hit-block .top_wrapper .catalog_block").slick({
slidesToShow: 5,
slidesToScroll: 1,
dots: false,
responsive: [
{
breakpoint: 1200,
settings: {
slidesToShow: 4
}
},
{
breakpoint: 992,
settings: {
slidesToShow: 3
}
},
{
breakpoint: 768,
settings: {
slidesToShow: 2
}
},
{
breakpoint: 576,
settings: {
slidesToShow: 1
}
}
]
});
setTimeout(function(){
curLi.addClass('opacity1');
}, 100);
/*equal height*/
curLi.find('.catalog_block .catalog_item_wrapp .catalog_item .item_info:visible .item-title').sliceHeight({item:'.catalog_item:visible', mobile: true});
curLi.find('.catalog_block .catalog_item_wrapp .catalog_item .item_info:visible').sliceHeight({item:'.catalog_item:visible', mobile: true});
curLi.find('.catalog_block .catalog_item_wrapp .catalog_item:visible').sliceHeight({classNull: '.footer_button', item:'.catalog_item:visible', mobile: true});
initCountdown();
})
<div class="index-about__slide-block-content">
<div class="index-about__slide-block-info">
<h2><?php the_field('first-title'); ?></h2>
<p>Фреза для обработки узких пазов</p>
<a href="javascript:;" class="button"><span>Подробнее</span></a>
</div>
</div>