Ajout de index.js.php

This commit is contained in:
LC 2023-10-09 12:57:29 +02:00
parent 2ff79ec5ca
commit ce4b830970
1 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,29 @@
/**
* This file is part of DeltaCMS.
* Album Photo /view/index
*/
$(function () {
var taille = "<?php echo $this->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;
}
});