-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
79 lines (67 loc) · 2.14 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Flow Canvas Field</title>
<link rel="stylesheet" href="static/style.css" />
<noscript>Enable JavaScript to run simulation!</noscript>
<script defer src="static/flow_field.js"></script>
<style>
div#toast_notify_user {
position: absolute;
top: 45lvh;
width: 100svw;
margin-inline: auto;
}
@media screen and (orientation: portrait) and (max-width: 600px) {}
@media screen and (orientation: portrait) {
html,
body {
background: black;
}
canvas {
display: none;
}
#toast_notify_user::before {
content: "Please tilt to Landscape mode for best viewing experience";
color: hsl(180, 50%, 50%);
position: absolute;
max-width: 100svw;
padding-inline: 4em;
text-align: center;
text-wrap: balance;
font-family: monospace;
font-size: 1.25rem;
}
}
</style>
</head>
<body>
<div id="toast_notify_user"></div>
<canvas id="flowFieldCanvas" width="800" height="800"></canvas>
<div class="controls_panel">
<input id="controls_toggle" type="checkbox" />
<section class="controls_section">
<div class="control_row">
<span id="gui_fps">10fps</span>
</div>
<div class="control_row">
<span id="cur_field_pattern_name">sinusoidal</span>
</div>
<div class="control_row">
<label for="shuffle_field_toggle">Shuffle</label>
<input id="shuffle_field_toggle" type="button" title="Shuffle Field" name="shuffle-field" />
</div>
<div class="control_row">
<label for="stop_animation_toggle">Stop</label>
<input id="stop_animation_toggle" type="button" title="Stop Animation" name="stop-animation" />
</div>
<div class="control_row">
<label for="reload_animation_toggle">Reload</label>
<input id="reload_animation_toggle" type="button" title="Reload Animation" name="reload-animation" />
</div>
</section>
<label for="controls_toggle" id="label_controls_toggle">Toggle Controls</label>
</div>
</body>
</html>