Skip to content

Commit

Permalink
UI betterments
Browse files Browse the repository at this point in the history
  • Loading branch information
antivoland committed Jul 22, 2023
1 parent 51813fc commit 871a918
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 8 deletions.
15 changes: 9 additions & 6 deletions src/main/resources/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
}

.select {
width: 25%;
float: left;
}
</style>
Expand All @@ -28,13 +27,13 @@

<body>
<div class="search">
<select id="src" class="select" style="width: 25%" placeholder="Select SRC code..."></select>
<select id="dst" class="select" placeholder="Select DST code..."></select>
<select id="theme" class="select">
<select id="src" style="width: 35%" class="select" style="width: 25%" placeholder="Select SRC code..."></select>
<select id="dst" style="width: 35%" class="select" placeholder="Select DST code..."></select>
<select id="theme" style="width: 10%" class="select">
<option value="dark">Dark</option>
<option value="light selected">Light</option>
</select>
<select id="limit" class="select">
<select id="limit" style="width: 20%" class="select">
<option value="unlimited" selected>Unlimited</option>
<option value="limited">Limited to 4 flights maximum</option>
</select>
Expand Down Expand Up @@ -191,7 +190,11 @@
if (debug) rings.push({lat: mid.lat, lng: mid.lon})
cameraLat = mid.lat;
cameraLon = mid.lon;
cameraAlt = kmDistance(src.lat, src.lon, dst.lat, dst.lon) / 5000;
if (route != null) {
cameraAlt = route.kmDistance / 5000;
} else {
cameraAlt = kmDistance(src.lat, src.lon, dst.lat, dst.lon) / 5000;
}
} else if (srcCode != null) {
labels.push({lat: src.lat, lon: src.lon, val: srcCode})
cameraLat = src.lat;
Expand Down
18 changes: 16 additions & 2 deletions src/test/resources/data/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,24 @@ ASP -road, far , 4 legs
tll - ags - 5 unlimited
- anq 5 + road at the end

anm 8 fl, ends with road / limited exists

bca 6fl, 1r / limited doesn't exist

brt, bsd, byq, adl, agn, aju lim/unl diff visible nicely

bzf - side move

Video:
srs: TLL
dst: ANQ or ags
dst: anm
limited: true
limited: false
ags
limited: true
limited: false
dst: buz
dst: null
src: null
src: null

ffmpeg -i ui.720p.mov -f mp4 -vcodec libx264 -preset fast -profile:v main -acodec aac output.mp4

0 comments on commit 871a918

Please sign in to comment.