Spaces:
Sleeping
Sleeping
Create final_order.html
Browse files- final_order.html +43 -0
final_order.html
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Final Order</title>
|
| 7 |
+
<style>
|
| 8 |
+
body {
|
| 9 |
+
font-family: Arial, sans-serif;
|
| 10 |
+
margin: 20px;
|
| 11 |
+
}
|
| 12 |
+
.order-summary {
|
| 13 |
+
padding: 15px;
|
| 14 |
+
border: 1px solid #ddd;
|
| 15 |
+
border-radius: 8px;
|
| 16 |
+
background-color: #f9f9f9;
|
| 17 |
+
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
|
| 18 |
+
}
|
| 19 |
+
</style>
|
| 20 |
+
</head>
|
| 21 |
+
<body>
|
| 22 |
+
<div class="order-summary">
|
| 23 |
+
<h2>Final Order Summary</h2>
|
| 24 |
+
<div id="order-details"></div>
|
| 25 |
+
<button onclick="goBack()">Go Back to Menu</button>
|
| 26 |
+
</div>
|
| 27 |
+
|
| 28 |
+
<script>
|
| 29 |
+
// Retrieve the final order summary from session storage
|
| 30 |
+
const summary = sessionStorage.getItem('finalOrderSummary');
|
| 31 |
+
if (summary) {
|
| 32 |
+
document.getElementById('order-details').innerHTML = summary;
|
| 33 |
+
} else {
|
| 34 |
+
document.getElementById('order-details').innerHTML = "<p>No order found.</p>";
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
// Go back to the menu page
|
| 38 |
+
function goBack() {
|
| 39 |
+
window.location.href = "/index.html"; // Ensure this is the menu page
|
| 40 |
+
}
|
| 41 |
+
</script>
|
| 42 |
+
</body>
|
| 43 |
+
</html>
|