nagasurendra commited on
Commit
e270dfe
·
verified ·
1 Parent(s): 31e0872

Update templates/menu.html

Browse files
Files changed (1) hide show
  1. templates/menu.html +5 -0
templates/menu.html CHANGED
@@ -1010,6 +1010,7 @@
1010
  <button type="button" class="btn btn-outline-secondary" id="soft-drink-increase" style="width: 40px; height: 40px;">+</button>
1011
  </div>
1012
  </div>
 
1013
  </div>
1014
  <div class="modal-footer" style="border-top: none; padding: 0 20px 20px 20px; justify-content: center;">
1015
  <button type="button" class="btn btn-primary" onclick="addSoftDrinkToCart()" style="width: 200px; padding: 12px; font-size: 1.1rem; background-color: #0FAA39; border-color: #0FAA39;">Add to Cart</button>
@@ -1376,6 +1377,7 @@
1376
  const decreaseBtn = document.getElementById('decreaseQuantity');
1377
  const increaseBtn = document.getElementById('increaseQuantity');
1378
  const quantityInput = document.getElementById('quantityInput');
 
1379
  decreaseBtn.addEventListener('click', function () {
1380
  let currentQuantity = parseInt(quantityInput.value);
1381
  if (currentQuantity > 1) {
@@ -1383,11 +1385,13 @@
1383
  quantityInput.value = currentQuantity;
1384
  }
1385
  });
 
1386
  increaseBtn.addEventListener('click', function () {
1387
  let currentQuantity = parseInt(quantityInput.value);
1388
  currentQuantity++;
1389
  quantityInput.value = currentQuantity;
1390
  });
 
1391
  const softDrinkDecreaseBtn = document.getElementById('soft-drink-decrease');
1392
  const softDrinkIncreaseBtn = document.getElementById('soft-drink-increase');
1393
  const softDrinkQuantityInput = document.getElementById('soft-drink-quantity');
@@ -1407,6 +1411,7 @@
1407
  softDrinkQuantityInput.value = currentQuantity;
1408
  }
1409
  });
 
1410
  const micIcon = document.getElementById('micIcon');
1411
  if ('SpeechRecognition' in window || 'webkitSpeechRecognition' in window) {
1412
  const SpeechRecognition = window.SpeechRecognition || window.webkitSpeechRecognition;
 
1010
  <button type="button" class="btn btn-outline-secondary" id="soft-drink-increase" style="width: 40px; height: 40px;">+</button>
1011
  </div>
1012
  </div>
1013
+
1014
  </div>
1015
  <div class="modal-footer" style="border-top: none; padding: 0 20px 20px 20px; justify-content: center;">
1016
  <button type="button" class="btn btn-primary" onclick="addSoftDrinkToCart()" style="width: 200px; padding: 12px; font-size: 1.1rem; background-color: #0FAA39; border-color: #0FAA39;">Add to Cart</button>
 
1377
  const decreaseBtn = document.getElementById('decreaseQuantity');
1378
  const increaseBtn = document.getElementById('increaseQuantity');
1379
  const quantityInput = document.getElementById('quantityInput');
1380
+
1381
  decreaseBtn.addEventListener('click', function () {
1382
  let currentQuantity = parseInt(quantityInput.value);
1383
  if (currentQuantity > 1) {
 
1385
  quantityInput.value = currentQuantity;
1386
  }
1387
  });
1388
+
1389
  increaseBtn.addEventListener('click', function () {
1390
  let currentQuantity = parseInt(quantityInput.value);
1391
  currentQuantity++;
1392
  quantityInput.value = currentQuantity;
1393
  });
1394
+
1395
  const softDrinkDecreaseBtn = document.getElementById('soft-drink-decrease');
1396
  const softDrinkIncreaseBtn = document.getElementById('soft-drink-increase');
1397
  const softDrinkQuantityInput = document.getElementById('soft-drink-quantity');
 
1411
  softDrinkQuantityInput.value = currentQuantity;
1412
  }
1413
  });
1414
+
1415
  const micIcon = document.getElementById('micIcon');
1416
  if ('SpeechRecognition' in window || 'webkitSpeechRecognition' in window) {
1417
  const SpeechRecognition = window.SpeechRecognition || window.webkitSpeechRecognition;