diff --git a/public_html/index.html b/public_html/index.html
index 5af5fc5..f3f3a7e 100644
--- a/public_html/index.html
+++ b/public_html/index.html
@@ -192,6 +192,7 @@
Data Source |
Airframes.org Link |
FlightAware Link |
+ Photos | td>
@@ -215,6 +216,7 @@
DATA_SOURCE |
AIRFRAMES_MODE_S_LINK |
FLIGHTAWARE_MODE_S_LINK |
+ FLIGHTAWARE_PHOTO_LINK |
diff --git a/public_html/script.js b/public_html/script.js
index 8eb7681..f4c8c59 100644
--- a/public_html/script.js
+++ b/public_html/script.js
@@ -835,6 +835,7 @@ function refreshTableInfo() {
tableplane.tr.cells[16].textContent = format_data_source(tableplane.getDataSource());
tableplane.tr.cells[17].innerHTML = getAirframesModeSLink(tableplane.icao);
tableplane.tr.cells[18].innerHTML = getFlightAwareModeSLink(tableplane.icao);
+ tableplane.tr.cells[19].innerHTML = getFlightAwarePhotoLink(tableplane.registration);
tableplane.tr.className = classes;
$("#header_altitude_unit").text(get_unit_label("altitude", DisplayUnits));
@@ -1128,6 +1129,7 @@ function setColumnVisibility() {
showColumn(infoTable, "#data_source", !mapIsVisible);
showColumn(infoTable, "#airframes_mode_s_link", !mapIsVisible);
showColumn(infoTable, "#flightaware_mode_s_link", !mapIsVisible);
+ showColumn(infoTable, "#flightaware_photo_link", !mapIsVisible);
}
function initializeUnitsSelector() {
@@ -1183,6 +1185,14 @@ function getFlightAwareModeSLink(code) {
return "";
}
+function getFlightAwarePhotoLink(registration) {
+ if (registration !== null && registration !== "") {
+ return "See Photos";
+ }
+
+ return "";
+}
+
function getAirframesModeSLink(code) {
if (code !== null && code.length > 0 && code[0] !== '~') {
return "Airframes.org: " + code.toUpperCase() + "";