front fix
This commit is contained in:
miroman-afk
2021-12-29 23:31:48 +03:00
parent b702888540
commit 944dff2163

View File

@@ -37,27 +37,29 @@
setTimeout(function(){ setTimeout(function(){
$('#get-more-newyear').modal('show'); $('#get-more-newyear').modal('show');
}, delayMs); }, delayMs);
if ($( window ).width() < 700) { if ($( window ).width() < 800) {
$('#get-more-newyear').on('show.bs.modal', function () { $('#get-more-newyear').on('show.bs.modal', function () {
$('.modal-dialog').css('margin',0); $('.modal-dialog').css('margin-right',$( window ).width()-$( window ).width());
$('.modal-content').css('height',$( window ).height()*0.95); $('.modal-dialog').css('margin-left',$( window ).width()-$( window ).width());
$('.modal-content').css('width',$( window ).width()); $('.modal-dialog').css('margin-top',$( window ).height()-$( window ).height());
$('.myCarousel').css('height', $( window ).height()*0.95); $('.modal-content').css('height',$( window ).height()*0.95);
$('.myCarousel').css('width', 'auto'); $('.modal-content').css('width',$( window ).width());
$('.myCarousel').css('object-fit', 'cover'); $('.myCarousel').css('height', $( window ).height()*0.94);
}); $('.myCarousel').css('width', 'auto');
} else { $('.myCarousel').css('object-fit', 'cover');
$('#get-more-newyear').on('show.bs.modal', function () { });
$('.modal-dialog').css('margin-right',$( window ).width()/4); } else {
$('.modal-dialog').css('margin-left',$( window ).width()/4); $('#get-more-newyear').on('show.bs.modal', function () {
$('.modal-dialog').css('margin-top',$( window ).height()/8); $('.modal-dialog').css('margin-right',$( window ).width()/4);
$('.modal-content').css('height',$( window ).height()*0.7); $('.modal-dialog').css('margin-left',$( window ).width()/4);
$('.modal-content').css('width',$( window ).width()*0.5); $('.modal-dialog').css('margin-top',$( window ).height()/8);
$('.myCarousel').css('height', $( window ).height()*0.7); $('.modal-content').css('height',$( window ).height()*0.7);
$('.myCarousel').css('width', 'auto'); $('.modal-content').css('width',$( window ).width()*0.5);
$('.myCarousel').css('object-fit', 'cover'); $('.myCarousel').css('height', $( window ).height()*0.7);
}); $('.myCarousel').css('width', 'auto');
} $('.myCarousel').css('object-fit', 'cover');
});
}
} }
}); });
} }