From 348bf09723b742197b1691aae1f2449314b0869b Mon Sep 17 00:00:00 2001 From: Krivchikov Dmitry Date: Fri, 27 Nov 2015 14:02:14 +0300 Subject: [PATCH] ADD fullscreen for fotorama --- public/js/app.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/public/js/app.js b/public/js/app.js index 568a13d..a063edf 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -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 }); } }