|
<!doctype html> |
|
<html lang="en"> |
|
<head> |
|
<meta charset="utf-8"> |
|
<meta name="viewport" content="width=device-width, initial-scale=1"> |
|
<title>Geometry Dash</title> |
|
<style media="screen"> |
|
html, body { |
|
height: 100%; |
|
} |
|
body { |
|
margin: 0; |
|
display: flex; |
|
align-items: center; |
|
justify-content: center; |
|
background-color: black; |
|
font-size: 0; |
|
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; |
|
overflow: hidden; |
|
} |
|
#wrapper { |
|
display: block; |
|
width: 100vw; |
|
height: 75vw; |
|
position: relative; |
|
} |
|
#monitors { |
|
position: absolute; |
|
top: 0; |
|
left: 0; |
|
} |
|
@media (min-aspect-ratio: 480/360) { |
|
#wrapper { |
|
height: 100vh; |
|
width: 133.33333333333334vh; |
|
} |
|
} |
|
#stage { |
|
width: 100%; |
|
height: 100%; |
|
} |
|
|
|
#loading-progress { |
|
color: #0ff; |
|
position: fixed; |
|
bottom: 0; |
|
left: 0; |
|
font-size: 16px; |
|
} |
|
|
|
|
|
.monitor { |
|
position: absolute; |
|
background-color: rgba(0, 0, 0, 0.3); |
|
border: 1px solid rgba(0, 0, 0, 0.2); |
|
border-radius: 0.25rem; |
|
font-size: 0.75rem; |
|
overflow: hidden; |
|
padding: 3px; |
|
color: white; |
|
white-space: pre; |
|
} |
|
.monitor-label { |
|
margin: 0 5px; |
|
font-weight: bold; |
|
} |
|
.monitor-value { |
|
display: inline-block; |
|
vertical-align: top; |
|
min-width: 34px; |
|
text-align: center; |
|
border-radius: 0.25rem; |
|
overflow: hidden; |
|
text-overflow: ellipsis; |
|
user-select: text; |
|
transform: translateZ(0); |
|
} |
|
.default .monitor-value, .slider .monitor-value { |
|
background-color: rgba(0, 0, 0, 0.5); |
|
margin: 0 5px; |
|
padding: 1px 3px; |
|
} |
|
.large { |
|
background-color: rgba(0, 0, 0, 0.6); |
|
padding: 0.1rem 0.25rem; |
|
min-width: 3rem; |
|
} |
|
.large .monitor-label { |
|
display: none; |
|
} |
|
.large .monitor-value { |
|
font-size: 1rem; |
|
width: 100%; |
|
} |
|
.list { |
|
padding: 0; |
|
overflow: auto; |
|
overflow-x: hidden; |
|
} |
|
.list .monitor-label { |
|
text-align: center; |
|
padding: 3px; |
|
width: 100%; |
|
display: block; |
|
margin: 0; |
|
box-sizing: border-box; |
|
white-space: pre-wrap; |
|
} |
|
.list .monitor-value { |
|
display: block; |
|
} |
|
.row { |
|
margin: 2px 5px; |
|
transform: translateZ(0); |
|
text-align: left; |
|
border-radius: 0.25rem; |
|
background-color: rgba(0, 0, 0, 0.5); |
|
border: 1px solid rgba(0, 0, 0, 0.2); |
|
height: 20px; |
|
line-height: 20px; |
|
padding: 0 5px; |
|
overflow: hidden; |
|
text-overflow: ellipsis; |
|
} |
|
|
|
.slider input { |
|
display: block; |
|
width: 100%; |
|
transform: translateZ(0); |
|
} |
|
#asking-box { |
|
display: none; |
|
position: absolute; |
|
left: 0; |
|
bottom: 0; |
|
right: 0; |
|
background-color: rgba(33, 33, 33, 0.7); |
|
} |
|
.asking #asking-box { |
|
display: block; |
|
} |
|
#question { |
|
display: block; |
|
margin: 0 10px; |
|
margin-top: 10px; |
|
font-size: 12px; |
|
color: white; |
|
} |
|
#answer { |
|
border: none; |
|
background: none; |
|
width: 100%; |
|
font: inherit; |
|
font-size: 16px; |
|
color: white; |
|
padding: 10px; |
|
box-sizing: border-box; |
|
} |
|
#answer:focus { |
|
outline: none; |
|
} |
|
</style> |
|
</head> |
|
<body> |
|
<div id="wrapper"> |
|
<canvas id="stage"></canvas> |
|
<div id="monitors"></div> |
|
<div id="asking-box"> |
|
<label id="question" for="answer">Question</label> |
|
<input type="text" id="answer"> |
|
</div> |
|
</div> |
|
|
|
|
|
<span id="loading-progress">...</span> |
|
|
|
|
|
<script type="text/javascript" src="./gdash.js"></script> |
|
</body> |
|
</html> |
|
|