-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
76 lines (73 loc) · 2.64 KB
/
index.html
File metadata and controls
76 lines (73 loc) · 2.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<link rel="shortcut icon" href="https://wellifabio.github.io/produtos-cards/assets/carrinho.png"
type="image/x-icon">
<title>Produtos em Promoção</title>
</head>
<body onload="listarProdutos()">
<header>
<h1>Produtos em Promoção</h1>
<nav>
<img src="https://wellifabio.github.io/produtos-cards/assets/carrinho2.png"
onclick="carrinhoCompras.classList.remove('oculto');" alt="Carrinho de compras">
</nav>
</header>
<main>
<div class="conteiner"></div>
</main>
<footer>
<h2>By wellifabio</h2>
<button>Noturno</button>
</footer>
<div id="mensagem" class="modal oculto">
<div class="janela">
<h3 id="texto"></h3>
<button onclick="mensagem.classList.add('oculto')">Ok</button>
</div>
</div>
<div id="detalhes" class="modal oculto">
<div class="janela">
<div class="cabecalho">
<h3 id="titulo"></h3>
<button onclick="detalhes.classList.add('oculto')">X</button>
</div>
<p>Id do produto: <label id="idProd"></label></p>
<img class="img-detalhes" id="img">
<p id="descricao"></p>
<p id="preco"></p>
<p id="peso"></p>
<p id="frete"></p>
<p id="total"></p>
<button onclick="detalhes.classList.add('oculto');adicionarCarrinho(idProd.innerHTML)">Adicionar ao Carrinho</button>
</div>
</div>
<div id="carrinhoCompras" class="modal oculto">
<div class="janela">
<div class="cabecalho">
<h3>Carrinho de compras</h3>
<button onclick="carrinhoCompras.classList.add('oculto')">X</button>
</div>
<table>
<thead>
<th>Id</th>
<th>Produto</th>
<th>Descrição</th>
<th>Foto</th>
<th>Quantidade</th>
<th>Total</th>
</thead>
<tbody id="corpoCarrinho">
</tbody>
</table>
<p id="totalCarrinho">Total R$</p>
<button
onclick="carrinhoCompras.classList.add('oculto');modalMensagem('Esta funcionalida está em desenvolvimento<br>Em breve você poderá desfrutar de compras emcionantes')">Enviar Pedido</button>
</div>
</div>
</body>
<script src="script.js"></script>
</html>