upgrade lightbox + add thumbnails

This commit is contained in:
2018-04-18 22:54:00 +02:00
parent 893e27cb5f
commit 8f7dc7e75a
9 changed files with 72 additions and 492 deletions

View File

@@ -15,7 +15,7 @@
</div>
</div>
</div>
<script type="text/javascript" src="script/lightbox.js"></script>
<script type="text/javascript" src="script/lightbox.min.js"></script>
<script type="text/javascript">
oSpot.pageInit = function(asHash)
{
@@ -290,8 +290,8 @@ function getPost(asPost) {
sClass = 'compass';
break;
case 'picture':
var $Image = $('<img>', {'src':asPost.path/*, 'style':'transform:rotate('+asPost.rotate+'deg);'*/});
$Body = $('<a>', {href:asPost.path, 'data-lightbox':self.consts.title, 'data-title':sAbsTime}).append($Image);
var $Image = $('<img>', {'src': asPost.thumb_path/*, 'style':'transform:rotate('+asPost.rotate+'deg);'*/});
$Body = $('<a>', {href: asPost.path, 'data-lightbox': self.consts.title, 'data-title': sAbsTime}).append($Image);
sClass = 'image';
break;
case 'post':