Update templates/index.html
Browse files- templates/index.html +18 -7
templates/index.html
CHANGED
@@ -3,14 +3,25 @@
|
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
-
<title>
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
</head>
|
9 |
<body>
|
10 |
-
<
|
11 |
-
|
12 |
-
<button onclick="window.location.href='/signup'">Signup</button>
|
13 |
-
<button onclick="window.location.href='/login'">Login</button>
|
14 |
-
</div>
|
15 |
</body>
|
16 |
</html>
|
|
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Welcome To Biryani Hub</title>
|
7 |
+
<script type="text/javascript">
|
8 |
+
// Get the table number from Flask
|
9 |
+
var tableNumber = "{{ table_number }}";
|
10 |
+
window.onload = function() {
|
11 |
+
// Construct the logout redirect URL with table number
|
12 |
+
let redirectURL = "https://orgfarm-cf0e6d252a-dev-ed.develop.my.salesforce-sites.com/biryanihub";
|
13 |
+
if (tableNumber) {
|
14 |
+
redirectURL += "?table=" + encodeURIComponent(tableNumber);
|
15 |
+
}
|
16 |
+
// Open the new page with the table number
|
17 |
+
window.open(redirectURL, "_blank");
|
18 |
+
// Optionally, also redirect the current tab:
|
19 |
+
// window.location.href = redirectURL;
|
20 |
+
};
|
21 |
+
</script>
|
22 |
</head>
|
23 |
<body>
|
24 |
+
<h1>Welcome To Biryani Hub.</h1>
|
25 |
+
<p>Please wait while we log in and redirect to you.</p>
|
|
|
|
|
|
|
26 |
</body>
|
27 |
</html>
|