INGREDIENTS
1 serving
100 percent whole-wheat crackers
1 serving
100 percent whole-wheat crackers
1 serving
block style cream cheese
1 serving
var body_fat_percent = document.getelementbyid)
1 serving
nouislider.create
1 serving
start: [0]
1
1 serving
connect: [true
1 serving
range: {
1 serving
min: [0]
1 serving
}
1 serving
format: wnumb
? decimals: 0, decimals: 0, decimals: , 0.0 {"us"=>{"amount"=>0.0, "unitShort"=>"", "unitLong"=>""}, "metric"=>{"amount"=>0.0, "unitShort"=>"", "unitLong"=>""}}
1 serving
mark
1 serving
})
1 serving
})
1 serving
var deficitsurplus_value = document.getelementbyid
1 serving
deficitsurplus_value
1 serving
nouislider.create
1 serving
start: [0]
1
1 serving
connect: [true
1 serving
range: {
1 serving
min: [0]
1 serving
}
1 serving
format: wnumb
? decimals: 0, decimals: 0, decimals: , 0.0 {"us"=>{"amount"=>0.0, "unitShort"=>"", "unitLong"=>""}, "metric"=>{"amount"=>0.0, "unitShort"=>"", "unitLong"=>""}}
1 serving
mark
1 serving
})
1 serving
})
1 serving
var activity_level = document.getelementbyid)
1 serving
nouislider.create
1 serving
start: [1]
1/100
1 serving
connect: [true
1 serving
range: {
1 serving
min': [1]
1 serving
max': [2]
1 serving
}
1 serving
pips: {
1 serving
mode: 'values
1
values: [1
5
1 serving
stepped: true
1 serving
format: wnumb
2
1 serving
prefix
1 serving
})
1 serving
}
1 serving
format: wnumb
2
1 serving
mark
1 serving
})
1 serving
})
1 serving
body_fat_percent.nouislider.on
1 serving
document.getelementsbyclassname)[0].innerhtml = values[handle]
1 serving
document.getelementsbyname)[0].value = values[handle]
1 serving
calculateketo)
1 serving
})
1 serving
deficitsurplus_value.nouislider.on
1 serving
document.getelementsbyclassname)[2].innerhtml = values[handle]
1 serving
document.getelementsbyname)[0].value = values[handle]
1 serving
calculateketo)
1 serving
})
1 serving
activity_level.nouislider.on
1 serving
if
1 3/10
parsefloat)
1 serving
{
1 3/20
document.getelementsbyname)[0].value
1 serving
document.getelementbyid).innerhtml = "sedentary. not much daily activity
1 serving
}
1 serving
if
1 3/10
parsefloat) >= &&
1 9/20
parsefloat)
1 serving
{
1 3/10
document.getelementsbyname)[0].value
1
document.getelementbyid).innerhtml = "lightly active. daytime walking. from to 3 hours a week of exercise
1 serving
}
1 serving
if
1 9/20
parsefloat) >= &&
1 3/5
parsefloat)
1 serving
{
1 9/20
document.getelementsbyname)[0].value
3
document.getelementbyid).innerhtml = "moderately active. active day job. exercise from to 5 hours a week
1 serving
}
1 serving
if
1 3/5
parsefloat) >= &&
1 3/4
parsefloat)
1 serving
{
1 3/5
document.getelementsbyname)[0].value
6
document.getelementbyid).innerhtml = "very active. intense exercise from to 7 days a week
1 serving
}
1 3/4
if >= ) {
1 3/4
document.getelementsbyname)[0].value
1 serving
document.getelementbyid).innerhtml = "extremely active. training twice a day
1 serving
}
1 serving
calculateketo)
1 serving
})
var dd__coumd
1 serving
document.getelementsbyname)[0].addeventlistener
1 lbs
document.getelementsbyname)[0].value = [0].value) * 2.204620823516057).tofixed
1 serving
})
1 lbs
document.getelementsbyname)[0].addeventlistener
1 lbs
document.getelementsbyname)[0].value = [0].value) * 0.45359200000016791643).tofixed
1 serving
})
1 serving
var closeicons = document.getelementsbyclassname)
1 serving
{
1 serving
closeicons[i].addeventlistener)
1 serving
}
1 serving
document.getelementsbyname)[0].addeventlistener)
1 serving
document.getelementsbyname)[1].addeventlistener)
1 serving
document.getelementsbyname)[2].addeventlistener)
1 serving
document.getelementbyid).onclick = function {
1
if {
1 serving
getpdfreport)
1 serving
}
1 serving
}
1 serving
function calculateketo) {
1 serving
var inv = {
1 serving
body_weight_kg: parsefloat
1 serving
document.getelementsbyname)[0].value
1 lbs
body_weight_lbs: parsefloat
1 lbs
document.getelementsbyname)[0].value
1 serving
body_fat_percent: parsefloat
1 serving
document.getelementsbyname)[0].value
1 serving
activity_level: parsefloat
1 serving
document.getelementsbyname)[0].value
1 serving
deficitsurplus_value: parsefloat
1 serving
document.getelementsbyname)[0].value
1 serving
deficitsurplus: parsefloat
1 serving
document.queryselector).value
1 serving
protein_ratio: parsefloat
1 serving
document.getelementsbyname)[0].value
1 serving
daily_net_carbs: parsefloat
1 serving
document.getelementsbyname)[0].value
1 serving
}
1 serving
if {
1
if == ) {
1
inv.activity_level
1 serving
}
1 serving
}
1/100
inv.lbm_pound = inv.body_weight_lbs
1/100
inv.lbm_pkg = inv.body_weight_kg
1 pkg
inv.bmr = 370
1/10
inv.tef = inv.bmr
1 serving
inv.bmr_tef = inv.bmr
1 serving
inv.tdee = inv.bmr * inv.activity_level
1 serving
inv.tdc
1 serving
inv.tdee
100
4
inv.carb_cal = inv.daily_net_carbs
4
inv.protein_cal = inv.protein_ratio * inv.lbm_pound
4
inv.fat_cal = - )
1 g
inv.carb_gramm = inv.daily_net_carbs
4
inv.protein_gramm = inv.protein_cal
9
inv.fat_gramm = inv.fat_cal
1 g
inv.total = inv.carb_gramm
100
inv.carb_per
100
inv.protein_per
100
inv.fat_per
1 serving
if ) {
1 lb
document.getelementbyid).innerhtml = inv.lbm_pound.tofixed
1 kg
document.getelementbyid).innerhtml = inv.lbm_pkg.tofixed
1 serving
document.getelementbyid).innerhtml = inv.bmr.tofixed
1 serving
document.getelementbyid).innerhtml = inv.tef.tofixed
1 serving
document.getelementbyid).innerhtml = inv.bmr_tef.tofixed
1 serving
document.getelementbyid).innerhtml = inv.tdee.tofixed
1 c
document.getelementsbyclassname)[0].innerhtml = inv.tdc.tofixed
1 c
document.getelementsbyclassname)[1].innerhtml = inv.tdc.tofixed
1 serving
document.getelementbyid).innerhtml = inv.carb_cal.tofixed
1 serving
document.getelementbyid).innerhtml = inv.protein_cal.tofixed
1 serving
document.getelementbyid).innerhtml = inv.fat_cal.tofixed
1 g
document.getelementbyid).innerhtml = inv.carb_gramm.tofixed
1 g
document.getelementbyid).innerhtml = inv.protein_gramm.tofixed
1 g
document.getelementbyid).innerhtml = inv.fat_gramm.tofixed
1 serving
document.getelementbyid).innerhtml = inv.carb_per.tofixed
1 serving
document.getelementbyid).innerhtml = inv.protein_per.tofixed
1 serving
document.getelementbyid).innerhtml = inv.fat_per.tofixed
1 serving
}
if {
1 serving
console.log)
1 serving
} else {
1 serving
console.log)
1 serving
}
1
dd__coumd
1 serving
}
1 serving
function getpdfreport) {
1 serving
var doc = new jspdf)
1 c
doc.setfont)
1 c
doc.setfonttype)
1 c
doc.setfontsize
20
var x
20
var y
20
doc.addimage
50
y
1 c
doc.setfonttype)
51
doc.settextcolor
1 c
doc.text)
60
y
1 Tbsp
var hid_tbsp = doc.autotablehtmltojson))
1 c
doc.autotable
1 serving
styles: {
10
1 serving
linecolor: [255
1 serving
}
1 serving
headerstyles: {
1 serving
textcolor: [255
1 serving
fillcolor: [153
1 serving
}
1 serving
bodystyles: {
1 serving
fillcolor: [239
1 serving
textcolor: [0
1 serving
}
1 serving
alternaterowstyles: {
1 serving
fillcolor: [255
1 serving
}
5
starty: y
1 serving
margin: {
1 serving
left: x
1 serving
}
1 serving
})
1 c
doc.save)
1 serving
}