From 0511d6fd3a46f39ee0f18834a7d5cb769ff987e2 Mon Sep 17 00:00:00 2001 From: James Wilson Date: Tue, 31 Jan 2017 11:07:39 -0600 Subject: [PATCH] Reset infoblock position on new plane selections. Update large ident styling --- public_html/script.js | 8 ++++++++ public_html/style.css | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/public_html/script.js b/public_html/script.js index c7e1d2c..7f202da 100644 --- a/public_html/script.js +++ b/public_html/script.js @@ -14,6 +14,7 @@ var SelectedPlane = null; var SelectedAllPlanes = false; var HighlightedPlane = null; var FollowSelected = false; +var infoBoxOriginalPosition = {}; var SpecialSquawks = { '7500' : { cssClass: 'squawk7500', markerColor: 'rgb(255, 85, 85)', text: 'Aircraft Hijacking' }, @@ -1370,6 +1371,13 @@ function adjustSelectedInfoBlockPosition() { // Get info box position and size var infoBox = $('#selected_infoblock'); var infoBoxPosition = infoBox.position(); + if (typeof infoBoxOriginalPosition.top === 'undefined') { + infoBoxOriginalPosition.top = infoBoxPosition.top; + infoBoxOriginalPosition.left = infoBoxPosition.left; + } else { + infoBox.css("left", infoBoxOriginalPosition.left); + infoBox.css("top", infoBoxOriginalPosition.top); + } var infoBoxExtent = getExtent(infoBoxPosition.left, infoBoxPosition.top, infoBox.outerWidth(), infoBox.outerHeight()); // Get map size diff --git a/public_html/style.css b/public_html/style.css index 5eb7bbd..c297a19 100644 --- a/public_html/style.css +++ b/public_html/style.css @@ -440,11 +440,11 @@ select.error, textarea.error, input.error { .identLarge { font-family: Helvetica Neue; - font-size: 19px; + font-size: 24px; line-height: 20px; color: #002F5D; color: rgb(0, 47, 93); - + font-weight: lighter; } .identSmall {