Style media embeds
This commit is contained in:
parent
ea35ca38c1
commit
428645245b
3 changed files with 8 additions and 6 deletions
|
@ -8,12 +8,12 @@
|
|||
@if($checkin->note)
|
||||
@if(preg_match("/\[\[([^\]]+)\]\]/", $checkin->note, $filepath))
|
||||
@if(preg_match("/\.webm/", $filepath[1]))
|
||||
<video controls>
|
||||
<video class="popup__video" controls>
|
||||
<source src="/videos/{{ $filepath[1] }}" type="video/webm">
|
||||
<p>Your browser doesn't support HTML video. Here is a <a href="/{{ $filepath[1] }}">link to the video</a> instead.</p>
|
||||
</video>
|
||||
@elseif(preg_match("/\.ogg/", $filepath[1]))
|
||||
<audio controls>
|
||||
<audio class="popup__audio" controls>
|
||||
<source src="/audio/{{ $filepath[1] }}" type="audio/ogg">
|
||||
<p>Download <a href="/{{ $filepath[1] }}">OGG</a> audio.</p>
|
||||
</audio>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue