From 22a1b414b89140f3d534bafe357576849f3221a5 Mon Sep 17 00:00:00 2001 From: Krivchikov Dmitry Date: Mon, 6 Oct 2014 16:09:56 +0400 Subject: [PATCH] =?UTF-8?q?=D0=91=D0=BE=D0=BB=D1=8C=D1=88=D0=B8=D0=B5=20?= =?UTF-8?q?=D0=BA=D0=B0=D1=80=D1=82=D0=B8=D0=BD=D0=BA=D0=B8=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20=D0=B4=D0=B8=D1=81=D0=BF=D0=BB=D0=B5=D0=B5=D0=B2=20?= =?UTF-8?q?=D1=81=20=D0=B2=D1=8B=D1=81=D0=BE=D0=BA=D0=B8=D0=BC=20=D1=80?= =?UTF-8?q?=D0=B0=D0=B7=D1=80=D0=B5=D1=88=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/js/app.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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});