mirror of
https://github.com/LaQuay/TDTChannels.git
synced 2024-11-01 07:01:12 +01:00
tests in phone done, working
This commit is contained in:
parent
5a59324864
commit
5e1242299e
2 changed files with 2 additions and 5 deletions
|
@ -18,7 +18,7 @@
|
|||
</head>
|
||||
<body>
|
||||
<div id="container" class="container" style="margin-top: 30px">
|
||||
<h1 id="testh1" class="display-4">TDTChannels</h1>
|
||||
<h1 id="titleh1" 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,10 +196,7 @@ function onChannelClick(channel){
|
|||
channel = JSON.parse(channel);
|
||||
reproduceVideo(channel['options'][0]['url'])
|
||||
|
||||
console.log("Container: " + document.getElementById("container").offsetWidth)
|
||||
console.log("Screen: " + $(window).width());
|
||||
|
||||
document.getElementById("testh1").innerText = document.getElementById("container").offsetWidth
|
||||
//document.getElementById("titleh1").innerText = document.getElementById("container").offsetWidth
|
||||
|
||||
if (document.getElementById("container").offsetWidth < 720) {
|
||||
document.getElementById("video").scrollIntoView({behavior: "smooth", block: "start", inline: "nearest"});
|
||||
|
|
Loading…
Reference in a new issue