DSatishchandra commited on
Commit
7553881
·
verified ·
1 Parent(s): 82770c8

Update templates/menu.html

Browse files
Files changed (1) hide show
  1. templates/menu.html +1 -23
templates/menu.html CHANGED
@@ -267,7 +267,7 @@ form.text-center.mb-4 {
267
 
268
  .form-check-inline {
269
  display: inline-block;
270
- margin-right: 5px; !important; /* Decrease space between each radio button */
271
  }
272
 
273
  .form-check-label {
@@ -522,25 +522,6 @@ form.text-center.mb-4 {
522
 
523
  <!-- JavaScript -->
524
  <script>
525
- function changeQuantity(amount, itemId) {
526
- let quantityInput = document.getElementById("quantity-" + itemId);
527
- let currentQuantity = parseInt(quantityInput.value);
528
- let newQuantity = currentQuantity + amount;
529
-
530
- if (newQuantity >= 1) {
531
- quantityInput.value = newQuantity;
532
- updateTotalAmount(itemId);
533
- }
534
- }
535
-
536
- function updateTotalAmount(itemId) {
537
- let quantity = parseInt(document.getElementById("quantity-" + itemId).value);
538
- let price = parseFloat(document.getElementById("price-" + itemId).innerText); // Get price dynamically
539
- let totalAmount = price * quantity;
540
-
541
- // Update the individual total amount display
542
- document.getElementById("totalAmountDisplay-" + itemId).innerText = `$${totalAmount.toFixed(2)}`;
543
- }
544
  function showItemDetails(name, price, image, description, section, selectedCategory) {
545
  document.getElementById('modal-name').innerText = name;
546
  document.getElementById('modal-price').innerText = `$${price}`;
@@ -778,7 +759,4 @@ function roundRewardPoints() {
778
  <!-- Bootstrap JS -->
779
  <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
780
  </body>
781
- </html>
782
- </script>
783
- </body>
784
  </html>
 
267
 
268
  .form-check-inline {
269
  display: inline-block;
270
+ margin-right: 5px; /* Decrease space between each radio button */
271
  }
272
 
273
  .form-check-label {
 
522
 
523
  <!-- JavaScript -->
524
  <script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
525
  function showItemDetails(name, price, image, description, section, selectedCategory) {
526
  document.getElementById('modal-name').innerText = name;
527
  document.getElementById('modal-price').innerText = `$${price}`;
 
759
  <!-- Bootstrap JS -->
760
  <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
761
  </body>
 
 
 
762
  </html>