Allow upload of videos

This commit is contained in:
2019-06-28 22:17:46 +02:00
parent 9f7ada89f4
commit e1aac63ae0
10 changed files with 140 additions and 51 deletions

View File

@@ -88,7 +88,8 @@ function initPage(asHash) {
albumLabel: "Photo %1 sur %2",
fadeDuration: 300,
imageFadeDuration: 400,
resizeDuration: 600
resizeDuration: 600,
hasVideo: true
});
//Assign Track Type Colors
@@ -503,7 +504,8 @@ function getPost(asPost) {
case 'picture':
var sTakenOn = (asPost.taken_on == '0000-00-00 00:00:00')?'':' et prise le '+asPost.taken_on_formatted+self.tmp('site_tz_notice');
var $Image = $('<img>', {'src': asPost.thumb_path, title: 'Click pour zoomer'});
$Body = $('<a>', {href: asPost.pic_path, 'data-lightbox': 'post-pictures', 'data-title': 'Photo ajoutée le '+sAbsTime+sTakenOn, 'data-orientation': asPost.rotate}).append($Image);
var sVideo = asPost.pic_path.toLowerCase().split('.').pop()=='mov'?'true':'false';
$Body = $('<a>', {href: asPost.pic_path, 'data-video': sVideo, 'data-lightbox': 'post-pictures', 'data-title': 'Photo ajoutée le '+sAbsTime+sTakenOn, 'data-orientation': asPost.rotate}).append($Image);
break;
case 'post':
$Body = $('<div>')