Обсудить проект
Оставьте заявку или позвоните нам, мы проконсультируем вас и сами заполним бриф для начала работ. 8 495 979 98 69
<style>
.filled-accordeons .t585__textwrapper {
display: flex;
flex-direction: column;
align-items: center;
}
</style>
<script>
fillAccordeons('.uc-acc-blocks');
function fillAccordeons(id) {
$(id).addClass('filled-accordeons');
$(document).ready(() => {
setTimeout(() => {
$(id).find('.t585__accordion').each(function() {
const $text = $(this).find('.t585__textwrapper');
const ids = $text.text().split(',');
$text.html('');
addBlocks($text, ids);
});
}, 0);
});
function addBlocks($target, ids) {
const ready = ids.every((id) => {
if ($(id).find('[data-slider-transition]').length && $(id).find('[data-slider-transition]:not([data-slider-initialized="true"])').length) {
return false;
}
return true;
});
if (!ready) {
setTimeout(() => addBlocks($target, ids), 300);
return;
}
ids.forEach((id) => {
if (!$(id).length) {
return;
}
$(id).css({
width: '100vw'
});
$target.append($(id));
});
}
}
</script>
Обсудить проект
Оставьте заявку или позвоните нам, мы проконсультируем вас и сами заполним бриф для начала работ. 8 495 979 98 69