Spaces:
Sleeping
Sleeping
Update static/script.js
Browse files- static/script.js +7 -7
static/script.js
CHANGED
|
@@ -134,13 +134,6 @@ function displayIngredientsList(ingredients) {
|
|
| 134 |
item.appendChild(button);
|
| 135 |
ingredientsList.appendChild(item);
|
| 136 |
});
|
| 137 |
-
|
| 138 |
-
// Add Send button
|
| 139 |
-
const sendButton = document.createElement('button');
|
| 140 |
-
sendButton.textContent = 'Send';
|
| 141 |
-
sendButton.className = 'send-button';
|
| 142 |
-
sendButton.onclick = sendSelectedIngredients;
|
| 143 |
-
ingredientsList.appendChild(sendButton);
|
| 144 |
}
|
| 145 |
|
| 146 |
function displaySelectedIngredients() {
|
|
@@ -163,6 +156,13 @@ function displaySelectedIngredients() {
|
|
| 163 |
div.textContent = ingredient.name;
|
| 164 |
selectedArea.appendChild(div);
|
| 165 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 166 |
}
|
| 167 |
|
| 168 |
function displayOptions(options) {
|
|
|
|
| 134 |
item.appendChild(button);
|
| 135 |
ingredientsList.appendChild(item);
|
| 136 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 137 |
}
|
| 138 |
|
| 139 |
function displaySelectedIngredients() {
|
|
|
|
| 156 |
div.textContent = ingredient.name;
|
| 157 |
selectedArea.appendChild(div);
|
| 158 |
});
|
| 159 |
+
|
| 160 |
+
// Add Send button below selected ingredients
|
| 161 |
+
const sendButton = document.createElement('button');
|
| 162 |
+
sendButton.textContent = 'Send';
|
| 163 |
+
sendButton.className = 'send-button';
|
| 164 |
+
sendButton.onclick = sendSelectedIngredients;
|
| 165 |
+
selectedArea.appendChild(sendButton);
|
| 166 |
}
|
| 167 |
|
| 168 |
function displayOptions(options) {
|