2021-02-27 17:12:11 -05:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2021-02-27 18:18:58 -05:00
|
|
|
<title>Prismarine Web Client</title>
|
2021-02-27 17:12:11 -05:00
|
|
|
<style type="text/css">
|
2021-02-27 18:58:21 -05:00
|
|
|
@font-face {
|
|
|
|
font-family: minecraft;
|
|
|
|
src: url(minecraftia.woff);
|
|
|
|
}
|
2021-02-28 11:33:56 -05:00
|
|
|
@font-face {
|
|
|
|
font-family: mojangles;
|
|
|
|
src: url(mojangles.ttf);
|
|
|
|
}
|
2021-02-27 17:12:11 -05:00
|
|
|
html {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
html, body {
|
|
|
|
height: 100%;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
canvas {
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
font-size: 0;
|
|
|
|
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
2021-02-27 18:18:58 -05:00
|
|
|
.chat-wrapper {
|
|
|
|
position: fixed;
|
|
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-display-wrapper {
|
|
|
|
bottom: calc(8px * 16);
|
|
|
|
padding: 4px;
|
|
|
|
max-height: calc(90px * 8);
|
|
|
|
width: calc(320px * 4);
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-input-wrapper {
|
|
|
|
bottom: calc(2px * 16);
|
|
|
|
width: 100%;
|
2021-02-27 19:02:50 -05:00
|
|
|
overflow: hidden;
|
2021-02-27 18:18:58 -05:00
|
|
|
background-color: rgba(0, 0, 0, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat {
|
2021-02-27 19:02:50 -05:00
|
|
|
overflow: hidden;
|
2021-02-27 18:18:58 -05:00
|
|
|
color: white;
|
|
|
|
font-size: 32px;
|
|
|
|
margin: 0px;
|
|
|
|
line-height: 100%;
|
|
|
|
text-shadow: 4px 4px 0px #3f3f3f;
|
2021-02-28 11:33:56 -05:00
|
|
|
font-family: mojangles, minecraft, monospace;
|
2021-02-27 18:18:58 -05:00
|
|
|
width: 100%;
|
|
|
|
max-height: calc(90px * 8)
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type=text] {
|
|
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
|
|
}
|
|
|
|
li {
|
|
|
|
display: block;
|
|
|
|
}
|
2021-02-28 21:31:30 -05:00
|
|
|
#crosshair {
|
|
|
|
image-rendering: pixelated;
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
|
|
|
height: calc(256px * 4);
|
|
|
|
width: calc(256px * 4);
|
|
|
|
transform: translate(calc(-50% + 120px * 4), calc(-50% + 120px * 4));
|
|
|
|
clip-path: inset(0px calc(240px * 4) calc(240px * 4) 0px);
|
|
|
|
}
|
2021-02-27 17:12:11 -05:00
|
|
|
</style>
|
|
|
|
</head>
|
2021-02-28 21:31:30 -05:00
|
|
|
<body onclick="this.requestFullscreen()">
|
|
|
|
<img id="crosshair" src="textures/icons.png">
|
|
|
|
<div class="chat-wrapper chat-display-wrapper">
|
2021-02-27 18:18:58 -05:00
|
|
|
<div class="chat" id="chat">
|
|
|
|
<p>Welcome to prismarine-web-client! Chat appears here.</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="chat-wrapper chat-input-wrapper">
|
|
|
|
<div class="chat" id="chat-input">
|
|
|
|
<input type="text" class="chat" id="chatinput"></input>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-02-27 17:12:11 -05:00
|
|
|
<script type="text/javascript" src="index.js"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|