-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
90 lines (81 loc) · 2.34 KB
/
index.html
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
body, html{
margin: 0;
padding: 0;
background-color: black;
overflow: hidden;
touch-action: none;
}
svg {
position: absolute;
}
.control-panel {
position: absolute;
bottom: 0;
right: 0;
width: 150px;
height: min(30%, 150px);
margin-bottom: 10px;
margin-right: 10px;
background-color: rgba(0, 0, 0, 0.1);
border-radius: 5%;
display: grid;
grid-template-columns: repeat(6, 1fr);
grid-template-rows: repeat(4, 1fr);
}
.control-panel button {
font-size: 16px;
text-align: center;
background-color: black;
color: white;
border: 1px solid grey;
font-family: Monospace;
margin: 3px;
border-radius: 5%;
}
.control-panel button:hover {
background-color:grey;
}
.control-panel button:active {
background-color:red;
border: 1px solid red;
}
#control-panel-reset {
grid-row: 2;
grid-column: 3 / span 2;
}
#control-panel-inc-x {
grid-row: 2;
grid-column: 5 / span 2;
}
#control-panel-dec-x {
grid-row: 2;
grid-column: 1 / span 2;
}
#control-panel-inc-y {
grid-row: 1;
grid-column: 3 / span 2;
}
#control-panel-dec-y {
grid-row: 3;
grid-column: 3 / span 2;
}
#control-panel-inc-scale {
grid-row: 4;
grid-column: 4 / span 3;
}
#control-panel-dec-scale {
grid-row: 4;
grid-column: 1 / span 3;
}
</style>
<title>Boats!</title>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link data-trunk rel="rust" href="Cargo.toml" data-bin="app" data-type="main" data-wasm-opt="4"/>
<!-- link data-trunk rel="rust" href="Cargo.toml" data-bin="worker" data-type="worker" data-keep-debug data-wasm-opt="0"/-->
</head>
</html>