Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lauluah authored Apr 9, 2024
1 parent 5038f70 commit 90e8d35
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ input.addEventListener('keyup', function(event) {
document.addEventListener('DOMContentLoaded', () => {
fecharInput();
recarregarVideos()

const videoElement = document.querySelector('.video');
videoElement.addEventListener('touchstart', function() {
if (videoElement.paused) {
videoElement.play();
}
});
});

async function procurarCidade(city) {
Expand Down

0 comments on commit 90e8d35

Please sign in to comment.