Add date/time to header
This commit is contained in:
parent
e5fcd4035f
commit
c2c43b9f6b
|
@ -53,6 +53,7 @@
|
||||||
<img src="images/ff-sv-logo.png" alt="FlightFeeder SkyView" class="adsbLogo flightfeederLogo" srcset="images/ff-sv-logo.png 1x, images/ff-sv-logo@2x.png 2x, images/ff-sv-logo@3x.png 3x" style="display: none;">
|
<img src="images/ff-sv-logo.png" alt="FlightFeeder SkyView" class="adsbLogo flightfeederLogo" srcset="images/ff-sv-logo.png 1x, images/ff-sv-logo@2x.png 2x, images/ff-sv-logo@3x.png 3x" style="display: none;">
|
||||||
</div>
|
</div>
|
||||||
<div class="buttonContainer">
|
<div class="buttonContainer">
|
||||||
|
<div class="dateTime" id="clock_div"></div>
|
||||||
<div class="button" onclick="resetMap();"><span class="buttonText">Reset Map</span></div>
|
<div class="button" onclick="resetMap();"><span class="buttonText">Reset Map</span></div>
|
||||||
<div class="button" onclick="selectAllPlanes();"><span class="buttonText">Select All</span></div>
|
<div class="button" onclick="selectAllPlanes();"><span class="buttonText">Select All</span></div>
|
||||||
<div class="button" onclick="deselectAllPlanes();"><span class="buttonText">Select None</span></div>
|
<div class="button" onclick="deselectAllPlanes();"><span class="buttonText">Select None</span></div>
|
||||||
|
|
|
@ -193,35 +193,7 @@ function initialize() {
|
||||||
|
|
||||||
PlaneRowTemplate = document.getElementById("plane_row_template");
|
PlaneRowTemplate = document.getElementById("plane_row_template");
|
||||||
|
|
||||||
if (!ShowClocks) {
|
refreshClock();
|
||||||
$('#timestamps').css('display','none');
|
|
||||||
} else {
|
|
||||||
// Create the clocks.
|
|
||||||
new CoolClock({
|
|
||||||
canvasId: "utcclock",
|
|
||||||
skinId: "classic",
|
|
||||||
displayRadius: 40,
|
|
||||||
showSecondHand: true,
|
|
||||||
gmtOffset: "0", // this has to be a string!
|
|
||||||
showDigital: false,
|
|
||||||
logClock: false,
|
|
||||||
logClockRev: false
|
|
||||||
});
|
|
||||||
|
|
||||||
ReceiverClock = new CoolClock({
|
|
||||||
canvasId: "receiverclock",
|
|
||||||
skinId: "classic",
|
|
||||||
displayRadius: 40,
|
|
||||||
showSecondHand: true,
|
|
||||||
gmtOffset: null,
|
|
||||||
showDigital: false,
|
|
||||||
logClock: false,
|
|
||||||
logClockRev: false
|
|
||||||
});
|
|
||||||
|
|
||||||
// disable ticking on the receiver clock, we will update it ourselves
|
|
||||||
ReceiverClock.tick = (function(){})
|
|
||||||
}
|
|
||||||
|
|
||||||
$("#loader").removeClass("hidden");
|
$("#loader").removeClass("hidden");
|
||||||
|
|
||||||
|
@ -916,6 +888,11 @@ function refreshHighlighted() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function refreshClock() {
|
||||||
|
$('#clock_div').text(new Date().toLocaleString());
|
||||||
|
var c = setTimeout(refreshClock, 500);
|
||||||
|
}
|
||||||
|
|
||||||
function removeHighlight() {
|
function removeHighlight() {
|
||||||
HighlightedPlane = null;
|
HighlightedPlane = null;
|
||||||
refreshHighlighted();
|
refreshHighlighted();
|
||||||
|
|
|
@ -315,6 +315,10 @@ select.error, textarea.error, input.error {
|
||||||
line-height: 18px;
|
line-height: 18px;
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
color: rgb(255, 255, 255);
|
color: rgb(255, 255, 255);
|
||||||
|
line-height: 60px;
|
||||||
|
text-align: right;
|
||||||
|
display: inline-block;
|
||||||
|
padding-right: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.infoHeading
|
.infoHeading
|
||||||
|
|
Loading…
Reference in a new issue