Fix sorting in Embedding.
This commit is contained in:
parent
83064a7fd4
commit
c4ad49e392
@ -350,17 +350,6 @@ Embedding =
|
|||||||
el: (a) ->
|
el: (a) ->
|
||||||
$.el 'iframe',
|
$.el 'iframe',
|
||||||
src: "https://twitframe.com/show?url=https://twitter.com/#{a.dataset.uid}"
|
src: "https://twitframe.com/show?url=https://twitter.com/#{a.dataset.uid}"
|
||||||
,
|
|
||||||
key: 'Vocaroo'
|
|
||||||
regExp: /^\w+:\/\/(?:www\.)?vocaroo\.com\/i\/(\w+)/
|
|
||||||
style: ''
|
|
||||||
el: (a) ->
|
|
||||||
el = $.el 'audio',
|
|
||||||
controls: true
|
|
||||||
preload: 'auto'
|
|
||||||
type = if el.canPlayType 'audio/webm' then 'webm' else 'mp3'
|
|
||||||
el.src = "http://vocaroo.com/media_command.php?media=#{a.dataset.uid}&command=download_#{type}"
|
|
||||||
el
|
|
||||||
,
|
,
|
||||||
key: 'Vimeo'
|
key: 'Vimeo'
|
||||||
regExp: /^\w+:\/\/(?:www\.)?vimeo\.com\/(\d+)/
|
regExp: /^\w+:\/\/(?:www\.)?vimeo\.com\/(\d+)/
|
||||||
@ -379,6 +368,17 @@ Embedding =
|
|||||||
el: (a) ->
|
el: (a) ->
|
||||||
$.el 'iframe',
|
$.el 'iframe',
|
||||||
src: "https://vine.co/v/#{a.dataset.uid}/card"
|
src: "https://vine.co/v/#{a.dataset.uid}/card"
|
||||||
|
,
|
||||||
|
key: 'Vocaroo'
|
||||||
|
regExp: /^\w+:\/\/(?:www\.)?vocaroo\.com\/i\/(\w+)/
|
||||||
|
style: ''
|
||||||
|
el: (a) ->
|
||||||
|
el = $.el 'audio',
|
||||||
|
controls: true
|
||||||
|
preload: 'auto'
|
||||||
|
type = if el.canPlayType 'audio/webm' then 'webm' else 'mp3'
|
||||||
|
el.src = "http://vocaroo.com/media_command.php?media=#{a.dataset.uid}&command=download_#{type}"
|
||||||
|
el
|
||||||
,
|
,
|
||||||
key: 'YouTube'
|
key: 'YouTube'
|
||||||
regExp: /^\w+:\/\/(?:youtu.be\/|[\w.]*youtube[\w.]*\/.*(?:v=|\bembed\/|\bv\/))([\w\-]{11})(.*)/
|
regExp: /^\w+:\/\/(?:youtu.be\/|[\w.]*youtube[\w.]*\/.*(?:v=|\bembed\/|\bv\/))([\w\-]{11})(.*)/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user