mirror of
https://github.com/LaQuay/TDTChannels.git
synced 2025-03-29 04:42:29 +01:00
focus automatically to video in phones
This commit is contained in:
parent
ddd9756bb6
commit
76f7a3182d
2 changed files with 5 additions and 1 deletions
script/public
|
@ -17,7 +17,7 @@
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container" style="margin-top: 30px">
|
<div id="container" class="container" style="margin-top: 30px">
|
||||||
<h1 class="display-4">TDTChannels</h1>
|
<h1 class="display-4">TDTChannels</h1>
|
||||||
<br>
|
<br>
|
||||||
<a class="btn btn-outline-secondary" role="button" href="https://github.com/LaQuay/TDTChannels"
|
<a class="btn btn-outline-secondary" role="button" href="https://github.com/LaQuay/TDTChannels"
|
||||||
|
|
|
@ -195,6 +195,10 @@ function filterChannelsList() {
|
||||||
function onChannelClick(channel){
|
function onChannelClick(channel){
|
||||||
channel = JSON.parse(channel);
|
channel = JSON.parse(channel);
|
||||||
reproduceVideo(channel['options'][0]['url'])
|
reproduceVideo(channel['options'][0]['url'])
|
||||||
|
|
||||||
|
if (document.getElementById("container").offsetWidth < 720) {
|
||||||
|
document.getElementById("video").scrollIntoView({behavior: "smooth", block: "start", inline: "nearest"});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function loadChannelsInList() {
|
function loadChannelsInList() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue