Skip to content

Commit 8b3415d

Browse files
added time display
* shows current time in both UTC and local based on timezone * fades in with a fancy animation when the app starts * ticks in real-time
1 parent c1a0f2b commit 8b3415d

File tree

8 files changed

+382
-18
lines changed

8 files changed

+382
-18
lines changed

css/main.css

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,47 @@ body {
4646
z-index: 100;
4747
}
4848

49+
#timebox {
50+
z-index: 49;
51+
background-color: #fff;
52+
position: absolute;
53+
top: 7px;
54+
left: 30px;
55+
//margin-left: -145px;
56+
height: 28px;
57+
width: 225px;
58+
border-radius: 20px;
59+
box-shadow: 0 0 5px #888;
60+
font-size: 11px;
61+
}
62+
#timebox svg {
63+
width: 28px;
64+
height: 28px;
65+
}
66+
#timebox svg path {
67+
-webkit-transition: all 0.2s ease-in-out;
68+
-moz-transition: all 0.2s ease-in-out;
69+
-ms-transition: all 0.2s ease-in-out;
70+
-o-transition: all 0.2s ease-in-out;
71+
transition: all 0.2s ease-in-out;
72+
fill: #00a3d3;
73+
}
74+
#timebox.past svg path {
75+
fill: #c00;
76+
}
77+
#timebox span {
78+
line-height: 14px;
79+
}
80+
#timebox .current {
81+
margin-left: 5px;
82+
}
83+
#timebox .local {
84+
margin-left: 15px;
85+
}
86+
4987
#mapscreen {
5088
float: right;
89+
position: relative;
5190
}
5291

5392
#map img {

glyphs/icon-clock.svg

Lines changed: 144 additions & 0 deletions
Loading

glyphs/icon-clock_simple.svg

Lines changed: 60 additions & 0 deletions
Loading

glyphs/icon-code.svg

Lines changed: 72 additions & 14 deletions
Loading

index.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,16 @@ <h2>Chase car mode</h2>
207207
</div>
208208
</div>
209209
<div id="mapscreen">
210+
<div id="timebox" class="present" style="display: none">
211+
<svg width="40" height="40" viewbox="0 0 200 200" version="1.1" class="lfloat">
212+
<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" />
213+
</svg>
214+
<span class="current lfloat">Current: ???</span>
215+
<span class="local lfloat">Local: ???</span>
216+
</div>
217+
210218
<div id="map" style="dispaly: none" class="main_screen"></div>
219+
211220
<div id="telemetry_graph" style="display: none">
212221
<div class="graph_label">Telemetry Graph</div>
213222
<div class="holder" style="height: 200px;width: 50px"></div>

0 commit comments

Comments
 (0)