to your HTML Add class="sortable" to any table you'd like to make sortable Click on the headers to sort Thanks to many, many people for contributions and suggestions. Licenced as X11: http://www.kryogenix.org/code/browser/licence.html This basically means: do what you want with it. */ var stIsIE = /*@cc_on!@*/false; sorttable = { init: function() { // quit if this function has already been called if (arguments.callee.done) return; // flag this function so we don't do the same thing twice arguments.callee.done = true; // kill the timer if (_timer) clearInterval(_timer); if (!document.createElement || !document.getElementsByTagName) return; sorttable.DATE_RE = /^(\d\d?)[\/\.-](\d\d?)[\/\.-]((\d\d)?\d\d)$/; forEach(document.getElementsByTagName('table'), function(table) { if (table.className.search(/\bsortable\b/) != -1) { sorttable.makeSortable(table); } }); }, makeSortable: function(table) { if (table.getElementsByTagName('thead').length == 0) { // table doesn't have a tHead. Since it should have, create one and // put the first table row in it. the = document.createElement('thead'); the.appendChild(table.rows[0]); table.insertBefore(the,table.firstChild); } // Safari doesn't support table.tHead, sigh if (table.tHead == null) table.tHead = table.getElementsByTagName('thead')[0]; if (table.tHead.rows.length != 1) return; // can't cope with two header rows // Sorttable v1 put rows with a class of "sortbottom" at the bottom (as // "total" rows, for example). This is B&R, since what you're supposed // to do is put them in a tfoot. So, if there are sortbottom rows, // for backwards compatibility, move them to tfoot (creating it if needed). sortbottomrows = []; for (var i=0; i
If you've decided that 2020 will be the year that you get healthy by either...
... we have some tools that can provide information you might find useful, even if you're nowhere near as obsessive as someone who rolls out of bed in the morning and steps onto a body fat measuring scale might be about it! Here's a short guide.
If your weight is fairly stable, our tool can give you a good idea of how many calories your body is actually consuming from the food you eat, which might be very different from what the numbers listed on the nutrition labels on your food's packaging indicates.
This tool will estimate how much body fat a person with the height, weight, age, and gender can statistically expect to have. How much you actually have will require taking some detailed measurements with specialized equipment, ideally by a trained health professional who knows what they're doing, where our tool will give you an idea of how you might compare to the statistical average.
If your idea of a workout involves a treadmill, it probably tells you that walking or running the same distance involves burning the same number of calories. This tool is based on research that says otherwise!
While this tool may not be relevant for you until November, you might find it useful for planning how you'll keep the number of calories you consume within reasonable limits when the holiday season begins.
Our tool considers the health impact that drinking diet soda might have on your health from its two most concerning ingredients: caffeine and the artificial sweetener aspartame.
Following the holidays, you might be starting the year by observing "Dry January", but if the calorie content of popular alcohol-containing beverages comes to concern you during the course of the year, we've presented a dynamic table to give you an idea of how many calories you might be imbibing whenever you might imbibe.
Did you just eat something that had way more calories in it than you ought to have eaten? Our tool will estimate how long it might take you to walk off the extra calories you just ate.
If you're going to really get your blood pumping by exercising, you might want to take advantage of our tool for estimating your maximum and target heart rate to avoid overdoing it.
Tracking calories in/calories out is how many people plot their progress toward achieving a healty weight, but that method fails to consider how your metabolism changes in response to how much and what you eat and how much you exercise, where all the calorie counting you might do can become a total waste of your time. The National Institutes of Health offers a Body Weight Planner that's based on some of the best research that's been done in nutrition and metabolism that can give you a better idea of what to expect from your 'get healthy' regimen, where we reviewed an earlier version of their tool.
Here's hoping you have a happy, healthy new year!
Image credit: alan KO
Labels: health
Welcome to the blogosphere's toolchest! Here, unlike other blogs dedicated to analyzing current events, we create easy-to-use, simple tools to do the math related to them so you can get in on the action too! If you would like to learn more about these tools, or if you would like to contribute ideas to develop for this blog, please e-mail us at:
ironman at politicalcalculations
Thanks in advance!
Closing values for previous trading day.
This site is primarily powered by:
The tools on this site are built using JavaScript. If you would like to learn more, one of the best free resources on the web is available at W3Schools.com.