diff --git a/public/js/app.js b/public/js/app.js index a7caec8..8a01cc1 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -92,7 +92,11 @@ function showImage(id) photos = []; point.images.forEach(function(entry) { - photos.push({img: '/photos/middle/'+entry, thumb: '/photos/small/'+entry}); + if (window.devicePixelRatio > 1) { + photos.push({img: '/photos/big/'+entry, thumb: '/photos/small/'+entry}); + } else { + photos.push({img: '/photos/middle/'+entry, thumb: '/photos/small/'+entry}); + } }); $('.fotorama').fotorama({data: photos});