improving galleries

pull/63/head
Patricio Gonzalez Vivo 8 years ago
parent ce98876cad
commit a363055286

@ -1 +1 @@
<div class="glslGallery" data="160319050916"></div>
<div class="glslGallery" data="160319050916" data-properties="clickRun:edior,hoverPreview:false" ></div>

@ -1 +1 @@
<div class="glslGallery" data="160414041542,160414041933,160414041756"></div>
<div class="glslGallery" data="160414041542,160414041933,160414041756" data-properties="clickRun:edior,hoverPreview:false"></div>

@ -1 +1 @@
<div class="glslGallery" data="160414041142,160414040957,160414040804"></div>
<div class="glslGallery" data="160414041142,160414040957,160414040804" data-properties="clickRun:edior,hoverPreview:false"></div>

@ -0,0 +1,21 @@
@charset 'utf-8';
.glslGallery {
-moz-column-width: 0em;
-webkit-column-width: 0em;
}
.glslGallery_item{
width: 150px;
margin-bottom: 4;
margin-left: 2px;
margin-right: 2px;
}
.glslGallery_thumb{
max-width: 150px;
}
.glslGallery_item canvas.glslGallery_canvas{
max-width: 150px;
}

@ -12,7 +12,8 @@
include('../header.php');
include('../chap-header.php');
echo '<link type="text/css" rel="stylesheet" href="gallery.css">';
echo '<div id="content">';
include($path.'/src/parsedown/Parsedown.php');
@ -43,7 +44,7 @@
}
}
}
echo '" data-properties="hoverPreview:false,showAuthor:false,showTitle:false"></div>';
echo '" data-properties="clickRun:edior,hoverPreview:false,showAuthor:false,openFrameIcon:false"></div>';
}

@ -1 +1 @@
Subproject commit 22050b571c923a702761844c91d26dfbbd841750
Subproject commit 3b02fadfa9a7ff9218382f8ad2334628dad4b742

@ -173,10 +173,9 @@ function captionizeImages() {
if (images.length < 1)
return false;
for (var i=0; i<images.length; i++) {
for (var i = 0; i < images.length; i++) {
var title = images[i].getAttribute("alt");
if (title != ""){
if (title && title !== ''){
var divCaption = document.createElement("div");
divCaption.className = "caption";
var divCaption_text = document.createTextNode(title);

Loading…
Cancel
Save