1
0
Fork 0
mirror of https://github.com/LaQuay/TDTChannels.git synced 2024-11-22 17:03:24 +01:00

temporary commit to test in phone

This commit is contained in:
Marc 2019-02-03 19:56:00 +01:00
parent 4610e2c0a2
commit b164e87b6a

View file

@ -196,8 +196,12 @@ function onChannelClick(channel){
channel = JSON.parse(channel);
reproduceVideo(channel['options'][0]['url'])
console.log(document.getElementById("container").offsetWidth)
document.getElementById("searchInput").placeholder = 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"});
}
}