From d8ed4d24a8120dcc0412c3cc0fb32efc3498a9e9 Mon Sep 17 00:00:00 2001 From: Gavyn Ezell <72951570+gavyn-ezell@users.noreply.github.com> Date: Tue, 8 Nov 2022 15:57:02 -0800 Subject: [PATCH] started review cards, form change --- index.html | 8 +- source/assets/scripts/RecipeCard.js | 180 ---------------------------- source/assets/scripts/ReviewCard.js | 155 ++++++++++++++++++++++++ source/assets/scripts/main.js | 77 +++--------- source/reviews.json | 9 ++ 5 files changed, 188 insertions(+), 241 deletions(-) delete mode 100644 source/assets/scripts/RecipeCard.js create mode 100644 source/assets/scripts/ReviewCard.js create mode 100644 source/reviews.json diff --git a/index.html b/index.html index 49445be..d8c205a 100644 --- a/index.html +++ b/index.html @@ -8,11 +8,13 @@ Food Journal - + + +
@@ -32,6 +34,7 @@
+ Meal: /* TODO: change parameters */
@@ -62,6 +66,7 @@ +
Other Info: @@ -77,6 +82,7 @@ Tags: +
diff --git a/source/assets/scripts/RecipeCard.js b/source/assets/scripts/RecipeCard.js deleted file mode 100644 index a677861..0000000 --- a/source/assets/scripts/RecipeCard.js +++ /dev/null @@ -1,180 +0,0 @@ -// RecipeCard.js - -class RecipeCard extends HTMLElement { - // Called once when document.createElement('recipe-card') is called, or - // the element is written into the DOM directly as - constructor() { - super(); // Inheret everything from HTMLElement - - // EXPOSE - START (All expose numbers start with A) - // A1. TODO - Attach the shadow DOM to this Web Component (leave the mode open) - let shadowEl = this.attachShadow({mode:'open'}); - // A2. TODO - Create an
element - This will hold our markup once our data is set - let articleEl = document.createElement('article'); - // A3. TODO - Create a style element - This will hold all of the styles for the Web Component - let styleEl = document.createElement('style'); - // A4. TODO - Insert all of the styles from cardTemplate.html into the