From 16db92d0ed0242f58ee14358bffec7753af5f57a Mon Sep 17 00:00:00 2001 From: jonsowman Date: Thu, 13 Jan 2011 16:11:22 +0000 Subject: [PATCH] Burst calculator and constants in their own window, with UI elements for activating and using them --- predict/css/calc.css | 4 + predict/css/pred.css | 34 ++++-- predict/index.php | 267 ++++++++++++++++++++++--------------------- predict/js/pred.js | 20 +++- 4 files changed, 180 insertions(+), 145 deletions(-) diff --git a/predict/css/calc.css b/predict/css/calc.css index a90bd8f..9a8b852 100644 --- a/predict/css/calc.css +++ b/predict/css/calc.css @@ -18,6 +18,10 @@ padding-right: 3px; } +.constants_header { + font-weight: bold; +} + .input_label { text-align: center; } diff --git a/predict/css/pred.css b/predict/css/pred.css index b66b566..0d3d507 100644 --- a/predict/css/pred.css +++ b/predict/css/pred.css @@ -54,6 +54,30 @@ a { text-decoration: underline; color: #333; cursor: pointer; } display: none; } +#burst-calc-wrapper { + position: absolute; + left: 50%; + top: 50%; + width: 400px; + margin-left: -200px; + margin-top: -200px; + padding: 1em; + text-align: center; + display: none; +} + +/* +#burst-calc { + display: none; + padding: 5px; + text-align: center; +} +*/ + +#burst-calc-constants { + display: none; +} + #location_save { position: absolute; left: 50%; @@ -78,10 +102,6 @@ a { text-decoration: underline; color: #333; cursor: pointer; } display: none; } -#burst-calc-constants { - display: none; -} - .box { position: absolute; background-color: white; @@ -145,12 +165,6 @@ a { text-decoration: underline; color: #333; cursor: pointer; } bottom: 0; right: 0; } -#burst-calc { - display: none; - padding: 5px; - text-align: center; -} - #scenario_info { position: absolute; top: 25px; diff --git a/predict/index.php b/predict/index.php index 7f24d59..27e9e81 100644 --- a/predict/index.php +++ b/predict/index.php @@ -142,6 +142,142 @@ google.load("jqueryui", "1.8.1"); No guarantee is given for the accuracy, precision or reliability of the data produced by this software, and you use it entirely at your own risk. For more information, see #highaltitude on irc.freenode.net. + +
+
+ Burst Calculator +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Payload Mass (g)ANDBalloon Mass (g)
+ + + +
  
THEN
Target Burst Altitude (m)ORTarget Ascent Rate (m/s)
+ + + + +
  
Burst Altitude:33000 mAscent Rate:2.33 m/s
Time to Burst:238 minNeck Lift:1733 g
Launch Volume:2.66 + m32660 L93.9 + ft3
+
+ + + +
+ + +
+
Constants

+
+ For advanced use only! You can probably leave these alone. +

+
+
+
+
+
+ +
+
+
+
+
+
+ + +
+
+ +
+
+ +
+
+
@@ -264,136 +400,7 @@ google.load("jqueryui", "1.8.1"); - -
- Burst Calculator -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Payload Mass (g)ANDBalloon Mass (g)
- - - -
  
THEN
Target Burst Altitude (m)ORTarget Ascent Rate (m/s)
- - - - -
  
Burst Altitude:33000 mAscent Rate:2.33 m/s
Time to Burst:238 minNeck Lift:1733 g
Launch Volume:2.66 - m32660 L93.9 - ft3
-
- - -
- - -
-
Constants

-
- For advanced
use only!

- - You can probably
leave these alone.
-

-
-
-
-
-
- -
-
-
-
-
-
- - -
-
- -
-
+