gnu-social/public/plugins/GNUsocialPhotos/res/gnusocialphotos.js
Diogo Cordeiro 2a06261f75 [CORE][COMPOSER] Move extlib packages with immediate composer correspondent to composer dependencies
This adds a composer.json for all dependencies that are available
2019-08-03 17:47:24 +01:00

29 lines
793 B
JavaScript

function increasePhotoSize() {
$('.photoingallery, .albumingallery').each(function(index) {
this.height *= 1.1;
this.width *= 1.1;
});
return false;
}
function decreasePhotoSize() {
$('.photoingallery, .albumingallery').each(function(index) {
this.height /= 1.1;
this.width /= 1.1;
});
return false;
}
function scalePhotosToSize(size) {
$('.photoingallery, .albumingallery').each(function(index) {
if(this.height > this.width) {
this.width = this.width*size/this.height;
this.height = size;
}
else {
this.height = this.height*size/this.width;
this.width = size;
}
});
return false;
}