diff --git a/js/cast.js b/js/cast.js index 67a2f20..e854114 100644 --- a/js/cast.js +++ b/js/cast.js @@ -91,4 +91,13 @@ function loadCastApi(loaded, errorInfo) { } } -window.__onGCastApiAvailable = loadCastApi; +function initCast() { + 'use strict'; + var intro = document.getElementById('download_intro'); + if (intro) { + intro.insertAdjacentHTML('beforeend', ' Google Cast™ Casting to ChromeCast…'); + window.__onGCastApiAvailable = loadCastApi; + } +} + +window.addEventListener('load', initCast, false); diff --git a/templates/video.tpl b/templates/video.tpl index ea9eead..daaf3cc 100644 --- a/templates/video.tpl +++ b/templates/video.tpl @@ -2,22 +2,13 @@
{include file="logo.tpl"} -

You are going to download +

You are going to download . -Google Cast™ is disabled -Google Cast™ -Casting to ChromeCast…

+

{if isset($video->thumbnail)} {/if}