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')
|
||||
{
|
||||
point.images.forEach(function(entry) {
|
||||
if (window.devicePixelRatio > 1) {
|
||||
if (true || window.devicePixelRatio > 1) {
|
||||
photos.push({img: '/photos/big/'+entry, thumb: '/photos/small/'+entry});
|
||||
} else {
|
||||
photos.push({img: '/photos/middle/'+entry, thumb: '/photos/small/'+entry});
|
||||
|
|
@ -487,12 +487,15 @@ function initFotorama(selector, data){
|
|||
$(selector).fotorama({
|
||||
data: data,
|
||||
width: width,
|
||||
height: height
|
||||
height: height,
|
||||
allowfullscreen: true,
|
||||
startindex: 0
|
||||
});
|
||||
} else {
|
||||
$(selector).fotorama({
|
||||
width: width,
|
||||
height: height
|
||||
height: height,
|
||||
startindex: 0
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue