diff --git a/module/album/view/index/index.js.php b/module/album/view/index/index.js.php new file mode 100644 index 0000000..fd7d07d --- /dev/null +++ b/module/album/view/index/index.js.php @@ -0,0 +1,29 @@ +/** + * This file is part of DeltaCMS. + * Album Photo /view/index + */ + + $(function () { + +var taille = "getData(['theme','site', 'width']); ?>"; + + switch(taille) + { + case '75vw': + $('a.galleryPicture').css('height', '170px'); + $('div.galleryName').css('font-size', '0.8em'); + break; + case '85vw': + $('a.galleryPicture').css('height', '200px'); + $('div.galleryName').css('font-size', '0.85em'); + break; + case '95vw': + $('a.galleryPicture').css('height', '235px'); + $('div.galleryName').css('font-size', '0.9em'); + break; + default: + $('a.galleryPicture').css('height', '250px'); + $('div.galleryName').css('font-size', '1em'); + break; + } +});