1
0
Fork 0
mirror of https://github.com/LaQuay/TDTChannels.git synced 2025-05-19 20:28:22 +02:00

focus automatically to video in phones

This commit is contained in:
Marc 2019-02-03 19:25:20 +01:00
parent ddd9756bb6
commit 76f7a3182d
2 changed files with 5 additions and 1 deletions
script/public

View file

@ -195,6 +195,10 @@ function filterChannelsList() {
function onChannelClick(channel){
channel = JSON.parse(channel);
reproduceVideo(channel['options'][0]['url'])
if (document.getElementById("container").offsetWidth < 720) {
document.getElementById("video").scrollIntoView({behavior: "smooth", block: "start", inline: "nearest"});
}
}
function loadChannelsInList() {