From 5a5932486479409c04cd4bfa888fe4d4c45aea39 Mon Sep 17 00:00:00 2001 From: Marc Date: Sun, 3 Feb 2019 20:16:02 +0100 Subject: [PATCH] temporary commit to test in phone v2 --- script/public/index.html | 2 +- script/public/index.js | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/script/public/index.html b/script/public/index.html index 3f9b0d40..c3723a90 100644 --- a/script/public/index.html +++ b/script/public/index.html @@ -18,7 +18,7 @@
-

TDTChannels

+

TDTChannels


Repositorio TDT Channels diff --git a/script/public/index.js b/script/public/index.js index e1f66c31..f08eea0a 100644 --- a/script/public/index.js +++ b/script/public/index.js @@ -196,12 +196,13 @@ function onChannelClick(channel){ channel = JSON.parse(channel); reproduceVideo(channel['options'][0]['url']) - console.log(document.getElementById("container").offsetWidth) + console.log("Container: " + document.getElementById("container").offsetWidth) + console.log("Screen: " + $(window).width()); - document.getElementById("searchInput").placeholder = document.getElementById("container").offsetWidth + document.getElementById("testh1").innerText = document.getElementById("container").offsetWidth if (document.getElementById("container").offsetWidth < 720) { - //document.getElementById("video").scrollIntoView({behavior: "smooth", block: "start", inline: "nearest"}); + document.getElementById("video").scrollIntoView({behavior: "smooth", block: "start", inline: "nearest"}); } }