Sha256: 4fd2bf23b75df1433c2bed8b3e685e249a7507d1688f2b7bbc317b6d09d06ad1

Contents?: true

Size: 1.03 KB

Versions: 4

Compression:

Stored size: 1.03 KB

Contents

{%- comment %}
Usage:
    {% include presentation/google-youtube.html
        key="«short https://youtu.be/{key} identifier from sharing URL»"
        width="«optional: width in px»"
        height="«optional: height in px»"
        starts="«optional: start-point for play offset in seconds»"
    %}
------------------------------------------------------------------------------
{% endcomment -%}

{%- assign w=include.width  | default: 560 %}
{%- assign h=include.height | default: 315 %}
{%- assign s=include.starts | default: 0 %}

{%- if include.key %}
<div class="presentation-content" style="width: {{ w| plus: 12 }}px; height: {{ h | plus: 12 }}px;">
    <iframe style="width: {{ w }}px" 
    width="{{ w }}" height="{{ h }}" frameborder="0" 
    src="https://www.youtube.com/embed/{{ include.key }}?start={{ s }}" 
    title="YouTube video player" 
    allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" 
    allowfullscreen></iframe>
</div>
{% endif %}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vliz-be-theme-0.4.4 _includes/presentation/google-youtube.html
vliz-be-theme-0.4.3 _includes/presentation/google-youtube.html
vliz-be-theme-0.4.1 _includes/presentation/google-youtube.html
vliz-be-theme-0.4.0 _includes/presentation/google-youtube.html