We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Esto es para el tema de post-boil, q parece intersante https://alchemyoverlord.wordpress.com/
http://realbeer.com/hops/bcalc_js.html
ver codigo javascript ahi bcalc_js.html.zip
function checkNumber(input) { input.value = parseFloat(input.value); if(input.value == null || input.value.length == 0 || input.value == "NaN" || input.value <= 0) { input.value = ""; } calcBitter(input.form); } function checkGravity(input) { input.value = parseFloat(input.value); if(input.value == null || input.value.length == 0 || input.value == "NaN" || input.value <= 0 || input.value >= 2.0) { input.value = ""; } calcBitter(input.form); } function checkAlpha(input) { input.value = parseFloat(input.value); if(input.value == null || input.value.length == 0 || input.value == "NaN" || input.value <= 0 || input.value > 100) { input.value = ""; } calcBitter(input.form); } //Main bitterness calculator function function calcBitter(input) { var gravity; var volume; alpha = new Array(5); mass = new Array(5); time = new Array(5); util = new Array(5); mgperl = new Array(5); bu = 0; volume = parseFloat(document.bitter.volume.value); gravity = parseFloat(document.bitter.gravity.value)-1; document.bitter[27].value = 0 for (i=0; i<5; i++) { if(document.bitter[2+i*5].value == "" || document.bitter[3+i*5].value == "" || document.bitter[4+i*5].value == "" || document.bitter.gravity.value == "" || document.bitter.volume.value == "") { document.bitter[5+(i*5)].value = ""; document.bitter[6+(i*5)].value = ""; } else { alpha[i] = parseFloat(document.bitter[2+i*5].value)/100; mass[i] = parseFloat(document.bitter[3+i*5].value); time[i] = parseFloat(document.bitter[4+i*5].value); mgperl[i] = alpha[i]*mass[i]*7490/volume; util[i] = 1.65*Math.pow(0.000125, gravity)*(1-Math.exp(-0.04*time[i]))/4.15; document.bitter[5+i*5].value = Math.round(100*util[i]); document.bitter[6+i*5].value = Math.round(mgperl[i]*util[i]); bu += (mgperl[i]*util[i]); if(document.bitter[5+i*5].value == null || document.bitter[5+i*5].value.length == 0 || document.bitter[5+i*5].value == "NaN") { document.bitter[5+i*5].value = ""; } if(document.bitter[6+i*5].value == null || document.bitter[6+i*5].value.length == 0 || document.bitter[6+i*5].value == "NaN") { document.bitter[6+i*5].value = ""; } } } document.bitter.bu_total.value = Math.round(bu); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Esto es para el tema de post-boil, q parece intersante
https://alchemyoverlord.wordpress.com/
http://realbeer.com/hops/bcalc_js.html
ver codigo javascript ahi
bcalc_js.html.zip
The text was updated successfully, but these errors were encountered: