Update Clyp embedding.

This commit is contained in:
ccd0 2017-07-14 23:43:33 -07:00
parent 6f9c6ec467
commit 785e3339d9

View File

@ -240,14 +240,10 @@ Embedding =
,
key: 'Clyp'
regExp: /^\w+:\/\/(?:www\.)?clyp\.it\/(\w+)/
style: ''
style: 'border: 0; width: 640px; height: 160px;'
el: (a) ->
el = $.el 'audio',
controls: true
preload: 'auto'
type = if el.canPlayType 'audio/ogg' then 'ogg' else 'mp3'
el.src = "https://clyp.it/#{a.dataset.uid}.#{type}"
el
$.el 'iframe',
src: "https://clyp.it/#{a.dataset.uid}/widget"
,
key: 'Dailymotion'
regExp: /^\w+:\/\/(?:(?:www\.)?dailymotion\.com\/(?:embed\/)?video|dai\.ly)\/([A-Za-z0-9]+)[^?]*(.*)/