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 1e7c4a4 commit ca73075
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -327,14 +327,14 @@ <h1>Sons</h1>
</script>
<script>
window.addEventListener("orientationchange", function(event) {
var counter_left = document.getElementById('reps-left').innerHtml;
var counter_right = document.getElementById('reps-right').innerHtml;
var counter_series = document.getElementById('sets').innerHtml;
var counter_descanso = document.getElementById('rest').innerHtml;
var counter_left = document.getElementById('reps-left').innerText;
var counter_right = document.getElementById('reps-right').innerText;
var counter_series = document.getElementById('sets').innerText;
var counter_descanso = document.getElementById('rest').innerText;

var max_left = document.getElementById('reps-left-max').innerHtml;
var max_right = document.getElementById('reps-right-max').innerHtml;
var max_series = document.getElementById('sets-max').innerHtml;
var max_left = document.getElementById('reps-left-max').innerText;
var max_right = document.getElementById('reps-right-max').innerText;
var max_series = document.getElementById('sets-max').innerText;

sessionStorage.setItem("counter_left", counter_left);
sessionStorage.setItem("counter_right", counter_right);
Expand All @@ -344,6 +344,8 @@ <h1>Sons</h1>
sessionStorage.setItem("max_left", max_left);
sessionStorage.setItem("max_right", max_right);
sessionStorage.setItem("max_series", max_series);

console.log(sessionStorage.getItem("counter_left"));

window.location.reload();

Expand All @@ -356,6 +358,8 @@ <h1>Sons</h1>
document.getElementById('reps-right-max').innerText = sessionStorage.getItem("max_right");
document.getElementById('sets-max').innerText = sessionStorage.getItem("max_series");

console.log(sessionStorage.getItem("counter_left"));

sessionStorage.clear();
});
</script>
Expand Down

0 comments on commit ca73075

Please sign in to comment.