207 lines
4.9 KiB
HTML
207 lines
4.9 KiB
HTML
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="author" content="Thayol">
|
|
<script type="importmap">
|
|
{
|
|
"imports": {
|
|
"three": "/three/build/three.module.js",
|
|
"three/addons/": "/three/examples/jsm/",
|
|
"@tweenjs/tween.js": "/@tweenjs/tween.js/dist/tween.esm.js",
|
|
"stats.js": "/stats.js/src/stats.js"
|
|
}
|
|
}
|
|
</script>
|
|
<style>
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
font-family: sans-serif;
|
|
}
|
|
|
|
html, body {
|
|
margin: 0;
|
|
padding: 0;
|
|
user-select: none;
|
|
}
|
|
|
|
.debug-panel {
|
|
display: none;
|
|
font-size: 0.8rem;
|
|
position: fixed;
|
|
opacity: 0.2;
|
|
overflow-y: scroll;
|
|
inset: 0 0 290px auto;
|
|
border-bottom-left-radius: 10px;
|
|
padding: 10px 10px 20px 20px;
|
|
background-color: white;
|
|
border: 5px solid gray;
|
|
border-top: none;
|
|
border-right: none;
|
|
width: 300px;
|
|
transition-duration: 0.2s;
|
|
transition-property: opacity;
|
|
}
|
|
|
|
.debug-panel:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.minimap {
|
|
position: fixed;
|
|
inset: auto 0 0 auto;
|
|
border: 5px solid gray;
|
|
border-top-left-radius: 10px;
|
|
border-bottom: none;
|
|
border-right: none;
|
|
}
|
|
|
|
.hud {
|
|
position: fixed;
|
|
gap: 10px;
|
|
padding: 15px;
|
|
padding-bottom: 10px;
|
|
display: flex;
|
|
inset: auto 0 0 0;
|
|
width: fit-content;
|
|
margin: auto;
|
|
border: 5px solid gray;
|
|
background-color: black;
|
|
border-top-left-radius: 10px;
|
|
border-top-right-radius: 10px;
|
|
border-bottom: none;
|
|
}
|
|
|
|
.ability {
|
|
position: relative;
|
|
flex: 1 0 0;
|
|
border: 1px solid white;
|
|
width: 75px;
|
|
height: 75px;
|
|
color: white;
|
|
}
|
|
|
|
.cooldown {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 73px;
|
|
height: 73px;
|
|
background-color: grey;
|
|
opacity: 0.4;
|
|
}
|
|
|
|
.cooldown-text {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 73px;
|
|
height: 73px;
|
|
line-height: 73px;
|
|
text-align: center;
|
|
color: white;
|
|
font-family: monospace;
|
|
}
|
|
|
|
.cast-indicator-wrapper {
|
|
display: none;
|
|
position: fixed;
|
|
inset: auto 0 30%;
|
|
width: 400px;
|
|
margin: auto;
|
|
}
|
|
|
|
.cast-indicator-progress {
|
|
position: absolute;
|
|
background-color: #edd9ff;
|
|
width: calc(100% - 4px);
|
|
height: calc(100% - 4px);
|
|
}
|
|
|
|
.cast-indicator-name {
|
|
text-align: center;
|
|
color: white;
|
|
text-shadow: 1px 1px 2px black, 0 0 1em dimgray, 0 0 0.2em dimgray;
|
|
}
|
|
|
|
.cast-indicator-bar {
|
|
position: relative;
|
|
background-color: dimgray;
|
|
width: 100%;
|
|
height: 20px;
|
|
padding: 2px;
|
|
}
|
|
|
|
.buffs {
|
|
position: fixed;
|
|
display: flex;
|
|
gap: 10px;
|
|
inset: auto 0 120px calc(50vw - 165px);
|
|
width: fit-content;
|
|
}
|
|
|
|
.buff {
|
|
flex: 1 0 0;
|
|
width: 30px;
|
|
height: 30px;
|
|
background-color: black;
|
|
/* border: 1px solid gray; */
|
|
border-right: 1px solid gray;
|
|
color: white;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.buff:hover {
|
|
overflow: visible;
|
|
z-index: 3;
|
|
}
|
|
|
|
.buff-body {
|
|
border: 1px solid gray;
|
|
padding: 5px;
|
|
background-color: black;
|
|
width: fit-content;
|
|
height: 100%;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="debug-panel">
|
|
<p>Connection: <span id="connection"></span></p>
|
|
<pre id="state"></pre>
|
|
</div>
|
|
<div id="cast_indicator" class="cast-indicator-wrapper">
|
|
<div id="cast_indicator_name" class="cast-indicator-name"></div>
|
|
<div class="cast-indicator-bar">
|
|
<div id="cast_indicator_progress" class="cast-indicator-progress"></div>
|
|
</div>
|
|
</div>
|
|
<div class="hud">
|
|
<div id="ability-0" class="ability">
|
|
A
|
|
<div id="ability-0-cooldown" class="cooldown"></div>
|
|
<div id="ability-0-cooldown-text" class="cooldown-text"></div>
|
|
</div>
|
|
<div id="ability-1" class="ability">
|
|
Q
|
|
<div id="ability-1-cooldown" class="cooldown"></div>
|
|
<div id="ability-1-cooldown-text" class="cooldown-text"></div>
|
|
</div>
|
|
<div id="ability-2" class="ability">
|
|
W
|
|
<div id="ability-2-cooldown" class="cooldown"></div>
|
|
<div id="ability-2-cooldown-text" class="cooldown-text"></div>
|
|
</div>
|
|
<div id="ability-3" class="ability">
|
|
E
|
|
<div id="ability-3-cooldown" class="cooldown"></div>
|
|
<div id="ability-3-cooldown-text" class="cooldown-text"></div>
|
|
</div>
|
|
</div>
|
|
<div id="buffs" class="buffs"></div>
|
|
<script type="module" src="client.js"></script>
|
|
</body>
|
|
</html>
|