From ' to "
This commit is contained in:
parent
7f735bfbc4
commit
32bd3ffefb
@ -550,7 +550,7 @@ photo = {
|
|||||||
// Size can be 'big, medium, small'
|
// Size can be 'big, medium, small'
|
||||||
// Default is big
|
// Default is big
|
||||||
// Small is centered in the middle of the screen
|
// Small is centered in the middle of the screen
|
||||||
var size = 'big',
|
var size = "big",
|
||||||
scaled = false,
|
scaled = false,
|
||||||
hasMedium = photo.json.medium!=="",
|
hasMedium = photo.json.medium!=="",
|
||||||
pixelRatio = window.devicePixelRatio,
|
pixelRatio = window.devicePixelRatio,
|
||||||
@ -573,13 +573,13 @@ photo = {
|
|||||||
// Medium available and
|
// Medium available and
|
||||||
// Medium still bigger than screen
|
// Medium still bigger than screen
|
||||||
if (hasMedium===true&&
|
if (hasMedium===true&&
|
||||||
(1920>view.width&&1080>view.height)) size = 'medium';
|
(1920>view.width&&1080>view.height)) size = "medium";
|
||||||
|
|
||||||
// Photo not scaled
|
// Photo not scaled
|
||||||
// Photo smaller then screen
|
// Photo smaller then screen
|
||||||
if (scaled===false&&
|
if (scaled===false&&
|
||||||
(photo.json.width<view.width&&
|
(photo.json.width<view.width&&
|
||||||
photo.json.width<view.height)) size = 'small';
|
photo.json.width<view.height)) size = "small";
|
||||||
|
|
||||||
return size;
|
return size;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user