Spaces:
Sleeping
Sleeping
Update templates/menu.html
Browse files- templates/menu.html +64 -38
templates/menu.html
CHANGED
|
@@ -242,10 +242,9 @@
|
|
| 242 |
color: #343a40;
|
| 243 |
}
|
| 244 |
.addon-section .form-check {
|
| 245 |
-
display: flex;
|
| 246 |
align-items: center;
|
| 247 |
margin-left: 10px;
|
| 248 |
-
margin-bottom: 8px;
|
| 249 |
color: #343a40;
|
| 250 |
}
|
| 251 |
.addon-section .form-check-input {
|
|
@@ -275,6 +274,7 @@
|
|
| 275 |
.addon-section .form-check-label {
|
| 276 |
font-size: 16px;
|
| 277 |
margin-left: 5px;
|
|
|
|
| 278 |
cursor: pointer;
|
| 279 |
display: inline-block;
|
| 280 |
vertical-align: middle;
|
|
@@ -323,6 +323,11 @@
|
|
| 323 |
color: #6c757d;
|
| 324 |
margin-bottom: 10px;
|
| 325 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 326 |
.modal-body #modal-addons h6,
|
| 327 |
.modal-body #first-row h6 {
|
| 328 |
font-size: 14px;
|
|
@@ -547,6 +552,10 @@
|
|
| 547 |
font-size: 12px;
|
| 548 |
margin-bottom: 5px;
|
| 549 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 550 |
.modal-body #modal-addons h6,
|
| 551 |
.modal-body #first-row h6 {
|
| 552 |
font-size: 12px;
|
|
@@ -605,22 +614,6 @@
|
|
| 605 |
height: 18px;
|
| 606 |
font-size: 9px;
|
| 607 |
}
|
| 608 |
-
.addon-section {
|
| 609 |
-
padding: 8px;
|
| 610 |
-
margin-bottom: 5px;
|
| 611 |
-
}
|
| 612 |
-
.addon-section .form-check {
|
| 613 |
-
margin-left: 0;
|
| 614 |
-
margin-bottom: 5px;
|
| 615 |
-
}
|
| 616 |
-
.addon-section .form-check-input {
|
| 617 |
-
width: 16px;
|
| 618 |
-
height: 16px;
|
| 619 |
-
margin-right: 8px;
|
| 620 |
-
}
|
| 621 |
-
.addon-section .form-check-label {
|
| 622 |
-
font-size: 12px;
|
| 623 |
-
}
|
| 624 |
}
|
| 625 |
</style>
|
| 626 |
</head>
|
|
@@ -754,6 +747,7 @@
|
|
| 754 |
<h5 id="modal-name" class="fw-bold text-center"></h5>
|
| 755 |
<p id="modal-price" class="text-muted text-center"></p>
|
| 756 |
<p id="modal-description" class="text-secondary"></p>
|
|
|
|
| 757 |
|
| 758 |
<div id="first-row">
|
| 759 |
<h6 id="first-row-title" style="display: none;">Customization Options</h6>
|
|
@@ -766,25 +760,8 @@
|
|
| 766 |
<div id="type-options"></div>
|
| 767 |
</div>
|
| 768 |
<div class="addon-section">
|
| 769 |
-
<h6>
|
| 770 |
-
<div id="spice-level-options">
|
| 771 |
-
<div class="form-check">
|
| 772 |
-
<input type="checkbox" class="form-check-input spice-level-option" id="spice-mild" value="Mild" data-name="Mild" data-group="Spice Level">
|
| 773 |
-
<label class="form-check-label" for="spice-mild">Mild</label>
|
| 774 |
-
</div>
|
| 775 |
-
<div class="form-check">
|
| 776 |
-
<input type="checkbox" class="form-check-input spice-level-option" id="spice-medium" value="Medium" data-name="Medium" data-group="Spice Level">
|
| 777 |
-
<label class="form-check-label" for="spice-medium">Medium</label>
|
| 778 |
-
</div>
|
| 779 |
-
<div class="form-check">
|
| 780 |
-
<input type="checkbox" class="form-check-input spice-level-option" id="spice-spicy" value="Spicy" data-name="Spicy" data-group="Spice Level">
|
| 781 |
-
<label class="form-check-label" for="spice-spicy">Spicy</label>
|
| 782 |
-
</div>
|
| 783 |
-
<div class="form-check">
|
| 784 |
-
<input type="checkbox" class="form-check-input spice-level-option" id="spice-extra-spicy" value="Extra Spicy" data-name="Extra Spicy" data-group="Spice Level">
|
| 785 |
-
<label class="form-check-label" for="spice-extra-spicy">Extra Spicy</label>
|
| 786 |
-
</div>
|
| 787 |
-
</div>
|
| 788 |
</div>
|
| 789 |
</div>
|
| 790 |
|
|
@@ -817,74 +794,92 @@
|
|
| 817 |
const menuItemDetails = {
|
| 818 |
"Veg Manchurian": {
|
| 819 |
ingredients: "Cauliflower, Onion, Ginger, Garlic, Soy Sauce, Cornflour, Green Chilies, Capsicum, Spring Onion",
|
|
|
|
| 820 |
allergens: "Soy, Gluten"
|
| 821 |
},
|
| 822 |
"Veg Biryani": {
|
| 823 |
ingredients: "Basmati Rice, Mixed Vegetables (Carrot, Peas, Potato, Cauliflower), Ginger, Garlic, Biryani Masala, Mint Leaves, Curd, Onion, Ghee",
|
|
|
|
| 824 |
allergens: "Dairy"
|
| 825 |
},
|
| 826 |
"Sukka Gosht (Goat)": {
|
| 827 |
ingredients: "Goat Meat, Ginger-Garlic Paste, Green Chilies, Onion, Tomatoes, Garam Masala, Coriander Powder, Cumin Powder, Fresh Coriander",
|
|
|
|
| 828 |
allergens: "None"
|
| 829 |
},
|
| 830 |
"Samosa": {
|
| 831 |
ingredients: "Potatoes, Peas, Onion, Ginger, Cumin Seeds, Garam Masala, Wheat Flour (for dough), Oil (for frying)",
|
|
|
|
| 832 |
allergens: "Gluten"
|
| 833 |
},
|
| 834 |
"Roti": {
|
| 835 |
ingredients: "Whole Wheat Flour, Water, Salt",
|
|
|
|
| 836 |
allergens: "Gluten"
|
| 837 |
},
|
| 838 |
"Prawn Fry": {
|
| 839 |
ingredients: "Prawns, Garlic, Ginger, Chili Powder, Coriander Powder, Cumin Powder, Lemon Juice, Oil",
|
|
|
|
| 840 |
allergens: "Shellfish"
|
| 841 |
},
|
| 842 |
"Paneer Butter Masala": {
|
| 843 |
ingredients: "Paneer, Butter, Cream, Tomato Puree, Onion, Ginger, Garlic, Garam Masala",
|
|
|
|
| 844 |
allergens: "Dairy"
|
| 845 |
},
|
| 846 |
"Paneer Biryani": {
|
| 847 |
ingredients: "Paneer, Basmati Rice, Mixed Vegetables (Carrot, Peas, Potato), Onion, Tomatoes, Biryani Masala, Mint Leaves, Curd",
|
|
|
|
| 848 |
allergens: "Dairy"
|
| 849 |
},
|
| 850 |
"Onion Pakoda": {
|
| 851 |
ingredients: "Onion, Chickpea Flour (Besan), Rice Flour, Green Chilies, Cumin Seeds, Ginger, Turmeric Powder, Oil (for frying)",
|
|
|
|
| 852 |
allergens: "Gluten (if cross-contamination)"
|
| 853 |
},
|
| 854 |
"Mutton Biryani": {
|
| 855 |
ingredients: "Mutton, Basmati Rice, Onion, Tomatoes, Ginger-Garlic Paste, Biryani Masala, Mint Leaves, Yogurt, Ghee",
|
|
|
|
| 856 |
allergens: "Dairy"
|
| 857 |
},
|
| 858 |
"Fish Curry": {
|
| 859 |
ingredients: "Fish (any firm fish like Salmon or King Fish), Onion, Tomato, Ginger-Garlic Paste, Curry Leaves, Coconut Milk, Tamarind, Mustard Seeds",
|
|
|
|
| 860 |
allergens: "Fish"
|
| 861 |
},
|
| 862 |
"Fiery Mango Glaze Chicken": {
|
| 863 |
ingredients: "Chicken, Mango Puree, Chili Sauce, Soy Sauce, Honey, Garlic, Ginger, Lemon Juice",
|
|
|
|
| 864 |
allergens: "Soy"
|
| 865 |
},
|
| 866 |
"Chilli Gobi": {
|
| 867 |
ingredients: "Cauliflower, Onion, Green Chilies, Soy Sauce, Cornflour, Garlic, Ginger, Cumin Powder",
|
|
|
|
| 868 |
allergens: "Soy, Gluten"
|
| 869 |
},
|
| 870 |
"Chilli Chicken": {
|
| 871 |
ingredients: "Chicken, Bell Pepper, Onion, Green Chilies, Soy Sauce, Cornflour, Garlic, Ginger",
|
|
|
|
| 872 |
allergens: "Soy, Gluten"
|
| 873 |
},
|
| 874 |
"Chicken Manchurian": {
|
| 875 |
ingredients: "Chicken, Onion, Garlic, Ginger, Soy Sauce, Cornflour, Green Chilies, Capsicum",
|
|
|
|
| 876 |
allergens: "Soy, Gluten"
|
| 877 |
},
|
| 878 |
"Chicken Curry": {
|
| 879 |
ingredients: "Chicken, Onion, Tomatoes, Ginger-Garlic Paste, Garam Masala, Coconut Milk, Coriander Leaves",
|
|
|
|
| 880 |
allergens: "None"
|
| 881 |
},
|
| 882 |
"Chicken Biryani": {
|
| 883 |
ingredients: "Chicken, Basmati Rice, Onion, Tomatoes, Ginger-Garlic Paste, Biryani Masala, Mint Leaves, Curd",
|
|
|
|
| 884 |
allergens: "Dairy"
|
| 885 |
},
|
| 886 |
"Channa Masala": {
|
| 887 |
ingredients: "Chickpeas, Onion, Tomatoes, Ginger-Garlic Paste, Garam Masala, Coriander Powder, Cumin Seeds, Lemon Juice",
|
|
|
|
| 888 |
allergens: "None"
|
| 889 |
}
|
| 890 |
};
|
|
@@ -962,6 +957,13 @@
|
|
| 962 |
detailsDiv.innerHTML = `
|
| 963 |
<h6>Ingredients</h6>
|
| 964 |
<p>${detailsData.ingredients}</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 965 |
<h6>Allergens</h6>
|
| 966 |
<p>${detailsData.allergens}</p>
|
| 967 |
`;
|
|
@@ -1052,6 +1054,16 @@
|
|
| 1052 |
}
|
| 1053 |
document.getElementById('modal-description').innerText = description || 'No description available.';
|
| 1054 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1055 |
document.getElementById('addons-list').innerHTML = 'Loading customization options...';
|
| 1056 |
document.getElementById('modal-instructions').value = '';
|
| 1057 |
|
|
@@ -1163,6 +1175,20 @@
|
|
| 1163 |
typeOptions.innerHTML += optionHTML;
|
| 1164 |
});
|
| 1165 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1166 |
});
|
| 1167 |
}
|
| 1168 |
|
|
@@ -1684,4 +1710,4 @@
|
|
| 1684 |
});
|
| 1685 |
</script>
|
| 1686 |
</body>
|
| 1687 |
-
</html>
|
|
|
|
| 242 |
color: #343a40;
|
| 243 |
}
|
| 244 |
.addon-section .form-check {
|
| 245 |
+
display: inline-flex;
|
| 246 |
align-items: center;
|
| 247 |
margin-left: 10px;
|
|
|
|
| 248 |
color: #343a40;
|
| 249 |
}
|
| 250 |
.addon-section .form-check-input {
|
|
|
|
| 274 |
.addon-section .form-check-label {
|
| 275 |
font-size: 16px;
|
| 276 |
margin-left: 5px;
|
| 277 |
+
margin-right: 15px;
|
| 278 |
cursor: pointer;
|
| 279 |
display: inline-block;
|
| 280 |
vertical-align: middle;
|
|
|
|
| 323 |
color: #6c757d;
|
| 324 |
margin-bottom: 10px;
|
| 325 |
}
|
| 326 |
+
.modal-body .nutritional-info {
|
| 327 |
+
font-size: 12px;
|
| 328 |
+
color: #6c757d;
|
| 329 |
+
margin-bottom: 10px;
|
| 330 |
+
}
|
| 331 |
.modal-body #modal-addons h6,
|
| 332 |
.modal-body #first-row h6 {
|
| 333 |
font-size: 14px;
|
|
|
|
| 552 |
font-size: 12px;
|
| 553 |
margin-bottom: 5px;
|
| 554 |
}
|
| 555 |
+
.modal-body .nutritional-info {
|
| 556 |
+
font-size: 10px;
|
| 557 |
+
margin-bottom: 5px;
|
| 558 |
+
}
|
| 559 |
.modal-body #modal-addons h6,
|
| 560 |
.modal-body #first-row h6 {
|
| 561 |
font-size: 12px;
|
|
|
|
| 614 |
height: 18px;
|
| 615 |
font-size: 9px;
|
| 616 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 617 |
}
|
| 618 |
</style>
|
| 619 |
</head>
|
|
|
|
| 747 |
<h5 id="modal-name" class="fw-bold text-center"></h5>
|
| 748 |
<p id="modal-price" class="text-muted text-center"></p>
|
| 749 |
<p id="modal-description" class="text-secondary"></p>
|
| 750 |
+
<p class="nutritional-info" id="modal-nutritional-info"></p>
|
| 751 |
|
| 752 |
<div id="first-row">
|
| 753 |
<h6 id="first-row-title" style="display: none;">Customization Options</h6>
|
|
|
|
| 760 |
<div id="type-options"></div>
|
| 761 |
</div>
|
| 762 |
<div class="addon-section">
|
| 763 |
+
<h6>Spice Level</h6>
|
| 764 |
+
<div id="spice-level-options"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 765 |
</div>
|
| 766 |
</div>
|
| 767 |
|
|
|
|
| 794 |
const menuItemDetails = {
|
| 795 |
"Veg Manchurian": {
|
| 796 |
ingredients: "Cauliflower, Onion, Ginger, Garlic, Soy Sauce, Cornflour, Green Chilies, Capsicum, Spring Onion",
|
| 797 |
+
nutritionalInfo: { calories: 250, protein: 5, carbs: 35, fats: 12, fiber: 3, sugar: 2 },
|
| 798 |
allergens: "Soy, Gluten"
|
| 799 |
},
|
| 800 |
"Veg Biryani": {
|
| 801 |
ingredients: "Basmati Rice, Mixed Vegetables (Carrot, Peas, Potato, Cauliflower), Ginger, Garlic, Biryani Masala, Mint Leaves, Curd, Onion, Ghee",
|
| 802 |
+
nutritionalInfo: { calories: 300, protein: 6, carbs: 50, fats: 12, fiber: 5, sugar: 3 },
|
| 803 |
allergens: "Dairy"
|
| 804 |
},
|
| 805 |
"Sukka Gosht (Goat)": {
|
| 806 |
ingredients: "Goat Meat, Ginger-Garlic Paste, Green Chilies, Onion, Tomatoes, Garam Masala, Coriander Powder, Cumin Powder, Fresh Coriander",
|
| 807 |
+
nutritionalInfo: { calories: 450, protein: 35, carbs: 10, fats: 30, fiber: 2, sugar: 1 },
|
| 808 |
allergens: "None"
|
| 809 |
},
|
| 810 |
"Samosa": {
|
| 811 |
ingredients: "Potatoes, Peas, Onion, Ginger, Cumin Seeds, Garam Masala, Wheat Flour (for dough), Oil (for frying)",
|
| 812 |
+
nutritionalInfo: { calories: 150, protein: 3, carbs: 25, fats: 7, fiber: 2, sugar: 1 },
|
| 813 |
allergens: "Gluten"
|
| 814 |
},
|
| 815 |
"Roti": {
|
| 816 |
ingredients: "Whole Wheat Flour, Water, Salt",
|
| 817 |
+
nutritionalInfo: { calories: 150, protein: 4, carbs: 30, fats: 1, fiber: 3, sugar: 0 },
|
| 818 |
allergens: "Gluten"
|
| 819 |
},
|
| 820 |
"Prawn Fry": {
|
| 821 |
ingredients: "Prawns, Garlic, Ginger, Chili Powder, Coriander Powder, Cumin Powder, Lemon Juice, Oil",
|
| 822 |
+
nutritionalInfo: { calories: 350, protein: 25, carbs: 10, fats: 20, fiber: 1, sugar: 1 },
|
| 823 |
allergens: "Shellfish"
|
| 824 |
},
|
| 825 |
"Paneer Butter Masala": {
|
| 826 |
ingredients: "Paneer, Butter, Cream, Tomato Puree, Onion, Ginger, Garlic, Garam Masala",
|
| 827 |
+
nutritionalInfo: { calories: 400, protein: 15, carbs: 20, fats: 25, fiber: 2, sugar: 3 },
|
| 828 |
allergens: "Dairy"
|
| 829 |
},
|
| 830 |
"Paneer Biryani": {
|
| 831 |
ingredients: "Paneer, Basmati Rice, Mixed Vegetables (Carrot, Peas, Potato), Onion, Tomatoes, Biryani Masala, Mint Leaves, Curd",
|
| 832 |
+
nutritionalInfo: { calories: 350, protein: 12, carbs: 55, fats: 15, fiber: 4, sugar: 3 },
|
| 833 |
allergens: "Dairy"
|
| 834 |
},
|
| 835 |
"Onion Pakoda": {
|
| 836 |
ingredients: "Onion, Chickpea Flour (Besan), Rice Flour, Green Chilies, Cumin Seeds, Ginger, Turmeric Powder, Oil (for frying)",
|
| 837 |
+
nutritionalInfo: { calories: 200, protein: 5, carbs: 30, fats: 8, fiber: 3, sugar: 2 },
|
| 838 |
allergens: "Gluten (if cross-contamination)"
|
| 839 |
},
|
| 840 |
"Mutton Biryani": {
|
| 841 |
ingredients: "Mutton, Basmati Rice, Onion, Tomatoes, Ginger-Garlic Paste, Biryani Masala, Mint Leaves, Yogurt, Ghee",
|
| 842 |
+
nutritionalInfo: { calories: 500, protein: 30, carbs: 50, fats: 25, fiber: 4, sugar: 3 },
|
| 843 |
allergens: "Dairy"
|
| 844 |
},
|
| 845 |
"Fish Curry": {
|
| 846 |
ingredients: "Fish (any firm fish like Salmon or King Fish), Onion, Tomato, Ginger-Garlic Paste, Curry Leaves, Coconut Milk, Tamarind, Mustard Seeds",
|
| 847 |
+
nutritionalInfo: { calories: 300, protein: 25, carbs: 10, fats: 20, fiber: 2, sugar: 1 },
|
| 848 |
allergens: "Fish"
|
| 849 |
},
|
| 850 |
"Fiery Mango Glaze Chicken": {
|
| 851 |
ingredients: "Chicken, Mango Puree, Chili Sauce, Soy Sauce, Honey, Garlic, Ginger, Lemon Juice",
|
| 852 |
+
nutritionalInfo: { calories: 350, protein: 30, carbs: 15, fats: 18, fiber: 1, sugar: 5 },
|
| 853 |
allergens: "Soy"
|
| 854 |
},
|
| 855 |
"Chilli Gobi": {
|
| 856 |
ingredients: "Cauliflower, Onion, Green Chilies, Soy Sauce, Cornflour, Garlic, Ginger, Cumin Powder",
|
| 857 |
+
nutritionalInfo: { calories: 250, protein: 6, carbs: 35, fats: 12, fiber: 3, sugar: 2 },
|
| 858 |
allergens: "Soy, Gluten"
|
| 859 |
},
|
| 860 |
"Chilli Chicken": {
|
| 861 |
ingredients: "Chicken, Bell Pepper, Onion, Green Chilies, Soy Sauce, Cornflour, Garlic, Ginger",
|
| 862 |
+
nutritionalInfo: { calories: 400, protein: 35, carbs: 20, fats: 18, fiber: 2, sugar: 2 },
|
| 863 |
allergens: "Soy, Gluten"
|
| 864 |
},
|
| 865 |
"Chicken Manchurian": {
|
| 866 |
ingredients: "Chicken, Onion, Garlic, Ginger, Soy Sauce, Cornflour, Green Chilies, Capsicum",
|
| 867 |
+
nutritionalInfo: { calories: 350, protein: 25, carbs: 20, fats: 18, fiber: 2, sugar: 2 },
|
| 868 |
allergens: "Soy, Gluten"
|
| 869 |
},
|
| 870 |
"Chicken Curry": {
|
| 871 |
ingredients: "Chicken, Onion, Tomatoes, Ginger-Garlic Paste, Garam Masala, Coconut Milk, Coriander Leaves",
|
| 872 |
+
nutritionalInfo: { calories: 350, protein: 28, carbs: 15, fats: 12, fiber: 4, sugar: 2 },
|
| 873 |
allergens: "None"
|
| 874 |
},
|
| 875 |
"Chicken Biryani": {
|
| 876 |
ingredients: "Chicken, Basmati Rice, Onion, Tomatoes, Ginger-Garlic Paste, Biryani Masala, Mint Leaves, Curd",
|
| 877 |
+
nutritionalInfo: { calories: 500, protein: 35, carbs: 60, fats: 20, fiber: 5, sugar: 3 },
|
| 878 |
allergens: "Dairy"
|
| 879 |
},
|
| 880 |
"Channa Masala": {
|
| 881 |
ingredients: "Chickpeas, Onion, Tomatoes, Ginger-Garlic Paste, Garam Masala, Coriander Powder, Cumin Seeds, Lemon Juice",
|
| 882 |
+
nutritionalInfo: { calories: 250, protein: 10, carbs: 45, fats: 5, fiber: 6, sugar: 2 },
|
| 883 |
allergens: "None"
|
| 884 |
}
|
| 885 |
};
|
|
|
|
| 957 |
detailsDiv.innerHTML = `
|
| 958 |
<h6>Ingredients</h6>
|
| 959 |
<p>${detailsData.ingredients}</p>
|
| 960 |
+
<h6>Nutritional Info</h6>
|
| 961 |
+
<div class="nutritional-info">
|
| 962 |
+
<span>Calories: ${detailsData.nutritionalInfo.calories} kcal</span>
|
| 963 |
+
<span>Carbs: ${detailsData.nutritionalInfo.carbs}g</span>
|
| 964 |
+
<span>Protein: ${detailsData.nutritionalInfo.protein}g</span>
|
| 965 |
+
<span>Fats: ${detailsData.nutritionalInfo.fats}g</span>
|
| 966 |
+
</div>
|
| 967 |
<h6>Allergens</h6>
|
| 968 |
<p>${detailsData.allergens}</p>
|
| 969 |
`;
|
|
|
|
| 1054 |
}
|
| 1055 |
document.getElementById('modal-description').innerText = description || 'No description available.';
|
| 1056 |
|
| 1057 |
+
// Populate nutritional info
|
| 1058 |
+
const nutritionalInfoEl = document.getElementById('modal-nutritional-info');
|
| 1059 |
+
const itemDetails = menuItemDetails[name];
|
| 1060 |
+
if (itemDetails && itemDetails.nutritionalInfo) {
|
| 1061 |
+
const { calories, protein, carbs, fats, fiber, sugar } = itemDetails.nutritionalInfo;
|
| 1062 |
+
nutritionalInfoEl.innerText = `[Energy: ${calories} kcal, Protein: ${protein}g, Carbohydrates: ${carbs}g, Fiber: ${fiber}g, Fat: ${fats}g, Sugar: ${sugar}g]`;
|
| 1063 |
+
} else {
|
| 1064 |
+
nutritionalInfoEl.innerText = '[No nutritional info available.]';
|
| 1065 |
+
}
|
| 1066 |
+
|
| 1067 |
document.getElementById('addons-list').innerHTML = 'Loading customization options...';
|
| 1068 |
document.getElementById('modal-instructions').value = '';
|
| 1069 |
|
|
|
|
| 1175 |
typeOptions.innerHTML += optionHTML;
|
| 1176 |
});
|
| 1177 |
}
|
| 1178 |
+
if (addon.name.toLowerCase() === "spice level") {
|
| 1179 |
+
addon.options.forEach(option => {
|
| 1180 |
+
const optionId = `addon-spice-level-${option}`;
|
| 1181 |
+
const optionHTML = `
|
| 1182 |
+
<div class="form-check">
|
| 1183 |
+
<input type="checkbox" class="form-check-input spice-level-option" id="${optionId}" value="${option}" data-name="${option}" data-group="Spice Level">
|
| 1184 |
+
<label class="form-check-label" for="${optionId}">
|
| 1185 |
+
${option}
|
| 1186 |
+
</label>
|
| 1187 |
+
</div>
|
| 1188 |
+
`;
|
| 1189 |
+
spiceLevelOptions.innerHTML += optionHTML;
|
| 1190 |
+
});
|
| 1191 |
+
}
|
| 1192 |
});
|
| 1193 |
}
|
| 1194 |
|
|
|
|
| 1710 |
});
|
| 1711 |
</script>
|
| 1712 |
</body>
|
| 1713 |
+
</html>
|