ADD fullscreen for fotorama

This commit is contained in:
Krivchikov Dmitry 2015-11-27 14:02:14 +03:00
parent 69c9cf9804
commit 348bf09723
1 changed files with 6 additions and 3 deletions

View File

@ -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
}); });
} }
} }