-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsummary.html
More file actions
110 lines (90 loc) · 4.02 KB
/
summary.html
File metadata and controls
110 lines (90 loc) · 4.02 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!doctype html>
<html lang="en">
<head>
<title>Orders - Starshop</title>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<!-- bootstrap -->
<link rel="stylesheet" href="css/bootstrap-dark.css">
<link href="css/custom.css" rel="stylesheet">
<!-- icons -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
<link rel="icon" href="assets/icons/cart.png">
<!-- handlebars -->
<script src="js/handlebars.min-v4.7.8.js"></script>
<script src="js/vanilla.js"></script>
<script>
function init() {
render({}, '[type="text/x-handlebars-navbar"]')
render({}, '[type="text/x-handlebars-footer"]')
ordersString = localStorage.getItem("orders")
orders = JSON.parse(ordersString)
if (!(ordersString === null)) {
render(orders, '[type="text/x-handlebars-orders"]')
}
}
</script>
</head>
<body onload="init()">
<script id="template" type="text/x-handlebars-navbar">
{{> navbar }}
</script>
<div></div>
<script id="template" type="text/x-handlebars-orders">
{{> ordermodal }}
</script>
<div></div>
<section id="Support Card"class="bg-black py-5 star-background">
<div class="container-lg justify-content-center my-4">
<div class="row align-content-center justify-content-center">
<div class="col-lg-8">
<div class="card ">
<div class="card-body ">
<h4 class="card-title pb-4 text-center">You're orders</h4>
<script id="template" type="text/x-handlebars-orders">
{{#each this}}
<button type="button" class="btn" data-bs-toggle="modal" data-bs-target="#{{total}}-modal">
<li class="list-group-item btn-outline-dark d-flex justify-content-between lh-condensed my-1">
<div>
<h6 class="my-0 text-start">{{checkout.0.value}}{{checkout.1.value}}</h6>
<small class="text-muted">
{{checkout.3.value}}
</small>
</div>
<div class="row px-3">
<div class = "col">
<h6 class="my-0 text-light">Stars:</h6>
</div>
{{#each data}}
<div class = "col">
<h6 class="my-0 text-start">{{ProperName}}</h6>
</div>
{{/each}}
</div>
<span class="text-muted">€ {{formatCurrency total}}</span>
</li>
</button>
{{/each}}
</script>
<ul class="list-group mb-3">
</ul>
<div class="card-footer text-center ">
<a href="articles.html" class="btn btn-secondary btn-lg">Home</a>
</div>
</div>
</div>
</div>
</div>
</section>
</main>
<!-- MARK: footer
-->
<script id="template" type="text/x-handlebars-footer">
{{> footer }}
</script>
<div></div>
<!-- Bootstrap JavaScript Libraries -->
<script src="js/bootstrap.js"></script>
</body>
</html>