-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpedidos.html
More file actions
265 lines (241 loc) · 14.1 KB
/
pedidos.html
File metadata and controls
265 lines (241 loc) · 14.1 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
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
<!doctype html>
<html lang="pt-br">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css"
integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous">
<!-- Meus CSS -->
<link rel="stylesheet" href="./css/meuestilo.min.css">
<link href="img/favicon.ico" rel="icon">
<title>PyChef - Pedido</title>
</head>
<body class="over">
<!-- NavBar de cabeçalho-->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand PyTitulo" href="index.html">PyChef</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="menuFunc.html">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="pratos.html">Pratos</a>
</li>
<li class="nav-item">
<a class="nav-link" href="mesas.html">Mesas</a>
</li>
</ul>
</div>
<a type="button" class="btn btn-secondary" href="login.html">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-person-fill"
viewBox="0 0 16 16">
<path d="M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6" />
</svg>
</a>
</nav>
<!-- CARDS DE PEDIDOS -->
<div class="jumbotron">
<div class="container">
<div class="row">
<div class="col-lg-8"></div>
<div class="col-sm-2">
<form action="">
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="Num_Mesa">Mesa:</span>
</div>
<input type="number" class="form-control" placeholder="0" min="0" max="10"
aria-label="Username" aria-describedby="NumeroMesa" id="exampleInputMesa">
</div>
</div>
<div class="col-md-2">
<button type="submit" class="btn btn-success">Finalizar Pedido</button>
</div>
</div>
<div class="row my-3">
<!-- CARDs DE PEDIDOS -->
<!-- CARD PYCANHA -->
<div class="col-md-3">
<div class="card bg-light mb-3 cardPed" style="max-width: 18rem;">
<div class="card-header">PYcanha</div>
<div class="card-body">
<button
onclick="document.querySelector('#steve').value=parseInt(document.querySelector('#steve').value)<1?parseInt(document.querySelector('#steve').value):parseInt(document.querySelector('#steve').value)-1"">-</button>
<input type=" number" id="steve" min="0" max="20" value=0 class="wdtQtd">
<button
onclick="document.querySelector('#steve').value=parseInt(document.querySelector('#steve').value)>19?parseInt(document.querySelector('#steve').value):parseInt(document.querySelector('#steve').value)+1">+</button>
<button type="button" class="btn btn-success">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-check" viewBox="0 0 16 16">
<path
d="M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425z">
</path>
</svg>
</button>
</div>
</div>
</div>
<!-- CARD Bac#lhau -->
<div class="col-md-3">
<div class="card bg-light mb-3 cardPed" style="max-width: 18rem;">
<div class="card-header">Bac#lhau</div>
<div class="card-body">
<button
onclick="document.querySelector('#steve1').value=parseInt(document.querySelector('#steve1').value)<1?parseInt(document.querySelector('#steve1').value):parseInt(document.querySelector('#steve1').value)-1"">-</button>
<input type=" number" id="steve1" min="0" max="20" value=0 class="wdtQtd">
<button
onclick="document.querySelector('#steve1').value=parseInt(document.querySelector('#steve1').value)>19?parseInt(document.querySelector('#steve1').value):parseInt(document.querySelector('#steve1').value)+1">+</button>
<button type="button" class="btn btn-success">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-check" viewBox="0 0 16 16">
<path
d="M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425z">
</path>
</svg>
</button>
</div>
</div>
</div>
<!-- EXEMPLO -->
<div class="col-md-3">
<div class="card bg-light mb-3 cardPed" style="max-width: 18rem;">
<div class="card-header">Bac#lhau</div>
<div class="card-body">
<button
onclick="document.querySelector('#steve2').value=parseInt(document.querySelector('#steve2').value)<1?parseInt(document.querySelector('#steve2').value):parseInt(document.querySelector('#steve2').value)-1"">-</button>
<input type=" number" id="steve2" min="0" max="20" value=0 class="wdtQtd">
<button
onclick="document.querySelector('#steve2').value=parseInt(document.querySelector('#steve2').value)>19?parseInt(document.querySelector('#steve2').value):parseInt(document.querySelector('#steve2').value)+1">+</button>
<button type="button" class="btn btn-success">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-check" viewBox="0 0 16 16">
<path
d="M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425z">
</path>
</svg>
</button>
</div>
</div>
</div>
<!-- EXEMPLO 2 -->
<div class="col-md-3">
<div class="card bg-light mb-3 cardPed" style="max-width: 18rem;">
<div class="card-header">Bac#lhau</div>
<div class="card-body">
<button
onclick="document.querySelector('#steve3').value=parseInt(document.querySelector('#steve3').value)<1?parseInt(document.querySelector('#steve3').value):parseInt(document.querySelector('#steve3').value)-1"">-</button>
<input type=" number" id="steve3" min="0" max="20" value=0 class="wdtQtd">
<button
onclick="document.querySelector('#steve3').value=parseInt(document.querySelector('#steve3').value)>19?parseInt(document.querySelector('#steve3').value):parseInt(document.querySelector('#steve3').value)+1">+</button>
<button type="button" class="btn btn-success">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-check" viewBox="0 0 16 16">
<path
d="M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425z">
</path>
</svg>
</button>
</div>
</div>
</div>
</form>
</div>
<!-- FIM CARDS PEDIDOS -->
</div>
<button onclick="topFunction()" id="topButton" title="Voltar ao Topo" class="topButton">
Voltar Ao topo
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-up" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M8 15a.5.5 0 0 0 .5-.5V2.707l3.146 3.147a.5.5 0 0 0 .708-.708l-4-4a.5.5 0 0 0-.708 0l-4 4a.5.5 0 1 0 .708.708L7.5 2.707V14.5a.5.5 0 0 0 .5.5"/>
</svg>
</button>
</div>
<!-- FOOTER -->
<footer class="ftBS">
<div class="container">
<div class="row">
<div class="col-sm-1">
<img src="img/garfo.png" class="imgFooter">
</div>
<div class="col-sm-2">
<img src="img/vinho.png" class="imgFooter">
</div>
<div class="col-sm-2">
<img src="img/hamburguer.png" class="imgFooter">
</div>
<div class="col-sm-2">
<img src="img/PyChefIc.png" class="pyImg">
<p class="PyFoot">PyChef</p>
</div>
<div class="col-sm-2">
<img src="img/hamburguer.png" class="imgFooter">
</div>
<div class="col-sm-2">
<img src="img/vinho.png" class="imgFooter ">
</div>
<div class="col-sm-1">
<img src="img/garfo.png" class="imgFooter">
</div>
</div>
</div>
<!-- Criando um namimg rights da pagina -->
<p class="naming padFt">Desenvolvido com orgulho por PyChef. Todos os direitos reservados.</p>
</footer>
<!-- Option 1: jQuery and Bootstrap Bundle (includes Popper) -->
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-Fy6S3B9q64WdZWQUiU+q4/2Lc9npb8tCaSX9FK7E8HnRr0Jz8D6OP9dO5Vg3Q9ct"
crossorigin="anonymous"></script>
<script src="js/meuScript.js" crossorigin="anonymous"
integrity="sha384-Fy6S3B9q64WdZWQUiU+q4/2Lc9npb8tCaSX9FK7E8HnRr0Jz8D6OP9dO5Vg3Q9ct"></script>
<!-- Option 2: Separate Popper and Bootstrap JS -->
<!--
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.min.js" integrity="sha384-+sLIOodYLS7CIrQpBjl+C7nPvqq+FbNUBDunl/OZv93DB7Ln/533i8e/mZXLi/P+" crossorigin="anonymous"></script>
-->
<script type="text/javascript">
function decrement() {
var input = document.querySelector('#steve');
var value = parseInt(input.value);
if (value > 0) {
input.value = value - 1;
}
}
function increment() {
var input = document.querySelector('#steve');
var value = parseInt(input.value);
if (value < 20) {
input.value = value + 1;
}
}
function callOnClickFunctions() {
decrement();
increment();
}
// Pegar o botão
var topButton = document.getElementById("topButton");
// Mostrar o botão quando rolar 20px para baixo a partir do topo do documento
window.onscroll = function() {scrollFunction()};
function scrollFunction() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
topButton.style.display = "block";
} else {
topButton.style.display = "none";
}
}
// Quando clicar no botão, rolar suavemente até o topo da página
function topFunction() {
window.scrollTo({top: 0, behavior: 'smooth'});
}
</script>
</body>
</html>