Support VidLii embedding.

This commit is contained in:
ccd0 2018-02-19 19:26:55 -08:00
parent fbffa9c158
commit da45a0a9eb
2 changed files with 9 additions and 0 deletions

View File

@ -419,6 +419,15 @@ Embedding =
cont
else
el
,
key: 'VidLii'
regExp: /^\w+:\/\/(?:www\.)?vidlii\.com\/watch\?v=(\w{11})/
style: 'border: none; width: 640px; height: 392px;'
el: (a) ->
el = $.el 'iframe',
src: "https://www.vidlii.com/embed?v=#{a.dataset.uid}&a=0"
el.setAttribute "allowfullscreen", "true"
el
,
key: 'Vimeo'
regExp: /^\w+:\/\/(?:www\.)?vimeo\.com\/(\d+)/

BIN
src/css/linkify.vidlii.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB