eagler fix + ai work

This commit is contained in:
sky 2024-09-26 07:00:39 -04:00
parent 7ff85e16ba
commit a1b20a46e2
2 changed files with 12 additions and 9 deletions

View File

@ -612,14 +612,17 @@ div.played-game img {
position: absolute; position: absolute;
left: 2%; left: 2%;
} }
chat { #chat {
width: 90%; width: 90%;
background-color: var(--uibg); background-color: var(--uibg);
display: flex;
height: 85vh; height: 85vh;
}
#messages {
align-items: end; align-items: end;
flex-direction: column-reverse; flex-direction: column;
overflow: scroll; overflow: scroll;
height: 90%;
display: flex;
} }
message { message {
width: calc(100% - 20px); width: calc(100% - 20px);
@ -634,15 +637,12 @@ message.user {
message.bot { message.bot {
justify-self: right; justify-self: right;
} }
input.chatbox { #chatbox {
width: calc(100% - 20px); width: calc(100% - 20px);
} }
.messagebox { .messagebox {
width: 100%; width: 100%;
} height: 10%;
.sendmsg {
position: absolute;
padding: calc(3vw - 20px);
} }
@keyframes toastFade { @keyframes toastFade {
0% { 0% {

View File

@ -12,6 +12,7 @@
<meta property="og:description" content="Play minecraft 1.8 in your browser" /> <meta property="og:description" content="Play minecraft 1.8 in your browser" />
<meta property="og:image" content="favicon.png" /> <meta property="og:image" content="favicon.png" />
<link type="image/png" rel="shortcut icon" href="favicon.png" /> <link type="image/png" rel="shortcut icon" href="favicon.png" />
<script src="/js/all.min.js"></script>
<script type="text/javascript" src="classes.js"></script> <script type="text/javascript" src="classes.js"></script>
<script type="text/javascript"> <script type="text/javascript">
"use strict"; "use strict";
@ -30,7 +31,9 @@
localesURI: "lang/", localesURI: "lang/",
worldsDB: "worlds", worldsDB: "worlds",
servers: [ servers: [
/* example: { addr: "ws://localhost:8081/", name: "Local test server" } */ { addr: (location.protocol.includes("s") ? "wss": "ws") + "://" + location.host + "/mc", name: "§b§lEthereal",hideAddress:true},
{ addr: "wss://ethereal.mov", name: "§b§lEthereal§r§8§o (backup)",hideAddress:true}
], ],
relays: [ relays: [
{ addr: "wss://relay.deev.is/", comment: "lax1dude relay #1", primary: relayId == 0 }, { addr: "wss://relay.deev.is/", comment: "lax1dude relay #1", primary: relayId == 0 },