www/js/global.js

changeset 446
ee7bcfb8e270
parent 439
b72478cd2c18
child 462
c91175610f8a
equal deleted inserted replaced
445:bcba4f17703f 446:ee7bcfb8e270
116 116
117 var HopFormData = [ 117 var HopFormData = [
118 { id: 0, en: 'Pellet', nl: 'Pellets' }, 118 { id: 0, en: 'Pellet', nl: 'Pellets' },
119 { id: 1, en: 'Plug', nl: 'Plugs' }, 119 { id: 1, en: 'Plug', nl: 'Plugs' },
120 { id: 2, en: 'Leaf', nl: 'Bloemen' }, 120 { id: 2, en: 'Leaf', nl: 'Bloemen' },
121 { id: 3, en: 'Leaf wet', nl: 'Hop nat' } 121 { id: 3, en: 'Leaf wet', nl: 'Hop nat' },
122 { id: 4, en: 'Cryo', nl: 'Cryo' }
122 ]; 123 ];
123 var HopFormSource = { 124 var HopFormSource = {
124 localdata: HopFormData, 125 localdata: HopFormData,
125 datatype: "array", 126 datatype: "array",
126 datafields: [{ name: 'id' }, { name: 'en' }, { name: 'nl' }] 127 datafields: [{ name: 'id' }, { name: 'en' }, { name: 'nl' }]
867 pfactor+=my_factor_plug/100; 868 pfactor+=my_factor_plug/100;
868 } 869 }
869 if(Form==3){// Wet leaf 870 if(Form==3){// Wet leaf
870 pfactor+=my_factor_wethop/100;// From https://github.com/chrisgilmerproj/brewday/blob/master/brew/constants.py 871 pfactor+=my_factor_wethop/100;// From https://github.com/chrisgilmerproj/brewday/blob/master/brew/constants.py
871 } 872 }
873 if(Form==4){// Cryo hop
874 pfactor+=my_factor_cryohop/100;
875 }
872 876
873 if(Method==0){// Tinseth 877 if(Method==0){// Tinseth
874 /* http://realbeer.com/hops/research.html */ 878 /* http://realbeer.com/hops/research.html */
875 var AddedAlphaAcids = (alpha * mass * 1000) / liters; 879 var AddedAlphaAcids = (alpha * mass * 1000) / liters;
876 var Bigness_factor = 1.65 * Math.pow( 0.000125, gravity - 1); 880 var Bigness_factor = 1.65 * Math.pow( 0.000125, gravity - 1);

mercurial