ai-adventure-labs/server/frontend/connect-router.js

19 lines
589 B
JavaScript

module.exports = function (req, res) {
const serverAddress = req.query.server;
res.send(`<!DOCTYPE html>
<html>
<head>
<title>Connection: ${serverAddress}</title>
<meta charset="utf-8">
</head>
<body class="bg text-white">
<div id="js-required">
<h1>Error: Javascript off</h1><hr/>
<p>Javascript is required for the site to work, enable it in your browser settings</p>
</div>
<script>
document.getElementById("js-required").innerHTML = "<p>Loading...</p>";
</script>
</body>
</html>`);
}