Skip to content

Commit

Permalink
Atualizar o script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ericaviana12 authored Nov 15, 2024
1 parent 21c5e35 commit eb85dc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sites/botao-do-panico/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function ativarAlerta() { // Função que ativa o alerta sonoro, o LED e muda a
somAlerta.play() // Inicia a reprodução do som do alarme
alertaAtivo = true // Define o estado do alerta como ativo
ligarLed() // Chama a função para ligar o LED do dispositivo
alertButton.src = "img/botao_ativo.png" // Altera a imagem para o estado ativo quando o alerta é acionado
alertButton.src = "img/botao_ativo.jpg" // Altera a imagem para o estado ativo quando o alerta é acionado
}

function desativarAlerta() { // Função que desativa o alerta sonoro, o LED e restaura a imagem original do botão
Expand Down

0 comments on commit eb85dc6

Please sign in to comment.