From 52f449fd5a999aea77fa8df3628af7845d0cfcef Mon Sep 17 00:00:00 2001 From: Scott Main Date: Mon, 24 Mar 2014 23:23:22 -0700 Subject: [PATCH] fix size and behavior of video thumbnail when flash not available Change-Id: Ifc5eae0f9e42cc16b0daab9e715ff885388cf91c --- docs/html/wear/index.html | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/docs/html/wear/index.html b/docs/html/wear/index.html index 4a71856784f4d..966046330441b 100644 --- a/docs/html/wear/index.html +++ b/docs/html/wear/index.html @@ -297,7 +297,7 @@ onkeyup="return search_changed(event, false, '/')" />
-
@@ -346,9 +346,14 @@ $("#watchVideo").on("click", function(e) { }); $("#icon-video-close").on("click", function() { ytplayer = document.getElementById("ytapiplayer"); - ytplayer.stopVideo(); - $(ytplayer).hide(); - $("#video-container").fadeOut(400); + try { + ytplayer.stopVideo(); + $(ytplayer).hide(); + $("#video-container").fadeOut(400); + } catch(e) { + console.log('Video not available'); + $("#video-container").fadeOut(400); + } });