1
0
Fork 0
mirror of https://github.com/LaQuay/TDTChannels.git synced 2024-11-23 01:13:25 +01: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

View file

@ -17,7 +17,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div class="container" style="margin-top: 30px">
<div id="container" class="container" style="margin-top: 30px">
<h1 class="display-4">TDTChannels</h1>
<br>
<a class="btn btn-outline-secondary" role="button" href="https://github.com/LaQuay/TDTChannels"

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() {