www/js/global.js

changeset 121
875aeb365e1c
parent 101
5b6bb99bc52a
child 133
22d28dd9c041
equal deleted inserted replaced
120:b28a3d6143bc 121:875aeb365e1c
17 * 17 *
18 * You should have received a copy of the GNU General Public License 18 * You should have received a copy of the GNU General Public License
19 * along with ThermFerm; see the file COPYING. If not, write to the Free 19 * along with ThermFerm; see the file COPYING. If not, write to the Free
20 * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. 20 * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
21 *****************************************************************************/ 21 *****************************************************************************/
22
23
24 var sugardensity = 1.611; //kg/l in solution
22 25
23 26
24 function getLocalization() { 27 function getLocalization() {
25 var localizationobj = {}; 28 var localizationobj = {};
26 localizationobj.pagerGoToPageString = "Gehe zu:"; 29 localizationobj.pagerGoToPageString = "Gehe zu:";
213 for (var i = 0; i < 20; i++) { 216 for (var i = 0; i < 20; i++) {
214 if (sg > 0) 217 if (sg > 0)
215 plato = 100 * sugars / (batch_size * sg); 218 plato = 100 * sugars / (batch_size * sg);
216 sg = plato_to_sg(plato); 219 sg = plato_to_sg(plato);
217 } 220 }
218 console.log("estimate_sg(" + sugars + "," + batch_size + ") : " + sg); 221 // console.log("estimate_sg(" + sugars + "," + batch_size + ") : " + sg);
219 return sg; 222 return sg;
220 } 223 }
221 224
222 225
223 /* 226 /*

mercurial