This commit is contained in:
2024-05-17 15:14:29 +02:00
parent 5e495f3395
commit cce94207be
6 changed files with 37 additions and 17 deletions

View File

@@ -127,7 +127,12 @@ function init() {
let x = Number(data.attr('data-object'));
let y = Number(data.attr('data-item'));
let z = Number(data.attr('data-items'));
galleryControl(x,0,y,z);
if (window.innerWidth > window.innerHeight) {
galleryControl(x,0,y,z);
} else {
galleryControl(x,1,y,z);
}
});
$('.js-preview-next').click(function() {
@@ -135,7 +140,12 @@ function init() {
let x = Number(data.attr('data-object'));
let y = Number(data.attr('data-item'));
let z = Number(data.attr('data-items'));
galleryControl(x,1,y,z);
if (window.innerWidth > window.innerHeight) {
galleryControl(x,1,y,z);
} else {
galleryControl(x,0,y,z);
}
});
$('.js-menu-button').click(function() {