Spaces:
Sleeping
Sleeping
Update templates/menu.html
Browse files- templates/menu.html +2 -0
templates/menu.html
CHANGED
|
@@ -1863,6 +1863,7 @@
|
|
| 1863 |
}
|
| 1864 |
}
|
| 1865 |
window.most_common_addons = {{ most_common_addons | tojson }};
|
|
|
|
| 1866 |
function showItemDetails(name, price, image, description, section, selectedCategory) {
|
| 1867 |
document.getElementById('modal-name').innerText = name;
|
| 1868 |
baseItemPrice = parseFloat(price) || 0;
|
|
@@ -1937,6 +1938,7 @@
|
|
| 1937 |
}
|
| 1938 |
});
|
| 1939 |
});
|
|
|
|
| 1940 |
if (window.most_common_addons && window.most_common_addons.length > 0) {
|
| 1941 |
const checkboxes = document.querySelectorAll('.addon-option');
|
| 1942 |
const categorySelection = {
|
|
|
|
| 1863 |
}
|
| 1864 |
}
|
| 1865 |
window.most_common_addons = {{ most_common_addons | tojson }};
|
| 1866 |
+
console.log("Most common add-ons: ", window.most_common_addons);
|
| 1867 |
function showItemDetails(name, price, image, description, section, selectedCategory) {
|
| 1868 |
document.getElementById('modal-name').innerText = name;
|
| 1869 |
baseItemPrice = parseFloat(price) || 0;
|
|
|
|
| 1938 |
}
|
| 1939 |
});
|
| 1940 |
});
|
| 1941 |
+
// Pre-select the highest-count spice level
|
| 1942 |
if (window.most_common_addons && window.most_common_addons.length > 0) {
|
| 1943 |
const checkboxes = document.querySelectorAll('.addon-option');
|
| 1944 |
const categorySelection = {
|