Fix fullscreen in Dailymotion embeds.
This commit is contained in:
parent
1d9cec1d3b
commit
ac9ffccbe0
@ -178,8 +178,10 @@ Embedding =
|
||||
regExp: /^\w+:\/\/(?:(?:www\.)?dailymotion\.com\/(?:embed\/)?video|dai\.ly)\/([A-Za-z0-9]+)[^?]*(.*)/
|
||||
el: (a) ->
|
||||
options = if (start = a.dataset.options.match /[?&](start=\d+)/) then "?#{start[1]}" else ''
|
||||
$.el 'iframe',
|
||||
el = $.el 'iframe',
|
||||
src: "//www.dailymotion.com/embed/video/#{a.dataset.uid}#{options}"
|
||||
el.setAttribute "allowfullscreen", "true"
|
||||
el
|
||||
title:
|
||||
api: (uid) -> "https://api.dailymotion.com/video/#{uid}"
|
||||
text: (_) -> _.title
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user