Skip to content

Commit cdb238e

Browse files
committed
publish website
1 parent 8bd71f1 commit cdb238e

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

website_node/public/index.html

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,31 @@
33
<head>
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>ESK Website - Redirecting</title>
67
<link rel="stylesheet" href="./assets/css/index.css" />
78

89
<script>
910
// Redirect to one page by default
1011
window.onload = function() {
11-
window.location.href = "./pages/esk.html";
12+
// Optional: add a small delay so users can see the message
13+
setTimeout(function() {
14+
window.location.href = "./pages/esk.html";
15+
}, 1000); // 1 second delay
1216
}
1317
</script>
14-
<script type="module" src="https://static.rocket.new/rocket-web.js?_cfg=https%3A%2F%2Fandysapp4824back.builtwithrocket.new&_be=https%3A%2F%2Fapplication.rocket.new&_v=0.1.8"></script>
1518
</head>
1619
<body class="bg-background">
1720
<div class="min-h-screen flex items-center justify-center">
1821
<div class="text-center">
1922
<h1 class="text-2xl font-semibold text-text-primary">Redirecting...</h1>
2023
<p class="mt-2 text-text-secondary">Please wait while we redirect you to a page.</p>
2124
<div class="mt-4">
22-
<p class="text-text-secondary">If you are not redirected automatically, please choose a page:</p>
25+
<p class="text-text-secondary">If you are not redirected automatically, please choose a page:</p>
2326
<div class="mt-2 space-y-2">
24-
<a href="./pages/esk.html" class="block px-4 py-2 bg-primary text-white rounded-md hover:bg-primary-hover transition-colors">esk</a>
25-
</div>
27+
<a href="./pages/esk.html" class="block px-4 py-2 bg-primary text-white rounded-md hover:bg-primary-hover transition-colors">esk</a>
28+
</div>
2629
</div>
2730
</div>
2831
</div>
29-
3032
</body>
31-
</html>
33+
</html>

website_node/server.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ app.get('/dataset', (req, res) => {
5050
res.sendFile(path.join(__dirname, 'public/pages/esk.html'));
5151
});
5252

53-
// (Removed server-side redirect from /pages/esk.html to /dataset)
54-
// This lets client-side navigation from index.html to ./pages/esk.html keep
55-
// the URL as /pages/esk.html instead of being redirected to /dataset.
5653

5754
// 404 handler
5855
app.use((req, res) => {

0 commit comments

Comments
 (0)