forked from StrafesNET/roblox-bot-player
75 lines
1.7 KiB
HTML
75 lines
1.7 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta
|
|
name="viewport"
|
|
content="width=device-width, initial-scale=1, shrink-to-fit=no"
|
|
/>
|
|
<title>StrafesNET Roblox Bot Player Demo</title>
|
|
<style>
|
|
:root {
|
|
color-scheme: light dark;
|
|
}
|
|
html,
|
|
body {
|
|
margin: 0px;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
canvas {
|
|
margin: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
.hud {
|
|
position: fixed;
|
|
bottom: 10px;
|
|
left: 10px;
|
|
display: flex;
|
|
flex-direction: column; /* stack vertically */
|
|
gap: 4px; /* space between timers */
|
|
}
|
|
|
|
.timer {
|
|
background: #000;
|
|
color: #fff;
|
|
padding: 4px 8px;
|
|
font-family: sans-serif;
|
|
font-size: 14px;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.controls {
|
|
position: fixed;
|
|
bottom: 10px;
|
|
left: 120px;
|
|
display: flex;
|
|
flex-direction: row; /* stack horizontally */
|
|
gap: 4px; /* space between timers */
|
|
}
|
|
</style>
|
|
<script defer src="player.js" type="module"></script>
|
|
<script defer type="module" src="iframe-helper.js"></script>
|
|
</head>
|
|
<body>
|
|
<canvas id="viewport"> </canvas>
|
|
<div class="hud">
|
|
<div id="hud_duration" class="timer">00:00:00</div>
|
|
<div id="hud_timer" class="timer">00:00:00</div>
|
|
<div id="diff_velocity" class="timer">-0.000 u/s</div>
|
|
<div id="diff_time" class="timer">-0.000s</div>
|
|
</div>
|
|
<div class="controls">
|
|
<button id="control_reset">↪️</button>
|
|
<button id="control_pause">⏯</button>
|
|
<button id="control_backward">⬅️</button>
|
|
<button id="control_forward">➡️</button>
|
|
<button id="control_slower">⏪</button>
|
|
<input type="text" id="control_speed" value="1.00x"></>
|
|
<button id="control_faster">⏩</button>
|
|
</div>
|
|
</body>
|
|
</html>
|