@@ -48,7 +48,8 @@ import {
4848 previousPage ,
4949 sendToUserInbox ,
5050 wrapper ,
51- non_picture_section
51+ non_picture_section ,
52+ menuIcon
5253} from "./js_utilities/query_selector.js" ;
5354
5455let currentCameraIndex = 0 ;
@@ -158,8 +159,6 @@ recipeButtons.forEach((button) => {
158159 console . log ( userText . value ) ;
159160 button . addEventListener ( "click" , async ( ) => {
160161 displayElements ( [ loadingContainer ] ) ;
161- // removeElements([headline, allergies, ...recipeButtons]);
162- // removeElements([non_picture_section]);
163162 removeElements ( [ mainElement ] )
164163
165164 const userRecipe = createUserRecipe ( button , dietaryRequirements , userText ) ;
@@ -177,7 +176,6 @@ recipeButtons.forEach((button) => {
177176 eventSource . close ( ) ;
178177 return ;
179178 }
180- // removeElements([headline, allergies, ...recipeButtons]);
181179 displayElements ( [ gptResponseElement ] ) ;
182180 gptResponseElement . textContent += eventData . message ;
183181 return ;
@@ -347,7 +345,7 @@ takePicture.addEventListener("click", () => {
347345} ) ;
348346
349347// Menu icon toggle
350- const menuIcon = document . querySelector ( ".menu-icon" ) ;
348+
351349
352350menuIcon . addEventListener ( "click" , ( ) => {
353351 wrapper . classList . toggle ( "change" ) ;
0 commit comments