s3/GiveCatJS/givecat.extended.js
/**
 * Calculate the orientation of any given image
 **/
Calculate the orientation of any given image
Calculate the orientation of any given image
function imageOrientation(image) {
  var proportion = image.height / image.width;
  if (proportion > 1) return "p";
  else if (proportion === 1) return "s";
  else if (proportion < 1) return "l";
}
function imageOrientation ( image ) { var proportion = image . height / image . width ; if ( proportion > 1 ) return "p" ; else if ( proportion === 1 ) return "s" ; else if ( proportion < 1 ) return "l" ; }
Calculate the orientation of any given image
Calculate the orientation of any given image