ADD fullscreen for fotorama
This commit is contained in:
parent
69c9cf9804
commit
348bf09723
|
|
@ -92,7 +92,7 @@ function showImage(id)
|
||||||
if (typeof(point.images) == 'object')
|
if (typeof(point.images) == 'object')
|
||||||
{
|
{
|
||||||
point.images.forEach(function(entry) {
|
point.images.forEach(function(entry) {
|
||||||
if (window.devicePixelRatio > 1) {
|
if (true || window.devicePixelRatio > 1) {
|
||||||
photos.push({img: '/photos/big/'+entry, thumb: '/photos/small/'+entry});
|
photos.push({img: '/photos/big/'+entry, thumb: '/photos/small/'+entry});
|
||||||
} else {
|
} else {
|
||||||
photos.push({img: '/photos/middle/'+entry, thumb: '/photos/small/'+entry});
|
photos.push({img: '/photos/middle/'+entry, thumb: '/photos/small/'+entry});
|
||||||
|
|
@ -487,12 +487,15 @@ function initFotorama(selector, data){
|
||||||
$(selector).fotorama({
|
$(selector).fotorama({
|
||||||
data: data,
|
data: data,
|
||||||
width: width,
|
width: width,
|
||||||
height: height
|
height: height,
|
||||||
|
allowfullscreen: true,
|
||||||
|
startindex: 0
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
$(selector).fotorama({
|
$(selector).fotorama({
|
||||||
width: width,
|
width: width,
|
||||||
height: height
|
height: height,
|
||||||
|
startindex: 0
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue