1
0
Fork 0
mirror of https://github.com/LaQuay/TDTChannels.git synced 2024-11-22 17:03:24 +01:00

tests in phone done, working

This commit is contained in:
Marc 2019-02-03 20:33:20 +01:00
parent 5a59324864
commit 5e1242299e
2 changed files with 2 additions and 5 deletions

View file

@ -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>

View file

@ -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"});