Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
andreimaier committed Oct 31, 2023
1 parent 19d4e34 commit 0dd3f06
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Food-Recipe/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Constants and Global Variables

const API_KEY = "c0ceab46e0msh0eadabf65682e61p12dd5ejsnbcab6b2c9a32";
const API_KEY = "0b5f2a4987msh1c05fadf2f97fc1p130d44jsn94374ebd2b70";
const RATE_LIMIT = 5; // Requests per second
let responseCount = 0;
const fetchQueue = [];
Expand Down Expand Up @@ -280,10 +280,10 @@ function createInfoSection(yields, cookTime) {

const servings = createSubheading(yields);
const timeInfo = createSubheading('Cooking Time:', cookTime);
info.appendChild(servings[0]);
info.appendChild(timeInfo[0]);
info.appendChild(timeInfo[1]);

info.appendChild(servings[0]);
info.appendChild(timeInfo[0]);
info.appendChild(timeInfo[1]);

return info;
}
Expand All @@ -301,7 +301,7 @@ function createSubheading(title, text) {
}

function createIngredients(description) {
const ingredientsContainer = document.createElement('div');
const ingredientsContainer = document.createElement('div');

const ingredientsTitle = document.createElement('h4');
ingredientsTitle.textContent = 'Ingredients';
Expand All @@ -312,7 +312,7 @@ function createIngredients(description) {
ingredientsContainer.appendChild(ingredientsTitle);
ingredientsContainer.appendChild(ingredientsText);

return ingredientsContainer;
return ingredientsContainer;
}

function createInstructions(instructionsTag) {
Expand Down

0 comments on commit 0dd3f06

Please sign in to comment.