From 82aa4f54697f86e7664d3dc9df3b5be9358ba48f Mon Sep 17 00:00:00 2001 From: Vipul Anand Date: Mon, 29 Jun 2020 03:06:16 +0530 Subject: [PATCH] minor typos --- app.js | 24 ------------------------ index.html | 19 ++++++++++++++----- 2 files changed, 14 insertions(+), 29 deletions(-) diff --git a/app.js b/app.js index fce166a..c9455cf 100644 --- a/app.js +++ b/app.js @@ -127,30 +127,6 @@ var clickedItem = document.getElementById("order"), ` //stopped using title attribute, I don't know why? console.log(itemsAvailable); -/* let cartItems = [ - -[itemsAvailable[0],dozen,"egg12",listDozen], -[itemsAvailable[1],oneTray,"oneTray",listOneTray], -[itemsAvailable[2],twoTray,"twoTray",listTwoTray], -] -*/ -// function orderManager(availableItemIndex,idStore,id,listItemHTML){ -// itemsAvailable[availableItemIndex].addEventListener('click', (e) => { -// e.preventDefault() -// orderCart.classList.remove('disabled') -// itemsAvailable[0].classList.toggle('added') -// idStore = document.getElementById(id) -// clickedItem.contains(idStore) ? -// clickedItem.removeChild(idStore) : -// clickedItem.insertAdjacentHTML('afterBegin', listItem) -// placeOrder() -// }) -// } -// cartItems.forEach(e=>{ -// orderManager.apply(null,e) -// }) -//add or remove items from the order Cart, - itemsAvailable[0].addEventListener('click', (e) => { e.preventDefault() orderCart.classList.remove('disabled') diff --git a/index.html b/index.html index 87a3a5a..3faaad0 100644 --- a/index.html +++ b/index.html @@ -83,8 +83,11 @@

Eggs

  • - - + + + + + @@ -179,8 +182,13 @@

    Seasonal Vegetables

    -
  • -
  • +
  • + + + +
  • +
  • + @@ -195,7 +203,8 @@

    Seasonal Vegetables

    -
  • + +