diff --git a/drawing-app/.DS_Store b/drawing-app/.DS_Store new file mode 100644 index 0000000..ed65599 Binary files /dev/null and b/drawing-app/.DS_Store differ diff --git a/drawing-app/index.html b/drawing-app/index.html new file mode 100644 index 0000000..740f244 --- /dev/null +++ b/drawing-app/index.html @@ -0,0 +1,12 @@ + + + + + + Time to draw 🖍 + + + +

Hello World

+ diff --git a/drawing-app/script.js b/drawing-app/script.js new file mode 100644 index 0000000..e69de29 diff --git a/drawing-app/style.css b/drawing-app/style.css new file mode 100644 index 0000000..26a6ddc --- /dev/null +++ b/drawing-app/style.css @@ -0,0 +1,10 @@ +@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;600&display=swap'); + +* { + box-sizing: border-box; +} + +body { + font-family: "Poppins", sans-serif; + margin: 0; +} diff --git a/password-generator/.DS_Store b/password-generator/.DS_Store new file mode 100644 index 0000000..ed65599 Binary files /dev/null and b/password-generator/.DS_Store differ diff --git a/password-generator/index.html b/password-generator/index.html new file mode 100644 index 0000000..366dab1 --- /dev/null +++ b/password-generator/index.html @@ -0,0 +1,12 @@ + + + + + + Let's make you a password ! + + + +

Hello World

+ diff --git a/password-generator/script.js b/password-generator/script.js new file mode 100644 index 0000000..e69de29 diff --git a/password-generator/style.css b/password-generator/style.css new file mode 100644 index 0000000..26a6ddc --- /dev/null +++ b/password-generator/style.css @@ -0,0 +1,10 @@ +@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;600&display=swap'); + +* { + box-sizing: border-box; +} + +body { + font-family: "Poppins", sans-serif; + margin: 0; +} diff --git a/recipe-app/index.html b/recipe-app/index.html index 1e51694..1b3e62b 100644 --- a/recipe-app/index.html +++ b/recipe-app/index.html @@ -21,7 +21,7 @@

Favorite Meals

-
diff --git a/recipe-app/script.js b/recipe-app/script.js index ecd5d10..11d205a 100644 --- a/recipe-app/script.js +++ b/recipe-app/script.js @@ -1,5 +1,5 @@ const meals = document.getElementById("meals"); -const favoriteContainer = document.getElementById("fav-meals"); +const favoriteContainer = document.getElementById("favorite-meals"); getRandomMeal(); fetchFavMeals(); @@ -22,16 +22,14 @@ async function getRandomMealById(id) { const respData = await resp.json(); const meal = respData.meals[0]; - // console.log("by id", respData); - return meal; } -// async function getMealsBySearch(factor) { -// const meals = await fetch( -// "https://www.themealdb.com/api/json/v1/1/search.php?s=" + factor -// ); -// } +async function getMealsBySearch(factor) { + const meals = await fetch( + "https://www.themealdb.com/api/json/v1/1/search.php?s=" + factor + ); +} //reallocating from html file function addMeal(mealData, random = false) { @@ -91,20 +89,25 @@ function removeMealsLocalStorage(mealId) { async function fetchFavMeals() { const mealIds = getMealsLocalStorage(); + // let meals = []; for (let i = 0; i < mealIds.length; i++) { const mealId = mealIds[i]; - let meal = await getRandomMealById(mealId); - console.log("meal", meal); + meal = await getRandomMealById(mealId); + + // meals.push(meal); + // console.log("meal", meal); addMealToFavs(meal); } } -//reallocating from html file +// reallocating from html file function addMealToFavs(mealData) { const favMeal = document.createElement("li"); favMeal.innerHTML = ` - ${mealData.strMeal} + ${mealData.strMeal} ${mealData.strMeal} `;