⚡ display videos
This commit is contained in:
parent
b4e99712b9
commit
e1893ee0a0
@ -40,3 +40,8 @@ a {
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
video{
|
||||
width: 100%;
|
||||
border: solid #000;
|
||||
}
|
||||
|
@ -60,14 +60,15 @@ html(lang="en")
|
||||
each media in oredredItem['object'].attachment
|
||||
div.media-gallery
|
||||
div.counter.hidden #{oredredItem['object'].attachment.length}
|
||||
if(media.mediaType.search('video'))
|
||||
if(media.mediaType.search('video') != -1)
|
||||
figure.media-media-displayed.media-image
|
||||
a(href=media.href)
|
||||
video(src=media.href)
|
||||
span Media vidéo
|
||||
elseif(media.mediaType.search('audio'))
|
||||
span Media audio
|
||||
elseif(media.mediaType.search('image'))
|
||||
span Media vidéo
|
||||
video(src=media.href,controls=controls)
|
||||
if(media.mediaType.search('audio') != -1)
|
||||
a(href=media.href)
|
||||
span Media audio
|
||||
if(media.mediaType.search('image') != -1)
|
||||
figure.media-media-displayed.media-image
|
||||
a(href=media.href)
|
||||
img(src=media.href,alt=media.href)
|
||||
|
Loading…
Reference in New Issue
Block a user