From c1bef457247bea99fe475feeed036f128580be2e Mon Sep 17 00:00:00 2001 From: jonsowman Date: Sat, 15 Jan 2011 01:28:21 +0000 Subject: [PATCH] Links in the launch card to, for example, the burst calculator, or use saved launch sites, now highlight the relevant values in the form on hover --- predict/index.php | 2 +- predict/js/pred-event.js | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/predict/index.php b/predict/index.php index 6ea7686..fb9a4a6 100644 --- a/predict/index.php +++ b/predict/index.php @@ -373,7 +373,7 @@ google.load("jqueryui", "1.8.1"); + title="Use a calculator to find highlighted values"> Use Burst Calculator diff --git a/predict/js/pred-event.js b/predict/js/pred-event.js index 7358c9a..ac8169d 100644 --- a/predict/js/pred-event.js +++ b/predict/js/pred-event.js @@ -32,6 +32,13 @@ function EH_BurstCalc() { $("#burst-calc-show").click(function() { $("#burst-calc-wrapper").show(); }); + $("#burst-calc-show").hover( + function() { + $("#ascent,#burst").css("background-color", "#AACCFF"); + }, + function() { + $("#ascent,#burst").css("background-color", "#FFFFFF"); + }); $("#burst-calc-use").click(function() { // Write the ascent rate and burst altitude to the launch card $("#ascent").val($("#ar").html()); @@ -93,6 +100,13 @@ function EH_LaunchCard() { $("#setWithClick").click(function() { setLatLonByClick(true); }); + $("#setWithClick,#req_open").hover( + function() { + $("#lat,#lon").css("background-color", "#AACCFF"); + }, + function() { + $("#lat,#lon").css("background-color", "#FFFFFF"); + }); // Launch card parameter onchange event handlers $("#lat").change(function() { plotClick();