Skip to content

Commit

Permalink
Merge pull request #9 from guilhermeaf04/patch-3
Browse files Browse the repository at this point in the history
Create configuraçaoconta.html
  • Loading branch information
LeonardoFontenelle authored Jun 24, 2024
2 parents 1a6a400 + cf213dd commit ae951f8
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions codigo/configuraçaoconta.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Trocar de Gerenciamento</title>
<link rel="stylesheet" href="config.css">
</head>
<body>

<div class="container">
<div class="account" id="account1">
<h2>Gerenciamento 1</h2>
<p>Este é o gerenciamento número 1.</p>
</div>
<div class="account" id="account2" style="display: none;">
<h2>Gerenciamento 2</h2>
<p>Este é o gerenciamento número 2.</p>
</div>
<button onclick="trocarGerenciamento()">Trocar de Gerenciamento</button>
<br>
<a href="telainicial.html" class="back-btn">Voltar para a Tela Inicial</a>
</div>

<script>
var estadoGerenciamento = localStorage.getItem('estadoGerenciamento');

if (estadoGerenciamento === 'gerenciamento2') {
document.getElementById('account1').style.display = 'none';
document.getElementById('account2').style.display = 'block';
}

function trocarGerenciamento() {
var gerenciamento1 = document.getElementById('account1');
var gerenciamento2 = document.getElementById('account2');

if (gerenciamento1.style.display !== 'none') {
gerenciamento1.style.display = 'none';
gerenciamento2.style.display = 'block';
localStorage.setItem('estadoGerenciamento', 'gerenciamento2');
} else {
gerenciamento1.style.display = 'block';
gerenciamento2.style.display = 'none';
localStorage.setItem('estadoGerenciamento', 'gerenciamento1');
}
}
</script>

</body>
<video id="video-background" autoplay loop muted>
<source src="videofundo.mp4" type="video/mp4">
</video>
</html>

0 comments on commit ae951f8

Please sign in to comment.