Skip to content

Commit

Permalink
Attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
uziwhoavg committed Aug 20, 2024
1 parent ee1fa3f commit dc90b2e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
33 changes: 16 additions & 17 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,23 @@ <h1>🍝 Welcome to CodeCuisine 🥖</h1>
<main>
<section id="menu">
<!-- Menu items will be dynamically generated here -->
<h2>Starters</h2>
<ul>
<li onclick="addToOrder('Garlic Bread', 30)">Garlic Bread</li>
<li onclick="addToOrder('Bruschetta', 30)">Bruschetta</li>
</ul>

<h2>Main Courses</h2>
<ul>
<li onclick="addToOrder('Margherita Pizza', 80)">Margherita Pizza</li>
<li onclick="addToOrder('Spaghetti Carbonara', 90)">Spaghetti Carabona</li>
</ul>

<h2>Desserts</h2>
<ul>
<li onclick="addToOrder('Tiramisu', 40)">Tiramasu</li>
<li onclick="addToOrder('Cheesecake', 50)">Cheescake</li>
</ul>
<h2>Starters</h2>
<ul>
<li onclick="addToOrder('Garlic Bread', 30)">Garlic Bread</li>
<li onclick="addToOrder('Bruschetta', 30)">Bruschetta</li>
</ul>

<h2>Main Courses</h2>
<ul>
<li onclick="addToOrder('Margherita Pizza', 80)">Margherita Pizza</li>
<li onclick="addToOrder('Spaghetti Carbonara', 90)">Spaghetti Carabona</li>
</ul>

<h2>Desserts</h2>
<ul>
<li onclick="addToOrder('Tiramisu', 40)">Tiramasu</li>
<li onclick="addToOrder('Cheesecake', 50)">Cheescake</li>
</ul>
</section>
<section id="order">
<h2>Your Order</h2>
Expand Down
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const menu = {
Desserts: ["Tiramisu", "Cheesecake"]
};


//function to display menu items by category
function displayMenuItems(menu) {
// Get the menu container element from the HTML
Expand Down

0 comments on commit dc90b2e

Please sign in to comment.