DSatishchandra commited on
Commit
7b771cf
·
verified ·
1 Parent(s): 9e86f1c

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +4 -1
templates/index.html CHANGED
@@ -5,6 +5,7 @@
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
  <title>Food Menu Pop-Up</title>
7
  <style>
 
8
  body {
9
  font-family: Arial, sans-serif;
10
  margin: 0;
@@ -103,13 +104,14 @@
103
  </style>
104
  </head>
105
  <body>
 
106
  <div class="menu-item">
107
  <div>
108
  <h3>Samosa</h3>
109
  <p>$0.6</p>
110
  <p>Crispy fried pastry filled with spiced potatoes and peas.</p>
111
  </div>
112
- <img src="/mnt/data/image.png" alt="Samosa" class="menu-image" data-name="Samosa" data-price="$0.6" data-description="Crispy fried pastry filled with spiced potatoes and peas. Serves 1. [Energy: 200 kcal, Protein: 5g, Carbohydrates: 25g, Fiber: 3g, Fat: 10g, Sugar: 1g]">
113
  <button class="add-btn" data-name="Samosa" data-price="$0.6" data-description="Crispy fried pastry filled with spiced potatoes and peas. Serves 1. [Energy: 200 kcal, Protein: 5g, Carbohydrates: 25g, Fiber: 3g, Fat: 10g, Sugar: 1g]">Add</button>
114
  </div>
115
 
@@ -125,6 +127,7 @@
125
  </div>
126
 
127
  <script>
 
128
  const popup = document.getElementById("popup");
129
  const popupImage = document.getElementById("popup-image");
130
  const popupName = document.getElementById("popup-name");
 
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
  <title>Food Menu Pop-Up</title>
7
  <style>
8
+ /* CSS Code */
9
  body {
10
  font-family: Arial, sans-serif;
11
  margin: 0;
 
104
  </style>
105
  </head>
106
  <body>
107
+ <!-- Food Menu Items -->
108
  <div class="menu-item">
109
  <div>
110
  <h3>Samosa</h3>
111
  <p>$0.6</p>
112
  <p>Crispy fried pastry filled with spiced potatoes and peas.</p>
113
  </div>
114
+ <img src="samosa.jpg" alt="Samosa" class="menu-image" data-name="Samosa" data-price="$0.6" data-description="Crispy fried pastry filled with spiced potatoes and peas. Serves 1. [Energy: 200 kcal, Protein: 5g, Carbohydrates: 25g, Fiber: 3g, Fat: 10g, Sugar: 1g]">
115
  <button class="add-btn" data-name="Samosa" data-price="$0.6" data-description="Crispy fried pastry filled with spiced potatoes and peas. Serves 1. [Energy: 200 kcal, Protein: 5g, Carbohydrates: 25g, Fiber: 3g, Fat: 10g, Sugar: 1g]">Add</button>
116
  </div>
117
 
 
127
  </div>
128
 
129
  <script>
130
+ // JavaScript Code
131
  const popup = document.getElementById("popup");
132
  const popupImage = document.getElementById("popup-image");
133
  const popupName = document.getElementById("popup-name");