blog:articles:software:age_and_weight_calc
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
blog:articles:software:age_and_weight_calc [2019/03/09 17:26] – created Phil Ide | blog:articles:software:age_and_weight_calc [2019/03/10 23:04] (current) – Phil Ide | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Calculate your Age and Weight on the Planets ====== | ====== Calculate your Age and Weight on the Planets ====== | ||
This little calculator allows you to calculate how old you would be on each of the planets in the solar system, and what your weight would be. If you have weight issues, don't look at the result for Jupiter! LOL | This little calculator allows you to calculate how old you would be on each of the planets in the solar system, and what your weight would be. If you have weight issues, don't look at the result for Jupiter! LOL | ||
+ | |||
+ | The results are based on surface gravity, which for the gas and ice-giants is somewhat less than you might think. Data is taken from NASA/JPL | ||
+ | |||
+ | //N.B. None of this information is stored or even sent to my server, it's calculated in your browser// | ||
=== === | === === | ||
|Your date of birth|< | |Your date of birth|< | ||
Line 9: | Line 13: | ||
<JS> | <JS> | ||
var planets = [ | var planets = [ | ||
- | | + | |
- | | + | |
| | ||
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
]; | ]; | ||
- | |||
function __calculateweightandage(){ | function __calculateweightandage(){ | ||
var s = "< | var s = "< | ||
Line 32: | Line 35: | ||
var weight = Math.round(w*planets[i].mass*100)/ | var weight = Math.round(w*planets[i].mass*100)/ | ||
weight = new Intl.NumberFormat(' | weight = new Intl.NumberFormat(' | ||
+ | if( planets[i].name == " | ||
+ | | ||
s += '< | s += '< | ||
i++; | i++; | ||
Line 39: | Line 44: | ||
}; | }; | ||
</JS> | </JS> | ||
+ | ~~socialite~~ | ||
blog/articles/software/age_and_weight_calc.1552152373.txt.gz · Last modified: 2019/03/09 17:26 by Phil Ide