Skip to content

Commit b654512

Browse files
lowered width of time&angles boxes by 30px
1 parent 6f52b79 commit b654512

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

css/main.css

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ body {
5151
background-color: #fff;
5252
position: absolute;
5353
height: 28px;
54-
width: 225px;
54+
width: 195px;
5555
border-radius: 20px;
5656
box-shadow: 0 0 5px #888;
5757
font-size: 11px;
@@ -69,7 +69,7 @@ body {
6969
.slickbox div {
7070
font-size: 14px;
7171
margin-top: 3px;
72-
width: 180px;
72+
width: 150px;
7373
text-align: center;
7474
}
7575

@@ -96,27 +96,27 @@ body {
9696
fill: #c00;
9797
}
9898
#timebox .current {
99-
margin-left: 5px;
99+
margin-left: 11px;
100100
}
101101
#timebox .local {
102-
margin-left: 15px;
102+
margin-left: 5px;
103103
}
104104

105105
.slickbox .azimuth {
106106
margin-left: 9px;
107-
width: 100;
107+
width: 91px;
108108
}
109109
.slickbox .bearing {
110110
margin-right: 5px;
111-
width: 70px;
111+
width: 60px;
112112
}
113113
.slickbox .elevation {
114114
margin-left: 5px;
115-
width: 100px;
115+
width: 95px;
116116
}
117117
.slickbox .range {
118118
margin-right: 5px;
119-
width: 70px;
119+
width: 60px;
120120
}
121121

122122
#mapscreen {

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ <h2>Chase car mode</h2>
262262
<svg width="40" height="40" viewbox="0 0 200 200" xmlns="http://www.w3.org/2000/svg" version="1.1" version="1.1" class="lfloat">
263263
<path d="M99.812,43.188c-2.77,0-5,2.032-5,4.562v40.875c-4.315,1.97-7.312,6.321-7.312,11.375,0,6.9,5.596,12.5,12.5,12.5,1.05,0,2.06-0.16,3.03-0.41l23.35,23.35c2.23,2.24,5.93,2.13,8.28-0.22s2.42-6.04,0.18-8.28l-23-23c0.42-1.24,0.66-2.56,0.66-3.94,0-5.202-3.17-9.68-7.69-11.562v-40.688c0-2.53-2.23-4.562-4.998-4.562zm-5.906-23c0.031-0.003,0.063,0.002,0.094,0v14.374c0,0.236,0.202,0.438,0.438,0.438h11.122c0.24,0,0.44-0.202,0.44-0.438v-14.343c39.4,2.921,70.86,34.381,73.78,73.781h-14.34c-0.24,0-0.44,0.171-0.44,0.406v11.154c0,0.24,0.2,0.44,0.44,0.44h14.34c-2.92,39.4-34.38,70.86-73.78,73.78v-14.37c0-0.24-0.2-0.41-0.44-0.41h-11.122c-0.236,0-0.438,0.17-0.438,0.41v14.37c-39.4-2.92-70.86-34.38-73.781-73.78h14.343c0.236,0,0.438-0.2,0.438-0.44v-11.154c0-0.235-0.202-0.406-0.438-0.406h-14.343c2.918-39.372,34.33-70.848,73.687-73.812zm6.094-10.188c-49.706,0-90,40.294-90,90,0,49.71,40.294,90,90,90,49.71,0,90-40.29,90-90,0-49.706-40.29-90-90-90zm0-10c55.23,0,100,44.772,100,100,0,55.23-44.77,100-100,100-55.228,0-100-44.77-100-100,0-55.228,44.772-100,100-100z"></path>
264264
</svg>
265-
<span class="current lfloat">Current: ???</span>
265+
<span class="current lfloat">UTC: ???</span>
266266
<span class="local lfloat">Local: ???</span>
267267
</div>
268268

js/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ var updateTimebox = function(date) {
455455
f = twoZeroPad(date.getUTCMinutes());
456456
g = twoZeroPad(date.getUTCSeconds());
457457

458-
elm.find(".current").text("Current: "+a+'-'+b+'-'+c+' '+e+':'+f+':'+g+" UTC");
458+
elm.find(".current").text("UTC: "+a+'-'+b+'-'+c+' '+e+':'+f+':'+g);
459459

460460
a = date.getFullYear();
461461
b = twoZeroPad(date.getMonth()+1); // months 0-11
@@ -465,7 +465,7 @@ var updateTimebox = function(date) {
465465
g = twoZeroPad(date.getSeconds());
466466
z = date.getTimezoneOffset() / -60;
467467

468-
elm.find(".local").text("Local: "+a+'-'+b+'-'+c+' '+e+':'+f+':'+g+" UTC"+((z<0)?"-":"+")+z);
468+
elm.find(".local").text("Local: "+a+'-'+b+'-'+c+' '+e+':'+f+':'+g+" "+((z<0)?"-":"+")+z);
469469
};
470470

471471
var format_time_friendly = function(start, end) {

js/tracker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,9 @@ function update_lookangles(vcallsign) {
218218

219219
var look = calculate_lookangles(a,b);
220220

221-
$("#lookanglesbox .azimuth").text("Azimuth: " + Math.round(look.azimuth * 10000)/10000 + "°");
221+
$("#lookanglesbox .azimuth").text("Azimuth: " + roundNumber(look.azimuth, 2) + "°");
222222
$("#lookanglesbox .bearing").text(look.bearing);
223-
$("#lookanglesbox .elevation").text("Elevation: " + Math.round(look.elevation * 10000)/10000 + "°");
223+
$("#lookanglesbox .elevation").text("Elevation: " + roundNumber(look.elevation, 2) + "°");
224224

225225
var range_string = "";
226226
if(offline.get('opt_imperial')) {

0 commit comments

Comments
 (0)