Completed
Push — master ( 7a8794...5ef0a0 )
by Yannick
31:30
created
js/map-aircraft.2d.js.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -6,8 +6,8 @@  discard block
 block discarded – undo
6 6
 if (!isset($globalJsonCompress)) $compress = true;
7 7
 else $compress = $globalJsonCompress;
8 8
 
9
-if (isset($_GET['ident'])) $ident = filter_input(INPUT_GET,'ident',FILTER_SANITIZE_STRING);
10
-if (isset($_GET['flightaware_id'])) $flightaware_id = filter_input(INPUT_GET,'flightaware_id',FILTER_SANITIZE_STRING);
9
+if (isset($_GET['ident'])) $ident = filter_input(INPUT_GET, 'ident', FILTER_SANITIZE_STRING);
10
+if (isset($_GET['flightaware_id'])) $flightaware_id = filter_input(INPUT_GET, 'flightaware_id', FILTER_SANITIZE_STRING);
11 11
 $archive = false;
12 12
 if (isset($_COOKIE['archive_begin']) && $_COOKIE['archive_begin'] != '') $archive = true;
13 13
 ?>
@@ -209,10 +209,10 @@  discard block
 block discarded – undo
209 209
 		document.getElementById('archivebox').style.display = "block";
210 210
 		if (typeof props != 'undefined') {
211 211
 			var thedate = new Date(props);
212
-			$("#archivebox").html('<h4><?php echo str_replace("'","\'",_("Archive Date & Time")); ?></h4>' +  '<b>' + thedate.toUTCString() + '</b>' + '<br/><a href="#" onClick="archivePause();"><i class="fa fa-pause" aria-hidden="true"></i></a> <a href="#" onClick="archivePlay();"><i class="fa fa-play" aria-hidden="true"></i></a>');
213
-			//$("#archivebox").html('<h4><?php echo str_replace("'","\'",_("Archive Date & Time")); ?></h4>' +  '<b>' + thedate.toUTCString() + '</b>' + '<br/>');
212
+			$("#archivebox").html('<h4><?php echo str_replace("'", "\'", _("Archive Date & Time")); ?></h4>' +  '<b>' + thedate.toUTCString() + '</b>' + '<br/><a href="#" onClick="archivePause();"><i class="fa fa-pause" aria-hidden="true"></i></a> <a href="#" onClick="archivePlay();"><i class="fa fa-play" aria-hidden="true"></i></a>');
213
+			//$("#archivebox").html('<h4><?php echo str_replace("'", "\'", _("Archive Date & Time")); ?></h4>' +  '<b>' + thedate.toUTCString() + '</b>' + '<br/>');
214 214
 		} else {
215
-			$("#archivebox").html('<h4><?php echo str_replace("'","\'",_("Archive Date & Time")); ?></h4>' +  '<b><i class="fa fa-spinner fa-pulse fa-2x fa-fw margin-bottom"></i></b>');
215
+			$("#archivebox").html('<h4><?php echo str_replace("'", "\'", _("Archive Date & Time")); ?></h4>' +  '<b><i class="fa fa-spinner fa-pulse fa-2x fa-fw margin-bottom"></i></b>');
216 216
 		}
217 217
 	}
218 218
 <?php
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
 <?php
367 367
 		} else {
368 368
 ?>
369
-					var movingtime = Math.round(<?php if (isset($archiveupdatetime)) print $archiveupdatetime*1000; else print $globalMapRefresh*1000+20000; ?>+feature.properties.sqt*1000);
369
+					var movingtime = Math.round(<?php if (isset($archiveupdatetime)) print $archiveupdatetime*1000; else print $globalMapRefresh*1000 + 20000; ?>+feature.properties.sqt*1000);
370 370
 					return new L.Marker.movingMarker([latLng, feature.properties.nextlatlon],[movingtime],{
371 371
 <?php
372 372
 		}
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
 							/*
384 384
 							shadowUrl: iconURLShadowpath,
385 385
 							shadowSize: [<?php print $globalAircraftSize; ?>, <?php print $globalAircraftSize; ?>],
386
-							shadowAnchor: [<?php print ($globalAircraftSize/2)+1; ?>, <?php print $globalAircraftSize; ?>]
386
+							shadowAnchor: [<?php print ($globalAircraftSize/2) + 1; ?>, <?php print $globalAircraftSize; ?>]
387 387
 							*/
388 388
 						})
389 389
 					})
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
 <?php
417 417
 		} else {
418 418
 ?>
419
-						var movingtime = Math.round(<?php if (isset($archiveupdatetime)) print $archiveupdatetime*1000; else print $globalMapRefresh*1000+20000; ?>+feature.properties.sqt*1000);
419
+						var movingtime = Math.round(<?php if (isset($archiveupdatetime)) print $archiveupdatetime*1000; else print $globalMapRefresh*1000 + 20000; ?>+feature.properties.sqt*1000);
420 420
 						return new L.Marker.movingMarker([latLng, feature.properties.nextlatlon],[movingtime],{
421 421
 <?php
422 422
 		}
@@ -463,7 +463,7 @@  discard block
 block discarded – undo
463 463
 <?php
464 464
 		} else {
465 465
 ?>
466
-							var movingtime = Math.round(<?php if (isset($archiveupdatetime)) print $archiveupdatetime*1000; else print $globalMapRefresh*1000+20000; ?>+feature.properties.sqt*1000);
466
+							var movingtime = Math.round(<?php if (isset($archiveupdatetime)) print $archiveupdatetime*1000; else print $globalMapRefresh*1000 + 20000; ?>+feature.properties.sqt*1000);
467 467
 							return new L.Marker.movingMarker([latLng, feature.properties.nextlatlon],[movingtime],{
468 468
 <?php
469 469
 		}
Please login to merge, or discard this patch.