_includes/video-player.html in wai-website-theme-0.1.6 vs _includes/video-player.html in wai-website-theme-1.2

- old
+ new

@@ -1,26 +1,28 @@ <div class="video-container" data-video-type=""> <video preload="metadata" data-youtube-id="{{include.yt-id}}" width="450"> - {% assign captions = include.captions | split: ',' %}{% for caption in captions %}{% assign c = caption | split: '|' %}<track src="../cc/{{c[0]}}" label="{{c[2]}}" kind="captions" srclang="{{c[1]}}" default="" />{% endfor %} - {% assign descriptions = include.descriptions | split: ',' %}{% for desc in descriptions %}{% assign d = desc | split: '|' %}<track src="../cc/{{d[0]}}" label="{{d[2]}}" kind="descriptions" srclang="{{d[1]}}" default="" />{% endfor %} + {%- assign captions = include.captions | split: ',' %}{% for caption in captions %}{% assign c = caption | split: '|' %}<track src="{{c[0] | relative_url }}" label="{{c[2]}}" kind="captions" srclang="{{c[1]}}" {% if forloop.first %}default{% endif %} />{% endfor -%} + {%- assign subtitles = include.subtitles | split: ',' %}{% for subtitle in subtitles %}{% assign s = subtitle | split: '|' %}<track src="{{s[0] | relative_url }}" label="{{s[2]}}" kind="subtitles" srclang="{{s[1]}}" />{% endfor -%} + {%- assign descriptions = include.descriptions | split: ',' %}{% for desc in descriptions %}{% assign d = desc | split: '|' %}<track src="{{ d[0] | relative_url }}" label="{{d[2]}}" kind="descriptions" srclang="{{d[1]}}" />{% endfor -%} </video> </div> {% if include.yt-id-ad %} <div class="video-container" data-video-type="audio-described"> <video preload="metadata" data-youtube-id="{{include.yt-id-ad}}" width="450"> - {% assign captions = include.captions-ad | split: ',' %}{% for caption in captions %}{% assign c = caption | split: '|' %}<track src="../cc/{{c[0]}}" label="{{c[2]}}" kind="captions" srclang="{{c[1]}}" default="" />{% endfor %} - {% assign descriptions = include.descriptions-ad | split: ',' %}{% for desc in descriptions %}{% assign d = desc | split: '|' %}<track src="../cc/{{d[0]}}" label="{{d[2]}}" kind="descriptions" srclang="{{d[1]}}" default="" />{% endfor %} + {%- assign captions = include.captions-ad | split: ',' %}{% for caption in captions %}{% assign c = caption | split: '|' %}<track src="{{c[0] | relative_url }}" label="{{c[2]}}" kind="captions" srclang="{{c[1]}}" {% if forloop.first %}default{% endif %} />{% endfor -%} + {%- assign subtitles = include.subtitles-ad | split: ',' %}{% for subtitle in subtitles %}{% assign s = subtitle | split: '|' %}<track src="{{s[0] | relative_url }}" label="{{s[2]}}" kind="subtitles" srclang="{{s[1]}}" />{% endfor -%} + {%- assign descriptions = include.descriptions-ad | split: ',' %}{% for desc in descriptions %}{% assign d = desc | split: '|' %}<track src="{{ d[0] | relative_url }}" label="{{d[2]}}" kind="descriptions" srclang="{{d[1]}}" />{% endfor -%} </video> </div> -<p><button id="audio_description_button"><svg aria-hidden="true" class="icon-audio-description "><use xlink:href="{{ "/assets/images/icons.svg#icon-audio-description" | prepend: site.github.url }}"></use></svg> <span>Enable Audio Description</span></button></p> +<p><button id="audio_description_button"><svg aria-hidden="true" class="icon-audio-description "><use xlink:href="{{ "/assets/images/icons.svg#icon-audio-description" | relative_url }}"></use></svg> <span>Enable Audio Description</span></button></p> {% endif %} -<script src="{{ site.github.url }}/assets/ableplayer/thirdparty/modernizr.custom.js"></script> -<script src="{{ site.github.url }}/assets/scripts/jquery.min.js"></script> -<script src="{{ site.github.url }}/assets/ableplayer/thirdparty/js.cookie.js"></script> -<script src="{{ site.github.url }}/assets/ableplayer/build/ableplayer.min.js"></script> +<script src="{{ "/assets/ableplayer/thirdparty/modernizr.custom.js" | relative_url }}"></script> +<script src="{{ "/assets/scripts/jquery.min.js" | relative_url }}"></script> +<script src="{{ "/assets/ableplayer/thirdparty/js.cookie.js" | relative_url }}"></script> +<script src="{{ "/assets/ableplayer/build/ableplayer.min.js" | relative_url }}"></script> <script> - var youTubeDataAPIKey = "{{site.ytapi}}"; + var youTubeDataAPIKey = "{{site.ytkey}}"; var googleApiReady = false; function initGoogleClientApi() { googleApiReady = true; } </script> \ No newline at end of file