function minMax(classIcon, dataId) {
const offsetTopPosition = $(window).scrollTop();
if (counter == 0) {
scroll = $(window).scrollTop();
}
$('#' + dataId).toggleClass('fullscreen');
$('.' + classIcon).toggleClass('window minimize icon').toggleClass('window maximize icon');
if (counter == 0) {
$('#' + dataId).css('top', offsetTopPosition + 120);
counter++;
} else {
$('#' + dataId).css('top', 0);
$(window).scrollTop(scroll);
counter = 0;
}
$('body').toggleClass('scurry');
window.dispatchEvent(new Event('resize'));
}