Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
17helena authored Nov 22, 2024
1 parent fdda38c commit 42bfb2b
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 120 deletions.
26 changes: 26 additions & 0 deletions index1.html/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
function criaCartao(categoria, pergunta, resposta) {
let container = document.getElementById('container')
let cartao = document.createElement('article')
cartao.className = 'cartao'

cartao.innerHTML = `
<div class="cartao__conteudo">
<h3>${categoria}</h3>
<div class="cartao_conteudo_pergunta">
<p>${pergunta}</p>
</div>
<div class="cartao_conteudo_resposta">
<p>${resposta}</p>
</div>
</div>
`
let respostaEstaVisivel = false
function viraCartao() {
respostaEstaVisivel = !respostaEstaVisivel
cartao.classList.toggle('active', respostaEstaVisivel)
}
cartao.addEventListener('click', viraCartao)

container.appendChild(cartao)
}
File renamed without changes.
File renamed without changes.
31 changes: 0 additions & 31 deletions indexx1.html/aapps.js/app.js

This file was deleted.

89 changes: 0 additions & 89 deletions indexx1.html/index1.html

This file was deleted.

0 comments on commit 42bfb2b

Please sign in to comment.