Skip to content

Commit

Permalink
Corrigindo distorção no video
Browse files Browse the repository at this point in the history
  • Loading branch information
SonanFarr committed Nov 15, 2023
1 parent 5fb6ce4 commit ea978c6
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,6 @@ <h1 style="display: none"><span id="sets-m">0</span> / <span id="sets-max-m">3</
<h1 style="margin-left: 20px; color: white;"> S:</h1>
<progress value="0" max="100" id="barra-items-series"></progress>
</div>

<!--<div id="rest-wrapper-m" class="barra-items-series">
<h1> Descanso:</h1>
<h1><span id="rest-m">3</span> s</h1>
</div>
<div id="botaoMute-m" class = "barra-items-series">
<h1>Sons</h1>
<input type="checkbox" id="checkSilenciar-m" name="checkSilenciar-m" checked onclick="checkSilenciar()">
<label for="sileciar"></label>
</div>-->
</div>

<div id="cnv">
Expand Down Expand Up @@ -335,6 +325,21 @@ <h1>Sons</h1>
counter_descanso_mobile.innerText = counter_descanso.innerText;
}
</script>
<script>
var video = document.getElementById('video');
var output = document.getElementById('output');

var width = video.width;
var height = video.height;

screen.orientation.addEventListener("change", function(e) {
video.width = height;
video.height = width;

output.width = height;
output.height = width;
});
</script>
</body>

</html>

0 comments on commit ea978c6

Please sign in to comment.