mirror of
https://github.com/hexahigh/games.git
synced 2025-12-11 20:15:38 +01:00
fix?
This commit is contained in:
parent
787b00bf8c
commit
7f1bdd6937
@ -1,20 +1,66 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title>Socket.IO chat</title>
|
<title>Socket.IO chat</title>
|
||||||
<style>
|
<style>
|
||||||
body { margin: 0; padding-bottom: 3rem; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
|
body {
|
||||||
|
margin: 0;
|
||||||
|
padding-bottom: 3rem;
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
#form { background: rgba(0, 0, 0, 0.15); padding: 0.25rem; position: fixed; bottom: 0; left: 0; right: 0; display: flex; height: 3rem; box-sizing: border-box; backdrop-filter: blur(10px); }
|
#form {
|
||||||
#input { border: none; padding: 0 1rem; flex-grow: 1; border-radius: 2rem; margin: 0.25rem; }
|
background: rgba(0, 0, 0, 0.15);
|
||||||
#input:focus { outline: none; }
|
padding: 0.25rem;
|
||||||
#form > button { background: #333; border: none; padding: 0 1rem; margin: 0.25rem; border-radius: 3px; outline: none; color: #fff; }
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
display: flex;
|
||||||
|
height: 3rem;
|
||||||
|
box-sizing: border-box;
|
||||||
|
backdrop-filter: blur(10px);
|
||||||
|
}
|
||||||
|
|
||||||
#messages { list-style-type: none; margin: 0; padding: 0; }
|
#input {
|
||||||
#messages > li { padding: 0.5rem 1rem; }
|
border: none;
|
||||||
#messages > li:nth-child(odd) { background: #efefef; }
|
padding: 0 1rem;
|
||||||
|
flex-grow: 1;
|
||||||
|
border-radius: 2rem;
|
||||||
|
margin: 0.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#input:focus {
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#form>button {
|
||||||
|
background: #333;
|
||||||
|
border: none;
|
||||||
|
padding: 0 1rem;
|
||||||
|
margin: 0.25rem;
|
||||||
|
border-radius: 3px;
|
||||||
|
outline: none;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#messages {
|
||||||
|
list-style-type: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#messages>li {
|
||||||
|
padding: 0.5rem 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#messages>li:nth-child(odd) {
|
||||||
|
background: #efefef;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<ul id="messages"></ul>
|
<ul id="messages"></ul>
|
||||||
<form id="form" action="">
|
<form id="form" action="">
|
||||||
@ -23,7 +69,9 @@
|
|||||||
<script src="socket.io.js"></script>
|
<script src="socket.io.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var socket = io();
|
const socket = io("http://de2.bot-hosting.net:6194", {
|
||||||
|
path: "/socket.io/"
|
||||||
|
});
|
||||||
|
|
||||||
var messages = document.getElementById('messages');
|
var messages = document.getElementById('messages');
|
||||||
var form = document.getElementById('form');
|
var form = document.getElementById('form');
|
||||||
@ -45,4 +93,5 @@
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
@ -142,7 +142,7 @@ function lookup(uri, opts) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
opts = opts || {};
|
opts = opts || {};
|
||||||
var parsed = url_1.url(uri, opts.path || "http://de2.bot-hosting.net:6194/socket.io");
|
var parsed = url_1.url(uri, opts.path || "/socket.io");
|
||||||
var source = parsed.source;
|
var source = parsed.source;
|
||||||
var id = parsed.id;
|
var id = parsed.id;
|
||||||
var path = parsed.path;
|
var path = parsed.path;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user