Change default embed size to 640x360.
This commit is contained in:
parent
c221305095
commit
28f9801ca5
@ -136,7 +136,7 @@ Embedding =
|
|||||||
el.style.cssText = if type.style?
|
el.style.cssText = if type.style?
|
||||||
type.style
|
type.style
|
||||||
else
|
else
|
||||||
"border:0;width:640px;height:390px"
|
'border: none; width: 640px; height: 360px;'
|
||||||
|
|
||||||
return container
|
return container
|
||||||
|
|
||||||
@ -176,7 +176,6 @@ Embedding =
|
|||||||
,
|
,
|
||||||
key: 'Dailymotion'
|
key: 'Dailymotion'
|
||||||
regExp: /^\w+:\/\/(?:(?:www\.)?dailymotion\.com\/(?:embed\/)?video|dai\.ly)\/([A-Za-z0-9]+).*((?:\?.*)?)/
|
regExp: /^\w+:\/\/(?:(?:www\.)?dailymotion\.com\/(?:embed\/)?video|dai\.ly)\/([A-Za-z0-9]+).*((?:\?.*)?)/
|
||||||
style: 'border: none; width: 640px; height: 360px;'
|
|
||||||
el: (a) ->
|
el: (a) ->
|
||||||
options = if (start = a.dataset.options.match /[?&](start=\d+)/) then "?#{start[1]}" else ''
|
options = if (start = a.dataset.options.match /[?&](start=\d+)/) then "?#{start[1]}" else ''
|
||||||
$.el 'iframe',
|
$.el 'iframe',
|
||||||
@ -219,7 +218,6 @@ Embedding =
|
|||||||
key: 'LiveLeak'
|
key: 'LiveLeak'
|
||||||
regExp: /^\w+:\/\/(?:\w+\.)?liveleak\.com\/.*\?.*i=(\w+)/
|
regExp: /^\w+:\/\/(?:\w+\.)?liveleak\.com\/.*\?.*i=(\w+)/
|
||||||
httpOnly: true
|
httpOnly: true
|
||||||
style: 'border: none; width: 640px; height: 360px;'
|
|
||||||
el: (a) ->
|
el: (a) ->
|
||||||
el = $.el 'iframe',
|
el = $.el 'iframe',
|
||||||
src: "http://www.liveleak.com/ll_embed?i=#{a.dataset.uid}",
|
src: "http://www.liveleak.com/ll_embed?i=#{a.dataset.uid}",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user