Большие картинки для дисплеев с высоким разрешением
This commit is contained in:
parent
58d92f7cf4
commit
22a1b414b8
|
|
@ -92,7 +92,11 @@ function showImage(id)
|
|||
|
||||
photos = [];
|
||||
point.images.forEach(function(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});
|
||||
|
|
|
|||
Loading…
Reference in New Issue