1
0
Fork 0
mirror of https://github.com/LaQuay/TDTChannels.git synced 2025-06-14 15:53:20 +02:00

temporary commit to test in phone v2

This commit is contained in:
Marc 2019-02-03 20:16:02 +01:00
parent b164e87b6a
commit 5a59324864
2 changed files with 5 additions and 4 deletions
script/public

View file

@ -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"});
}
}