diff --git a/src/static/viewer.css b/src/static/viewer.css
index 3220435..2480319 100644
--- a/src/static/viewer.css
+++ b/src/static/viewer.css
@@ -7,6 +7,9 @@
background-color: #dee2e6 !important;
}
-#notification_wrapper {
- display: none;
+#fox_map {
+ box-sizing: border-box;
+ position: absolute;
+ width: 100%;
+ height: calc(100% - 5rem);
}
diff --git a/src/static/viewer.js b/src/static/viewer.js
index 8c0a63d..19f6ade 100644
--- a/src/static/viewer.js
+++ b/src/static/viewer.js
@@ -1,87 +1,84 @@
-// Fetching user's ATC session informations from API
-let userSession = {};
+// // Fetching user's ATC session informations from API
+// let userSession = {};
-fetch(ATC_API_URL, {}).then(response => response.json()).then(result => {
- if (result && (result["result"] == "not found" || result["result"] == "error")) {
- showAlert("Error while getting ATC information", result["message"]);
- return;
- }
+// fetch(ATC_API_URL, {}).then(response => response.json()).then(result => {
+// if (result && result["result"] == "not found")
+// return
- for (let session of result["items"]) {
- // Separate each session by it's connection ID
- let session_id = session["connection_id"]["id"];
- userSession[session_id] = session;
+// for (let session of result["items"]) {
+// // Separate each session by it's connection ID
+// let session_id = session["connection_id"]["id"];
+// userSession[session_id] = session;
- // Long line. Not in the whole file, but still bad
- // Open to any suggestions about fix it
- let sessionElement = "
" + session["connection_id"]["callsign"] + "
";
- $("#fox_atc").append(sessionElement);
- }
+// // Long line. Not in the whole file, but still bad
+// // Open to any suggestions about fix it
+// let sessionElement = "
" + session["connection_id"]["callsign"] + "
";
+// $("#fox_atc").append(sessionElement);
+// }
- // Click event handler to left menu button
- $(".fox_atc").click(function() {
- if ($(this).hasClass("fox_atc_active")) return;
+// // Click event handler to left menu button
+// $(".fox_atc").click(function() {
+// if ($(this).hasClass("fox_atc_active")) return;
- $(".fox_atc_active").removeClass("fox_atc_active");
- $(this).addClass("fox_atc_active");
+// $(".fox_atc_active").removeClass("fox_atc_active");
+// $(this).addClass("fox_atc_active");
- showSession(userSession[$(this).attr("id")]);
- });
+// showSession(userSession[$(this).attr("id")]);
+// });
- showSession(result["items"][0]);
-});
+// showSession(result["items"][0]);
+// });
-// Fetching user's flightplans from VATSIM API
-let userFlightplans = {};
+// // Fetching user's flightplans from VATSIM API
+// let userFlightplans = {};
-fetch(FLIGHTPLANS_API_URL, {}).then(response => response.json()).then(result => {
- if (result && result["result"] == "not found")
- return
+// fetch(FLIGHTPLANS_API_URL, {}).then(response => response.json()).then(result => {
+// if (result && result["result"] == "not found")
+// return
- for (let flightplan of result) {
- // Separate each flight by it's connection ID
- // Like it was with ATC session's
- let flightplan_id = flightplan["id"]
- userFlightplans[flightplan_id] = flightplan;
- userFlightplans[flightplan_id]["not_filed"] = flightplan["connection_id"] === 0
+// for (let flightplan of result) {
+// // Separate each flight by it's connection ID
+// // Like it was with ATC session's
+// let flightplan_id = flightplan["id"]
+// userFlightplans[flightplan_id] = flightplan;
+// userFlightplans[flightplan_id]["not_filed"] = flightplan["connection_id"] === 0
- // Long line again
- let flightplanElement = "
" + flightplan["callsign"] + "
";
- $("#fox_flightplans").append(flightplanElement);
- }
+// // Long line again
+// let flightplanElement = "