1
0
Fork 0
mirror of https://github.com/LaQuay/TDTChannels.git synced 2024-09-30 01:02:01 +02: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"});
}
}