Update templates/menu.html
Browse files- templates/menu.html +0 -45
templates/menu.html
CHANGED
@@ -323,11 +323,6 @@
|
|
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,10 +547,6 @@
|
|
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;
|
@@ -763,7 +754,6 @@
|
|
763 |
<h5 id="modal-name" class="fw-bold text-center"></h5>
|
764 |
<p id="modal-price" class="text-muted text-center"></p>
|
765 |
<p id="modal-description" class="text-secondary"></p>
|
766 |
-
<p class="nutritional-info" id="modal-nutritional-info"></p>
|
767 |
|
768 |
<div id="first-row">
|
769 |
<h6 id="first-row-title" style="display: none;">Customization Options</h6>
|
@@ -827,92 +817,74 @@
|
|
827 |
const menuItemDetails = {
|
828 |
"Veg Manchurian": {
|
829 |
ingredients: "Cauliflower, Onion, Ginger, Garlic, Soy Sauce, Cornflour, Green Chilies, Capsicum, Spring Onion",
|
830 |
-
nutritionalInfo: { calories: 250, protein: 5, carbs: 35, fats: 12, fiber: 3, sugar: 2 },
|
831 |
allergens: "Soy, Gluten"
|
832 |
},
|
833 |
"Veg Biryani": {
|
834 |
ingredients: "Basmati Rice, Mixed Vegetables (Carrot, Peas, Potato, Cauliflower), Ginger, Garlic, Biryani Masala, Mint Leaves, Curd, Onion, Ghee",
|
835 |
-
nutritionalInfo: { calories: 300, protein: 6, carbs: 50, fats: 12, fiber: 5, sugar: 3 },
|
836 |
allergens: "Dairy"
|
837 |
},
|
838 |
"Sukka Gosht (Goat)": {
|
839 |
ingredients: "Goat Meat, Ginger-Garlic Paste, Green Chilies, Onion, Tomatoes, Garam Masala, Coriander Powder, Cumin Powder, Fresh Coriander",
|
840 |
-
nutritionalInfo: { calories: 450, protein: 35, carbs: 10, fats: 30, fiber: 2, sugar: 1 },
|
841 |
allergens: "None"
|
842 |
},
|
843 |
"Samosa": {
|
844 |
ingredients: "Potatoes, Peas, Onion, Ginger, Cumin Seeds, Garam Masala, Wheat Flour (for dough), Oil (for frying)",
|
845 |
-
nutritionalInfo: { calories: 150, protein: 3, carbs: 25, fats: 7, fiber: 2, sugar: 1 },
|
846 |
allergens: "Gluten"
|
847 |
},
|
848 |
"Roti": {
|
849 |
ingredients: "Whole Wheat Flour, Water, Salt",
|
850 |
-
nutritionalInfo: { calories: 150, protein: 4, carbs: 30, fats: 1, fiber: 3, sugar: 0 },
|
851 |
allergens: "Gluten"
|
852 |
},
|
853 |
"Prawn Fry": {
|
854 |
ingredients: "Prawns, Garlic, Ginger, Chili Powder, Coriander Powder, Cumin Powder, Lemon Juice, Oil",
|
855 |
-
nutritionalInfo: { calories: 350, protein: 25, carbs: 10, fats: 20, fiber: 1, sugar: 1 },
|
856 |
allergens: "Shellfish"
|
857 |
},
|
858 |
"Paneer Butter Masala": {
|
859 |
ingredients: "Paneer, Butter, Cream, Tomato Puree, Onion, Ginger, Garlic, Garam Masala",
|
860 |
-
nutritionalInfo: { calories: 400, protein: 15, carbs: 20, fats: 25, fiber: 2, sugar: 3 },
|
861 |
allergens: "Dairy"
|
862 |
},
|
863 |
"Paneer Biryani": {
|
864 |
ingredients: "Paneer, Basmati Rice, Mixed Vegetables (Carrot, Peas, Potato), Onion, Tomatoes, Biryani Masala, Mint Leaves, Curd",
|
865 |
-
nutritionalInfo: { calories: 350, protein: 12, carbs: 55, fats: 15, fiber: 4, sugar: 3 },
|
866 |
allergens: "Dairy"
|
867 |
},
|
868 |
"Onion Pakoda": {
|
869 |
ingredients: "Onion, Chickpea Flour (Besan), Rice Flour, Green Chilies, Cumin Seeds, Ginger, Turmeric Powder, Oil (for frying)",
|
870 |
-
nutritionalInfo: { calories: 200, protein: 5, carbs: 30, fats: 8, fiber: 3, sugar: 2 },
|
871 |
allergens: "Gluten (if cross-contamination)"
|
872 |
},
|
873 |
"Mutton Biryani": {
|
874 |
ingredients: "Mutton, Basmati Rice, Onion, Tomatoes, Ginger-Garlic Paste, Biryani Masala, Mint Leaves, Yogurt, Ghee",
|
875 |
-
nutritionalInfo: { calories: 500, protein: 30, carbs: 50, fats: 25, fiber: 4, sugar: 3 },
|
876 |
allergens: "Dairy"
|
877 |
},
|
878 |
"Fish Curry": {
|
879 |
ingredients: "Fish (any firm fish like Salmon or King Fish), Onion, Tomato, Ginger-Garlic Paste, Curry Leaves, Coconut Milk, Tamarind, Mustard Seeds",
|
880 |
-
nutritionalInfo: { calories: 300, protein: 25, carbs: 10, fats: 20, fiber: 2, sugar: 1 },
|
881 |
allergens: "Fish"
|
882 |
},
|
883 |
"Fiery Mango Glaze Chicken": {
|
884 |
ingredients: "Chicken, Mango Puree, Chili Sauce, Soy Sauce, Honey, Garlic, Ginger, Lemon Juice",
|
885 |
-
nutritionalInfo: { calories: 350, protein: 30, carbs: 15, fats: 18, fiber: 1, sugar: 5 },
|
886 |
allergens: "Soy"
|
887 |
},
|
888 |
"Chilli Gobi": {
|
889 |
ingredients: "Cauliflower, Onion, Green Chilies, Soy Sauce, Cornflour, Garlic, Ginger, Cumin Powder",
|
890 |
-
nutritionalInfo: { calories: 250, protein: 6, carbs: 35, fats: 12, fiber: 3, sugar: 2 },
|
891 |
allergens: "Soy, Gluten"
|
892 |
},
|
893 |
"Chilli Chicken": {
|
894 |
ingredients: "Chicken, Bell Pepper, Onion, Green Chilies, Soy Sauce, Cornflour, Garlic, Ginger",
|
895 |
-
nutritionalInfo: { calories: 400, protein: 35, carbs: 20, fats: 18, fiber: 2, sugar: 2 },
|
896 |
allergens: "Soy, Gluten"
|
897 |
},
|
898 |
"Chicken Manchurian": {
|
899 |
ingredients: "Chicken, Onion, Garlic, Ginger, Soy Sauce, Cornflour, Green Chilies, Capsicum",
|
900 |
-
nutritionalInfo: { calories: 350, protein: 25, carbs: 20, fats: 18, fiber: 2, sugar: 2 },
|
901 |
allergens: "Soy, Gluten"
|
902 |
},
|
903 |
"Chicken Curry": {
|
904 |
ingredients: "Chicken, Onion, Tomatoes, Ginger-Garlic Paste, Garam Masala, Coconut Milk, Coriander Leaves",
|
905 |
-
nutritionalInfo: { calories: 350, protein: 28, carbs: 15, fats: 12, fiber: 4, sugar: 2 },
|
906 |
allergens: "None"
|
907 |
},
|
908 |
"Chicken Biryani": {
|
909 |
ingredients: "Chicken, Basmati Rice, Onion, Tomatoes, Ginger-Garlic Paste, Biryani Masala, Mint Leaves, Curd",
|
910 |
-
nutritionalInfo: { calories: 500, protein: 35, carbs: 60, fats: 20, fiber: 5, sugar: 3 },
|
911 |
allergens: "Dairy"
|
912 |
},
|
913 |
"Channa Masala": {
|
914 |
ingredients: "Chickpeas, Onion, Tomatoes, Ginger-Garlic Paste, Garam Masala, Coriander Powder, Cumin Seeds, Lemon Juice",
|
915 |
-
nutritionalInfo: { calories: 250, protein: 10, carbs: 45, fats: 5, fiber: 6, sugar: 2 },
|
916 |
allergens: "None"
|
917 |
}
|
918 |
};
|
@@ -990,13 +962,6 @@
|
|
990 |
detailsDiv.innerHTML = `
|
991 |
<h6>Ingredients</h6>
|
992 |
<p>${detailsData.ingredients}</p>
|
993 |
-
<h6>Nutritional Info</h6>
|
994 |
-
<div class="nutritional-info">
|
995 |
-
<span>Calories: ${detailsData.nutritionalInfo.calories} kcal</span>
|
996 |
-
<span>Carbs: ${detailsData.nutritionalInfo.carbs}g</span>
|
997 |
-
<span>Protein: ${detailsData.nutritionalInfo.protein}g</span>
|
998 |
-
<span>Fats: ${detailsData.nutritionalInfo.fats}g</span>
|
999 |
-
</div>
|
1000 |
<h6>Allergens</h6>
|
1001 |
<p>${detailsData.allergens}</p>
|
1002 |
`;
|
@@ -1087,16 +1052,6 @@
|
|
1087 |
}
|
1088 |
document.getElementById('modal-description').innerText = description || 'No description available.';
|
1089 |
|
1090 |
-
// Populate nutritional info
|
1091 |
-
const nutritionalInfoEl = document.getElementById('modal-nutritional-info');
|
1092 |
-
const itemDetails = menuItemDetails[name];
|
1093 |
-
if (itemDetails && itemDetails.nutritionalInfo) {
|
1094 |
-
const { calories, protein, carbs, fats, fiber, sugar } = itemDetails.nutritionalInfo;
|
1095 |
-
nutritionalInfoEl.innerText = `[Energy: ${calories} kcal, Protein: ${protein}g, Carbohydrates: ${carbs}g, Fiber: ${fiber}g, Fat: ${fats}g, Sugar: ${sugar}g]`;
|
1096 |
-
} else {
|
1097 |
-
nutritionalInfoEl.innerText = '[No nutritional info available.]';
|
1098 |
-
}
|
1099 |
-
|
1100 |
document.getElementById('addons-list').innerHTML = 'Loading customization options...';
|
1101 |
document.getElementById('modal-instructions').value = '';
|
1102 |
|
|
|
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 |
font-size: 12px;
|
548 |
margin-bottom: 5px;
|
549 |
}
|
|
|
|
|
|
|
|
|
550 |
.modal-body #modal-addons h6,
|
551 |
.modal-body #first-row h6 {
|
552 |
font-size: 12px;
|
|
|
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>
|
|
|
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 |
detailsDiv.innerHTML = `
|
963 |
<h6>Ingredients</h6>
|
964 |
<p>${detailsData.ingredients}</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
965 |
<h6>Allergens</h6>
|
966 |
<p>${detailsData.allergens}</p>
|
967 |
`;
|
|
|
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 |
|