Ajout de index.js.php
This commit is contained in:
parent
2ff79ec5ca
commit
ce4b830970
|
@ -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;
|
||||
}
|
||||
});
|
Loading…
Reference in New Issue