1
0
Fork 0
mirror of https://github.com/LaQuay/TDTChannels.git synced 2024-11-26 18:54:57 +01:00

temporary commit to test in phone v2

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

View file

@ -18,7 +18,7 @@
</head> </head>
<body> <body>
<div id="container" class="container" style="margin-top: 30px"> <div id="container" class="container" style="margin-top: 30px">
<h1 class="display-4">TDTChannels</h1> <h1 id="testh1" 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"
target="_blank">Repositorio TDT Channels</a> target="_blank">Repositorio TDT Channels</a>

View file

@ -196,12 +196,13 @@ function onChannelClick(channel){
channel = JSON.parse(channel); channel = JSON.parse(channel);
reproduceVideo(channel['options'][0]['url']) 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) { 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"});
} }
} }