Skip to content

Commit

Permalink
chat and more stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
silvereengames committed Aug 22, 2024
1 parent eeee652 commit 24eb969
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 207 deletions.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const app = express();

app.use(express.static("./public"));
app.use("/uv/", express.static(uvPath));
app.use("/chat", express.static('./public/chat.html'));
app.use("/dynamic/", express.static(dynamicPath));
app.use(
'/cdn',
Expand Down Expand Up @@ -55,7 +56,7 @@ server.on("upgrade", (req, socket, head) => {

let port = parseInt(process.env.PORT || "");

if (isNaN(port)) port = 8080;
if (isNaN(port)) port = 2002;

server.on("listening", () => {
const address = server.address();
Expand Down
204 changes: 0 additions & 204 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions public/chat.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
margin: 0;
overflow-y: none;
}

iframe {
border: none;
margin: 0;
overflow-y: none;
}
</style>
<title>Elliptical - Chatting Platform</title>
</head>

<body>
<iframe src="/service/uv/hvtrs8%2F-enlkpviaan.qinvgrgel.lev" id="iframe" style="width: 100%; height: 100vh;">Could not
load</iframe>
<script src="/assets/js/cloak.js"></script>
<script>
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
const admin = urlParams.get('admin')
if (admin == 'true') {
document.getElementById('iframe').src = '/service/uv/hvtrs8%2F-enlkpviaan.qinvgrgel.lev%2Fcdoil';
}
</script>
</body>

</html>
4 changes: 2 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@
<li><a href="/games.html">Games</a></li>
<li><a href="./search">Search</a></li>
<li><a href="./settings">Settings</a></li>
<li><a href="/forum">Forum</a></li>
<li><a href="/chat">Chat</a></li>
</div>
</div>
<div class="container">
<h1>Moonlight 4.0</h1>
<div class="btns">
<a href="games.html">Games</a>
<a href="./search">Search</a>
<a href="/forum">Forum</a>
<a href="/chat">Chat</a>
</div>
<div class="time" id="time-clock">Time</div>
</div>
Expand Down

0 comments on commit 24eb969

Please sign in to comment.