Quick calorie & macro calculator + sample daily meal plan. Fill inputs and click Generate.
Tell us about yourself
Default 1.6 g/kg (good for most goal-driven plans). Increase for heavy strength training.
`;
w.document.write(html); w.document.close();
});
// small nicety: enter to calculate when inside form fields
['age','height','weight','protPerKg'].forEach(id=>{
document.getElementById(id).addEventListener('keypress', (e)=>{ if(e.key === 'Enter') calculate(); });
});
// initialize with a generation
calculate();