You can clone with HTTPS, Subversion, and other methods.
Download ZIP+ 19 additions
- 1 deletion
Should this also have the ogg extension you removed from video?
I think ogg is for both video and audio so I left it out for now.
eviltrout closed the pull request
Showing 1 unique commit by 1 author.
Showing 4 changed files with 19 additions and 1 deletion. Show Diff Stats Hide Diff Stats
... | ... | @@ -299,6 +299,9 @@ |
299 | 299 | webkit-border-radius: 4px; |
300 | 300 | ms-border-radius: 4px; |
301 | 301 | } |
302 | + audio { | |
303 | + max-width: 100%; | |
304 | + } | |
302 | 305 | } |
303 | 306 | #wmd-preview { |
304 | 307 | border: 1px dashed $gray; |
... | ... | @@ -515,6 +515,9 @@ |
515 | 515 | img { |
516 | 516 | max-width: 100%; |
517 | 517 | } |
518 | + audio { | |
519 | + max-width: 100%; | |
520 | + } | |
518 | 521 | .topic-body { |
519 | 522 | position: relative; |
520 | 523 | .contents { |
... | ... | @@ -0,0 +1,12 @@ |
1 | +require_dependency 'onebox/base_onebox' | |
2 | + | |
3 | +module Onebox | |
4 | + class AudioOnebox < BaseOnebox | |
5 | + | |
6 | + matcher /^https?:\/\/.*\.mp3$/ | |
7 | + | |
8 | + def onebox | |
9 | + "<audio controls><source src='#{@url}'><a href='#{@url}'>#{@url}</a></audio>" | |
10 | + end | |
11 | + end | |
12 | +end |
... | ... | @@ -3,7 +3,7 @@ |
3 | 3 | module Onebox |
4 | 4 | class VideoOnebox < BaseOnebox |
5 | 5 | |
6 | - matcher /^https?:\/\/.*\.(mov|mp4|ogg)$/ | |
6 | + matcher /^https?:\/\/.*\.(mov|mp4)$/ | |
7 | 7 | |
8 | 8 | def onebox |
9 | 9 | "<video width='100%' height='100%' controls><source src='#{@url}'><a href='#{@url}'>#{@url}</a></video>" |
Tip: You can add notes to lines in a file. Hover to the left of a line to make a note
http://meta.discourse.org/t/audio-html5-tag/8168