MAJ gallery.js.php
This commit is contained in:
parent
53d0b3cf89
commit
2ff79ec5ca
|
@ -1,11 +1,9 @@
|
||||||
/**
|
/**
|
||||||
* This file is part of DeltaCMS.
|
* This file is part of DeltaCMS.
|
||||||
|
* Album Photo /view/gallery
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
$(".galleryGalleryPicture").simpleLightbox({
|
||||||
* Galerie d'image
|
|
||||||
*/
|
|
||||||
$(".galleryGalleryPicture").simpleLightbox({
|
|
||||||
captionSelector: "self",
|
captionSelector: "self",
|
||||||
captionType: "data",
|
captionType: "data",
|
||||||
captionsData: "caption",
|
captionsData: "caption",
|
||||||
|
@ -13,29 +11,26 @@ $(".galleryGalleryPicture").simpleLightbox({
|
||||||
});
|
});
|
||||||
|
|
||||||
$(function () {
|
$(function () {
|
||||||
// @Lionel 2019
|
|
||||||
|
|
||||||
var taille = "<?php echo $this->getData(['theme','site', 'width']); ?>";
|
var taille = "<?php echo $this->getData(['theme','site', 'width']); ?>";
|
||||||
|
|
||||||
switch(taille)
|
switch(taille)
|
||||||
{
|
{
|
||||||
case '75vw':
|
case '75vw':
|
||||||
$('a.galleryPicture').css('height', '165px');//view/index
|
$('a.galleryGalleryPicture').css('height', '125px');
|
||||||
$('a.galleryGalleryPicture').css('height', '110px');//view/gallery
|
$('div.galleryGalleryName').css('font-size', '0.8em');
|
||||||
$('div.galleryGalleryName').css('font-size', '0.8em');//view/gallery
|
$('div.galleryGalleryName').css('line-height', '1em');
|
||||||
break;
|
break;
|
||||||
case '85vw':
|
case '85vw':
|
||||||
$('a.galleryPicture').css('height', '200px');
|
|
||||||
$('a.galleryGalleryPicture').css('height', '135px');
|
$('a.galleryGalleryPicture').css('height', '135px');
|
||||||
$('div.galleryGalleryName').css('font-size', '0.85em');
|
$('div.galleryGalleryName').css('font-size', '0.85em');
|
||||||
|
$('div.galleryGalleryName').css('line-height', '1em');
|
||||||
break;
|
break;
|
||||||
case '95vw':
|
case '95vw':
|
||||||
$('a.galleryPicture').css('height', '235px');
|
|
||||||
$('a.galleryGalleryPicture').css('height', '160px');
|
$('a.galleryGalleryPicture').css('height', '160px');
|
||||||
$('div.galleryGalleryName').css('font-size', '0.9em');
|
$('div.galleryGalleryName').css('font-size', '0.9em');
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$('a.galleryPicture').css('height', '250px');
|
|
||||||
$('a.galleryGalleryPicture').css('height', '185px');
|
$('a.galleryGalleryPicture').css('height', '185px');
|
||||||
$('div.galleryGalleryName').css('font-size', '1em');
|
$('div.galleryGalleryName').css('font-size', '1em');
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue