{"id":695,"date":"2016-02-08T20:25:03","date_gmt":"2016-02-08T20:25:03","guid":{"rendered":"http:\/\/ironkladtraining.com\/?p=695"},"modified":"2016-02-09T03:21:27","modified_gmt":"2016-02-09T03:21:27","slug":"695","status":"publish","type":"post","link":"https:\/\/ironkladtraining.com\/?p=695","title":{"rendered":"Calculator"},"content":{"rendered":"<form name=\"pointCalc\">\n<h1>Still in process of working out the bugs<\/h1>\n<p>Description<\/p>\n<table class=\"userInput\">\n<tbody>\n<tr>\n<td style=\"text-align: center;\"><b>Weight:<\/b><\/td>\n<td><input name=\"weight\" size=\"5\" type=\"text\" \/><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\"><strong>Body Fat %:<\/strong><\/td>\n<td><input name=\"bfone\" size=\"5\" type=\"text\" \/><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\"><strong>Age:<\/strong><\/td>\n<td><input name=\"age\" size=\"5\" type=\"text\" \/><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><input type=\"button\" value=\"Calculate\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><input style=\"border: none;\" name=\"result\" readonly=\"readonly\" size=\"5\" type=\"text\" \/><input style=\"border: none;\" name=\"resultlbm\" readonly=\"readonly\" size=\"5\" type=\"text\" \/><input style=\"border: none;\" name=\"resultbmrminus\" readonly=\"readonly\" size=\"5\" type=\"text\" \/><input style=\"border: none;\" name=\"resultbmrplus\" readonly=\"readonly\" size=\"5\" type=\"text\" \/><\/p>\n<table class=\"stats\">\n<thead>\n<tr>\n<th>BFtwo<\/th>\n<th>LBM<\/th>\n<th>BMR-<\/th>\n<th>BMR+<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<table class=\"food\">\n<thead>\n<tr>\n<th><strong>\u00a0<\/strong><\/th>\n<th><strong>Mon<\/strong><\/th>\n<th><strong>Tue<\/strong><\/th>\n<th><strong>Wed<\/strong><\/th>\n<th><strong>Thur<\/strong><\/th>\n<th><strong>Fri<\/strong><\/th>\n<th><strong>Sat<\/strong><\/th>\n<th><strong>Sun<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"background-color: #880015; color: white;\"><strong>Protein<\/strong><\/td>\n<td><strong><input style=\"border: none;\" name=\"promon\" readonly=\"readonly\" size=\"5\" type=\"text\" \/><\/strong><\/td>\n<td><strong><input style=\"border: none;\" name=\"protue\" readonly=\"readonly\" size=\"5\" type=\"text\" \/><\/strong><\/td>\n<td><strong><input style=\"border: none;\" name=\"prowed\" readonly=\"readonly\" size=\"5\" type=\"text\" \/><\/strong><\/td>\n<td><strong><input style=\"border: none;\" name=\"prothu\" readonly=\"readonly\" size=\"5\" type=\"text\" \/><\/strong><\/td>\n<td><strong><input style=\"border: none;\" name=\"profri\" readonly=\"readonly\" size=\"5\" type=\"text\" \/><\/strong><\/td>\n<td><strong><input style=\"border: none;\" name=\"prosat\" readonly=\"readonly\" size=\"5\" type=\"text\" \/><\/strong><\/td>\n<td><strong><input style=\"border: none;\" name=\"prosun\" readonly=\"readonly\" size=\"5\" type=\"text\" \/><\/strong><\/td>\n<\/tr>\n<tr>\n<td class=\"type\" style=\"background-color: #880015; color: white;\"><strong>Carbs<\/strong><\/td>\n<td><strong><input style=\"border: none;\" name=\"carbmon\" readonly=\"readonly\" size=\"5\" type=\"text\" \/><\/strong><\/td>\n<td><strong><input style=\"border: none;\" name=\"carbtue\" readonly=\"readonly\" size=\"5\" type=\"text\" \/><\/strong><\/td>\n<td><strong><input style=\"border: none;\" name=\"carbwed\" readonly=\"readonly\" size=\"5\" type=\"text\" \/><\/strong><\/td>\n<td><strong><input style=\"border: none;\" name=\"carbthu\" readonly=\"readonly\" size=\"5\" type=\"text\" \/><\/strong><\/td>\n<td><strong><input style=\"border: none;\" name=\"carbfri\" readonly=\"readonly\" size=\"5\" type=\"text\" \/><\/strong><\/td>\n<td><strong><input style=\"border: none;\" name=\"carbsat\" readonly=\"readonly\" size=\"5\" type=\"text\" \/><\/strong><\/td>\n<td><strong><input style=\"border: none;\" name=\"carbsun\" readonly=\"readonly\" size=\"5\" type=\"text\" \/><\/strong><\/td>\n<\/tr>\n<tr>\n<td class=\"type\" style=\"background-color: #880015; color: white;\"><strong>Fat<\/strong><\/td>\n<td><strong><input style=\"border: none;\" name=\"fatmon\" readonly=\"readonly\" size=\"5\" type=\"text\" \/><\/strong><\/td>\n<td><strong><input style=\"border: none;\" name=\"fattue\" readonly=\"readonly\" size=\"5\" type=\"text\" \/><\/strong><\/td>\n<td><strong><input style=\"border: none;\" name=\"fatwed\" readonly=\"readonly\" size=\"5\" type=\"text\" \/><\/strong><\/td>\n<td><strong><input style=\"border: none;\" name=\"fatthu\" readonly=\"readonly\" size=\"5\" type=\"text\" \/><\/strong><\/td>\n<td><strong><input style=\"border: none;\" name=\"fatfri\" readonly=\"readonly\" size=\"5\" type=\"text\" \/><\/strong><\/td>\n<td><strong><input style=\"border: none;\" name=\"fatsat\" readonly=\"readonly\" size=\"5\" type=\"text\" \/><\/strong><\/td>\n<td><strong><input style=\"border: none;\" name=\"fatsun\" readonly=\"readonly\" size=\"5\" type=\"text\" \/><\/strong><\/td>\n<\/tr>\n<tr>\n<td><strong>Calories<\/strong><\/td>\n<td><input style=\"border: none;\" name=\"calmon\" readonly=\"readonly\" size=\"5\" type=\"text\" \/><\/td>\n<td><input style=\"border: none;\" name=\"caltue\" readonly=\"readonly\" size=\"5\" type=\"text\" \/><\/td>\n<td><input style=\"border: none;\" name=\"calwed\" readonly=\"readonly\" size=\"5\" type=\"text\" \/><\/td>\n<td><input style=\"border: none;\" name=\"calthu\" readonly=\"readonly\" size=\"5\" type=\"text\" \/><\/td>\n<td><input style=\"border: none;\" name=\"calfri\" readonly=\"readonly\" size=\"5\" type=\"text\" \/><\/td>\n<td><input style=\"border: none;\" name=\"calsat\" readonly=\"readonly\" size=\"5\" type=\"text\" \/><\/td>\n<td><input style=\"border: none;\" name=\"calsun\" readonly=\"readonly\" size=\"5\" type=\"text\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/form>\n<p>&nbsp;<\/p>\n<p><script>\/\/ <![CDATA[\nfunction calculate() { var doc = document.pointCalc; var bftwo = 0; var lbm = 0; var bmrminus = 0; var bmrplus = 0; var bfone = doc.bfone.value; var weight = doc.weight.value; bftwo = (weight * bfone); doc.result.value = Math.round(bftwo * 10)\/10; lbm = (weight *1 ) + (bftwo * 1); doc.resultlbm.value = Math.round(lbm * 10)\/10; bmrminus = (lbm *1) *11; doc.resultbmrminus.value = Math.round(bmrminus*10)\/10; bmrplus = (lbm * 1) * 13; doc.resultbmrplus.value = Math.round(bmrplus*10)\/10; var promon, protue, prowed, fatmon, calmon, carbmon; promon = (lbm * 1) * 1.1; doc.promon.value = Math.round(promon * 100)\/100; protue = (lbm * 1) * 1.025; doc.protue.value = Math.round(protue * 100)\/100; prowed = (lbm * 1) * 1.1; doc.prowed.value = Math.round(prowed * 100)\/100; prothu = (lbm * 1) * 1.05; doc.prothu.value = Math.round(prothu * 100)\/100; profri = (lbm * 1) * 1.1; doc.profri.value = Math.round(profri * 100)\/100; prosat = (lbm * 1) * 1.1; doc.prosat.value = Math.round(prosat * 100)\/100; prosun = (lbm * 1) * 1.1; doc.prosun.value = Math.round(prosun * 100)\/100; carbmon = (lbm * 1) * .25; doc.carbmon.value = Math.round(carbmon *100)\/100; carbtue = (lbm * 1) * .5; doc.carbtue.value = Math.round(carbtue *100)\/100; carbwed = (lbm * 1) * .25; doc.carbwed.value = Math.round(carbwed *100)\/100; carbthu = (lbm * 1) * .5; doc.carbthu.value = Math.round(carbthu *100)\/100; carbfri = (lbm * 1) * .25; doc.carbfri.value = Math.round(carbfri *100)\/100; carbsat = (lbm * 1) * 1.2; doc.carbsat.value = Math.round(carbsat *100)\/100; carbsun = (lbm * 1) * .35; doc.carbsun.value = Math.round(carbsun *100)\/100; fatmon = (lbm * 1) * .35; doc.fatmon.value = Math.round(fatmon * 100)\/100; fattue = (lbm * 1) * .35; doc.fattue.value = Math.round(fattue * 100)\/100; fatwed = (lbm * 1) * .35; doc.fatwed.value = Math.round(fatwed * 100)\/100; fatthu = (lbm * 1) * .35; doc.fatthu.value = Math.round(fatthu * 100)\/100; fatfri = (lbm * 1) * .35; doc.fatfri.value = Math.round(fatfri * 100)\/100; fatsat = (lbm * 1) * .35; doc.fatsat.value = Math.round(fatsat * 100)\/100; fatsun = (lbm * 1) * .35; doc.fatsun.value = Math.round(fatsun * 100)\/100; calmon = ((promon *1)*4) + ((carbmon * 1) * 4) +((fatmon*1)*9); doc.calmon.value = Math.round(calmon*100)\/100; caltue = ((protue *1)*4) + ((carbtue * 1) * 4) +((fattue*1)*9); doc.caltue.value = Math.round(caltue*100)\/100; calwed = ((prowed *1)*4) + ((carbwed * 1) * 4) +((fatwed*1)*9); doc.calwed.value = Math.round(calwed*100)\/100; calthu = ((prothu *1)*4) + ((carbthu * 1) * 4) +((fatthu*1)*9); doc.calthu.value = Math.round(calthu*100)\/100; calfri = ((profri *1)*4) + ((carbfri * 1) * 4) +((fatfri*1)*9); doc.calfri.value = Math.round(calfri*100)\/100; calsat = ((prosat *1)*4) + ((carbsat * 1) * 4) +((fatsat*1)*9); doc.calsat.value = Math.round(calsat*100)\/100; calsun = ((prosun *1)*4) + ((carbsun * 1) * 4) +((fatsun*1)*9); doc.calsun.value = Math.round(calsun*100)\/100; }\n\/\/ ]]><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Still in process of working out the bugs Description Weight: Body Fat %: Age: BFtwo LBM BMR- BMR+ \u00a0 Mon Tue Wed Thur Fri Sat Sun Protein Carbs Fat Calories &nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-695","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/ironkladtraining.com\/index.php?rest_route=\/wp\/v2\/posts\/695","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ironkladtraining.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ironkladtraining.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ironkladtraining.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ironkladtraining.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=695"}],"version-history":[{"count":9,"href":"https:\/\/ironkladtraining.com\/index.php?rest_route=\/wp\/v2\/posts\/695\/revisions"}],"predecessor-version":[{"id":699,"href":"https:\/\/ironkladtraining.com\/index.php?rest_route=\/wp\/v2\/posts\/695\/revisions\/699"}],"wp:attachment":[{"href":"https:\/\/ironkladtraining.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=695"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ironkladtraining.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=695"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ironkladtraining.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}