-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
112 lines (105 loc) · 4.95 KB
/
index.html
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FracionaFrete</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="style.css">
<link rel="icon" type="image/x-icon" href="./assets/favicon.ico">
</head>
<body>
<div class="container">
<img src="./assets/logo.png" alt="Logo" class="logo"> <fieldset class="border p-2">
<legend class="w-auto">Pacote</legend>
<div class="form-row">
<div class="col-lg">
<label for="altura">Altura (cm):</label>
<input type="number" id="altura" class="form-control">
</div>
<div class="col-lg">
<label for="largura">Largura (cm):</label>
<input type="number" id="largura" class="form-control">
</div>
<div class="col-lg">
<label for="comprimento">Comprimento (cm):</label>
<input type="number" id="comprimento" class="form-control">
</div>
<div class="col-lg">
<label for="peso">Peso (kg):</label>
<input type="number" id="peso" class="form-control">
</div>
<div class="col-lg">
<label for="valor_pacote">Valor (R$):</label>
<input type="number" id="valor_pacote" class="form-control">
</div>
</div>
</fieldset>
<fieldset class="border p-2 mt-3">
<legend class="w-auto">Item 1</legend>
<div class="form-row">
<div class="col-lg">
<label for="quantidade_item1">Quantidade:</label>
<input type="number" id="quantidade_item1" class="form-control">
</div>
<div class="col-lg">
<label for="altura_item1">Altura (cm):</label>
<input type="number" id="altura_item1" class="form-control">
</div>
<div class="col-lg">
<label for="largura_item1">Largura (cm):</label>
<input type="number" id="largura_item1" class="form-control">
</div>
<div class="col-lg">
<label for="comprimento_item1">Comprimento (cm):</label>
<input type="number" id="comprimento_item1" class="form-control">
</div>
<div class="col-lg">
<label for="peso_item1">Peso (kg):</label>
<input type="number" id="peso_item1" class="form-control">
</div>
<div class="col-lg">
<label for="frete_item1">Valor (R$):</label>
<input type="text" id="frete_item1" class="form-control frete-item" readonly>
</div>
</div>
</fieldset>
<fieldset class="border p-2 mt-3">
<legend class="w-auto">Item 2</legend>
<div class="form-row">
<div class="col-lg">
<label for="quantidade_item2">Quantidade:</label>
<input type="number" id="quantidade_item2" class="form-control">
</div>
<div class="col-lg">
<label for="altura_item2">Altura (cm):</label>
<input type="number" id="altura_item2" class="form-control">
</div>
<div class="col-lg">
<label for="largura_item2">Largura (cm):</label>
<input type="number" id="largura_item2" class="form-control">
</div>
<div class="col-lg">
<label for="comprimento_item2">Comprimento (cm):</label>
<input type="number" id="comprimento_item2" class="form-control">
</div>
<div class="col-lg">
<label for="peso_item2">Peso (kg):</label>
<input type="number" id="peso_item2" class="form-control">
</div>
<div class="col-lg">
<label for="frete_item2">Valor (R$):</label>
<input type="text" id="frete_item2" class="form-control frete-item" readonly>
</div>
</div>
</fieldset>
<div class="form-group mt-3 buttons">
<button onclick="adicionarNovoItem()" class="btn btn-primary">Adicionar novo Item</button>
<button onclick="calcular()" class="btn btn-success">Calcular</button>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script src="script.js"></script>
</body>
</html>