wip
This commit is contained in:
@@ -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() {
|
||||
Reference in New Issue
Block a user