1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<head>
<title>v2rmp Route Optimizer</title>
<style>
html {
/* Remove touch delay: */
touch-action: manipulation;
}
body {
/* Light mode background color for what is not covered by the egui canvas,
or where the egui canvas is translucent. */
background: #909090;
margin: 0;
padding: 0;
width: 100vw;
height: 100vh;
overflow: hidden;
}
@media (prefers-color-scheme: dark) {
body {
background: #404040;
}
}
/* Allow canvas to fill entire web page: */
canvas {
display: block;
width: 100%;
height: 100%;
/* Make sure the canvas is well separated from other elements (if any) */
outline: none;
}
</style>
</head>
<body>
<canvas id="the_canvas_id"></canvas>
</body>
</html>