Spaces:
Sleeping
Sleeping
Update templates/index.html
Browse files- templates/index.html +6 -18
templates/index.html
CHANGED
@@ -3,25 +3,13 @@
|
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
-
<title>
|
7 |
-
|
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 |
-
<
|
25 |
-
|
|
|
|
|
26 |
</body>
|
27 |
</html>
|
|
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>BiryaniHub</title>
|
7 |
+
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='style.css') }}">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
</head>
|
9 |
<body>
|
10 |
+
<div class="container">
|
11 |
+
<h1>Welcome to BiryaniHub</h1>
|
12 |
+
<button onclick="window.location.href='/login'">Login</button>
|
13 |
+
</div>
|
14 |
</body>
|
15 |
</html>
|