mirror of
https://github.com/LaQuay/TDTChannels.git
synced 2024-11-22 17:03:24 +01:00
temporary commit to test in phone v2
This commit is contained in:
parent
b164e87b6a
commit
5a59324864
2 changed files with 5 additions and 4 deletions
|
@ -18,7 +18,7 @@
|
|||
</head>
|
||||
<body>
|
||||
<div id="container" class="container" style="margin-top: 30px">
|
||||
<h1 class="display-4">TDTChannels</h1>
|
||||
<h1 id="testh1" class="display-4">TDTChannels</h1>
|
||||
<br>
|
||||
<a class="btn btn-outline-secondary" role="button" href="https://github.com/LaQuay/TDTChannels"
|
||||
target="_blank">Repositorio TDT Channels</a>
|
||||
|
|
|
@ -196,12 +196,13 @@ function onChannelClick(channel){
|
|||
channel = JSON.parse(channel);
|
||||
reproduceVideo(channel['options'][0]['url'])
|
||||
|
||||
console.log(document.getElementById("container").offsetWidth)
|
||||
console.log("Container: " + document.getElementById("container").offsetWidth)
|
||||
console.log("Screen: " + $(window).width());
|
||||
|
||||
document.getElementById("searchInput").placeholder = document.getElementById("container").offsetWidth
|
||||
document.getElementById("testh1").innerText = 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"});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue