From 90e8d357650078d0670b9ff191ad99b622ab4e19 Mon Sep 17 00:00:00 2001 From: Laura Marques <159571325+lauluah@users.noreply.github.com> Date: Tue, 9 Apr 2024 12:12:52 -0300 Subject: [PATCH] Update main.js --- main.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.js b/main.js index 0989ae8..a6540dd 100644 --- a/main.js +++ b/main.js @@ -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) {