62 ok_hops = 1, // Hops are in stock |
62 ok_hops = 1, // Hops are in stock |
63 ok_miscs = 1, // Miscs are in stock |
63 ok_miscs = 1, // Miscs are in stock |
64 ok_yeasts = 1, // Yeasts are in stock |
64 ok_yeasts = 1, // Yeasts are in stock |
65 ok_waters = 1, // Waters are in stock |
65 ok_waters = 1, // Waters are in stock |
66 |
66 |
|
67 data_loaded = 0; |
67 error_count = 0; |
68 error_count = 0; |
68 |
69 |
69 hop_flavour = 0, |
70 hop_flavour = 0, |
70 hop_aroma = 0, |
71 hop_aroma = 0, |
71 mash_infuse = 0, |
72 mash_infuse = 0, |
565 editMash(dataRecord); |
566 editMash(dataRecord); |
566 console.log('main data loaded'); |
567 console.log('main data loaded'); |
567 calcStage(); |
568 calcStage(); |
568 $('#jqxTabs').jqxTabs('select', 2); |
569 $('#jqxTabs').jqxTabs('select', 2); |
569 console.log('main data ready'); |
570 console.log('main data ready'); |
|
571 data_loaded = 1; |
570 }, |
572 }, |
571 loadError: function(jqXHR, status, error) { |
573 loadError: function(jqXHR, status, error) { |
572 console.log('main data load error: ' + status + ' ' + error); |
574 console.log('main data load error: ' + status + ' ' + error); |
573 } |
575 } |
574 }); |
576 }); |
2868 $('#wg_chloride').val(Math.round(chloride * 10) / 10); |
2876 $('#wg_chloride').val(Math.round(chloride * 10) / 10); |
2869 wg_sulfate = sulfate; |
2877 wg_sulfate = sulfate; |
2870 $('#wg_sulfate').val(Math.round(sulfate * 10) / 10); |
2878 $('#wg_sulfate').val(Math.round(sulfate * 10) / 10); |
2871 // Note: brouwhulp has the malts included here in the result. |
2879 // Note: brouwhulp has the malts included here in the result. |
2872 //var wg_ph = ph; |
2880 //var wg_ph = ph; |
|
2881 var mash_ph = Round(MashpH(), 1); |
2873 $('#wg_ph').val(Round(ph, 1)); |
2882 $('#wg_ph').val(Round(ph, 1)); |
2874 $('#wb_ph').val(Round(MashpH(), 1)); |
2883 $('#wb_ph').val(mash_ph); |
2875 $('#est_mash_ph').val(Round(MashpH(), 1)); |
2884 $('#est_mash_ph').val(mash_ph); |
2876 bicarbonate = total_alkalinity * 1.22; |
2885 bicarbonate = total_alkalinity * 1.22; |
2877 wg_bicarbonate = bicarbonate; |
2886 wg_bicarbonate = bicarbonate; |
2878 |
2887 |
2879 // Noot: de volgende berekeningen geven bijna gelijke resultaten in Brun'water. |
2888 // Noot: de volgende berekeningen geven bijna gelijke resultaten in Brun'water. |
2880 // Calculate Ca |
2889 // Calculate Ca |