-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.html
49 lines (49 loc) · 1.83 KB
/
example.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Basket test</title>
<link href="https://cdn.jsdelivr.net/npm/remixicon@2.5.0/fonts/remixicon.css" rel="stylesheet" />
</head>
<body>
<div id="root">
<!-- ------------------------------- basket -------------------------------- -->
<div id="basket">
<h1>Basket</h1>
<p>Number of products in the basket <span id="nbrProducts"></span></p>
<p>Number of product type in the basket:<span id="nbrTotalProducts"></span></p>
<ul id="listProducts">
<li><span class="productName"></span><span class="productQuantity"></span><span class="productOpts"></span><span class="productPrice"></span></li>
</ul>
<p id="totalPriceProducts"></p>
</div>
<!-- ------------------------------ products ------------------------------- -->
<h2>Products</h2>
<button id="clearbasket" >clear basket</button>
<button
class="addBasket"
data-id="prod-1"
data-name="Flour of corn"
data-price="12.12"
data-opts='{"¤delivered":"4 days","color":"green"}'
>Flour</button>
<button data-id="prod-1" class="remBasket">remove</button>
<button
class="addBasket"
data-id="prod-2"
data-name="honey best quality"
data-price="3.33"
data-opts='{"¤delivered":"Immediatly","color":"red"}'
>honey</button>
<button data-id="prod-2" class="remBasket">remove</button>
<button
class="addBasket"
data-id="prod-3"
data-name="wine bordeaux 2016"
data-price="1.11"
data-opts='{"¤warning":"allergen sulfite","¤color":"purple"}'
>wine</button>
<button data-id="prod-3" class="remBasket">remove</button>
</div>
</body>
</html>