<!-- https://inkedx.ru/guides/overlay -->
<script>
$(function () {
/* Укажите id блоков через запятую, которым нужно добавить наложение */
var blocks = ['#rec876821794', '#rec876823003', '#rec876823327', '#rec876823609'];
var styles = `
body { overflow-x: hidden; }
#allrecords { overflow: visible !important; }
#t-header, #t-footer { position: relative; z-index: 2; }
.t-rec { position: relative; z-index: 1; overflow-x: hidden; }
${blocks.join(', ')} { position: sticky; top: 0; z-index: 0; }
`;
$('head').append(`<style>${styles}</style>`);
function updateBlockPositions() {
$(blocks.join(', ')).each(function () {
var topPosition = $(window).height() - $(this).outerHeight();
$(this).css('top', topPosition < 0 ? topPosition : 0);
});
}
$(window).on('load resize', updateBlockPositions);
});
</script>