2018-12-23 18:42:30 +00:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html>
|
2019-01-05 21:55:09 +00:00
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
2018-12-23 18:42:30 +00:00
|
|
|
|
|
2019-01-17 23:34:01 +00:00
|
|
|
|
<!-- Disable zooming: -->
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
|
|
|
|
|
|
2019-01-05 21:55:09 +00:00
|
|
|
|
<head>
|
2022-04-13 20:05:19 +00:00
|
|
|
|
<title>egui – An immediate mode GUI written in Rust</title>
|
2022-08-19 22:07:09 +00:00
|
|
|
|
|
|
|
|
|
<!-- config for our rust wasm binary. go to https://trunkrs.dev/assets/#rust for more customization -->
|
|
|
|
|
<link data-trunk rel="rust" data-wasm-opt="2" href="egui_demo_app" />
|
|
|
|
|
<!-- this is the base url relative to which other urls will be constructed. trunk will insert this from the public-url option -->
|
|
|
|
|
<base data-trunk-public-url />
|
|
|
|
|
|
|
|
|
|
<link data-trunk rel="icon" href="assets/favicon.ico">
|
|
|
|
|
<link data-trunk rel="copy-file" href="assets/CNAME">
|
|
|
|
|
|
2018-12-23 18:42:30 +00:00
|
|
|
|
<style>
|
2020-04-12 10:07:51 +00:00
|
|
|
|
html {
|
|
|
|
|
/* Remove touch delay: */
|
|
|
|
|
touch-action: manipulation;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
body {
|
2021-06-07 18:56:18 +00:00
|
|
|
|
/* Light mode background color for what is not covered by the egui canvas,
|
2021-01-16 18:11:08 +00:00
|
|
|
|
or where the egui canvas is translucent. */
|
2021-06-07 18:56:18 +00:00
|
|
|
|
background: #909090;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
|
body {
|
|
|
|
|
/* Dark mode background color for what is not covered by the egui canvas,
|
|
|
|
|
or where the egui canvas is translucent. */
|
|
|
|
|
background: #404040;
|
|
|
|
|
}
|
2020-04-12 10:07:51 +00:00
|
|
|
|
}
|
|
|
|
|
|
2020-04-23 20:08:42 +00:00
|
|
|
|
/* Allow canvas to fill entire web page: */
|
2020-04-12 10:07:51 +00:00
|
|
|
|
html,
|
|
|
|
|
body {
|
|
|
|
|
overflow: hidden;
|
2020-04-23 20:08:42 +00:00
|
|
|
|
margin: 0 !important;
|
|
|
|
|
padding: 0 !important;
|
2022-08-02 15:42:55 +00:00
|
|
|
|
height: 100%;
|
|
|
|
|
width: 100%;
|
2020-04-12 10:07:51 +00:00
|
|
|
|
}
|
2020-12-18 21:51:23 +00:00
|
|
|
|
|
2021-02-01 19:44:39 +00:00
|
|
|
|
/* Position canvas in center-top: */
|
2020-12-18 21:51:23 +00:00
|
|
|
|
canvas {
|
|
|
|
|
margin-right: auto;
|
|
|
|
|
margin-left: auto;
|
|
|
|
|
display: block;
|
|
|
|
|
position: absolute;
|
2021-02-01 19:44:39 +00:00
|
|
|
|
top: 0%;
|
2020-12-18 21:51:23 +00:00
|
|
|
|
left: 50%;
|
2021-02-01 19:44:39 +00:00
|
|
|
|
transform: translate(-50%, 0%);
|
2020-12-18 21:51:23 +00:00
|
|
|
|
}
|
2021-12-28 13:13:51 +00:00
|
|
|
|
|
2022-01-31 18:16:50 +00:00
|
|
|
|
.centered {
|
2021-12-28 13:13:51 +00:00
|
|
|
|
margin-right: auto;
|
|
|
|
|
margin-left: auto;
|
|
|
|
|
display: block;
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 50%;
|
|
|
|
|
left: 50%;
|
|
|
|
|
transform: translate(-50%, -50%);
|
2022-01-31 18:16:50 +00:00
|
|
|
|
color: #f0f0f0;
|
2021-12-28 13:13:51 +00:00
|
|
|
|
font-size: 24px;
|
|
|
|
|
font-family: Ubuntu-Light, Helvetica, sans-serif;
|
2022-01-31 18:16:50 +00:00
|
|
|
|
text-align: center;
|
2021-12-28 13:13:51 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ---------------------------------------------- */
|
|
|
|
|
/* Loading animation from https://loading.io/css/ */
|
|
|
|
|
.lds-dual-ring {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
width: 24px;
|
|
|
|
|
height: 24px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.lds-dual-ring:after {
|
|
|
|
|
content: " ";
|
|
|
|
|
display: block;
|
|
|
|
|
width: 24px;
|
|
|
|
|
height: 24px;
|
|
|
|
|
margin: 0px;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
border: 3px solid #fff;
|
|
|
|
|
border-color: #fff transparent #fff transparent;
|
|
|
|
|
animation: lds-dual-ring 1.2s linear infinite;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes lds-dual-ring {
|
|
|
|
|
0% {
|
|
|
|
|
transform: rotate(0deg);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
100% {
|
|
|
|
|
transform: rotate(360deg);
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-08-19 22:07:09 +00:00
|
|
|
|
|
2018-12-23 18:42:30 +00:00
|
|
|
|
</style>
|
2019-01-05 21:55:09 +00:00
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
<body>
|
2021-12-28 13:13:51 +00:00
|
|
|
|
<!-- The WASM code will resize the canvas dynamically -->
|
2022-08-19 22:07:09 +00:00
|
|
|
|
<!-- The canvas id is hardcoded in `egui_demo_app/src/main.rs` so, make sure they match -->
|
2020-11-17 22:24:14 +00:00
|
|
|
|
<canvas id="the_canvas_id"></canvas>
|
2022-08-19 22:07:09 +00:00
|
|
|
|
|
|
|
|
|
<div class="centered" id="loading_text">
|
2022-01-31 18:16:50 +00:00
|
|
|
|
<p style="font-size:16px">
|
|
|
|
|
Loading…
|
|
|
|
|
</p>
|
2021-12-28 13:13:51 +00:00
|
|
|
|
<div class="lds-dual-ring"></div>
|
|
|
|
|
</div>
|
2019-01-05 21:55:09 +00:00
|
|
|
|
</body>
|
|
|
|
|
|
2018-12-23 18:42:30 +00:00
|
|
|
|
</html>
|
2021-01-17 09:52:01 +00:00
|
|
|
|
|
2021-01-17 13:48:59 +00:00
|
|
|
|
<!-- Powered by egui: https://github.com/emilk/egui/ -->
|