5641d7e51a
ALSO: Remove fading on dropdown menu click. This is also a bug on the actual upstream, when the cursor leaves the screen the menu disappears but the fading doesn't. This causes things like the menu saying it's open when it's not and closed when open. I'm not dealing with an upstream bug.
24 lines
985 B
Text
24 lines
985 B
Text
{% capture video_id %}{{ include.id }}{% endcapture %}
|
|
{% capture video_provider %}{{ include.provider }}{% endcapture %}
|
|
{% capture video_danmaku %}{{ include.danmaku | default: 0 }}{% endcapture %}
|
|
|
|
{% capture video_src %}
|
|
{% case video_provider %}
|
|
{% when "vimeo" %}
|
|
https://player.vimeo.com/video/{{ video_id }}?dnt=true
|
|
{% when "youtube" %}
|
|
https://www.youtube-nocookie.com/embed/{{ video_id }}
|
|
{% when "google-drive" %}
|
|
https://drive.google.com/file/d/{{ video_id }}/preview
|
|
{% when "bilibili" %}
|
|
https://player.bilibili.com/player.html?bvid={{ video_id }}&page=1&as_wide=1&high_quality=1&danmaku={{ video_danmaku }}
|
|
{% endcase %}
|
|
{% endcapture %}
|
|
{% assign video_src = video_src | strip %}
|
|
|
|
<!-- Courtesy of embedresponsively.com //-->
|
|
{% unless video_src == "" %}
|
|
<div class="responsive-video-container">
|
|
<iframe src="{{ video_src }}" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowfullscreen></iframe>
|
|
</div>
|
|
{% endunless %}
|