Skip to content

Commit

Permalink
use correct term for adjustment, changed unit descriptors
Browse files Browse the repository at this point in the history
  • Loading branch information
aschet committed Dec 9, 2021
1 parent 5faeedf commit 9d349a1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions en/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<div data-role="page" id="pcalculation">
<div data-role="header">
<h1>Refractometer-Calculator</h1>
<a href="#pcalibration" data-role="button" data-icon="gear" class="ui-btn-right">Calibration</a>
<a href="#pcalibration" data-role="button" data-icon="gear" class="ui-btn-right">Adjustment</a>
</div>
<div role="main" class="ui-content">
<form>
Expand Down Expand Up @@ -77,7 +77,7 @@ <h1>Refractometer-Calculator</h1>
<td id="caloutput"></td>
</tr>
<tr>
<td>Calibration:</td>
<td>Adjustment:</td>
<td id="caliboutput"></td>
</tr>
</tbody>
Expand All @@ -87,7 +87,7 @@ <h1>Refractometer-Calculator</h1>
<div data-role="page" id="pcalibration">
<div data-role="header">
<a href="#pcalculation" data-role="button" data-icon="back">Back</a>
<h1>Calibration</h1>
<h1>Adjustment</h1>
<a href="#pdetails" data-role="button" data-icon="plus" name="btnadd" id="btnadd">Add</a>
</div>
<div role="main" class="ui-content">
Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<div data-role="page" id="pcalculation">
<div data-role="header">
<h1>Refraktometer-Rechner</h1>
<a href="#pcalibration" data-role="button" data-icon="gear" class="ui-btn-right">Kalibrierung</a>
<a href="#pcalibration" data-role="button" data-icon="gear" class="ui-btn-right">Justierung</a>
</div>
<div role="main" class="ui-content">
<form>
Expand Down Expand Up @@ -72,7 +72,7 @@ <h1>Refraktometer-Rechner</h1>
<td id="caloutput"></td>
</tr>
<tr>
<td>Kalibrierung:</td>
<td>Justierung:</td>
<td id="caliboutput"></td>
</tr>
</tbody>
Expand All @@ -82,7 +82,7 @@ <h1>Refraktometer-Rechner</h1>
<div data-role="page" id="pcalibration">
<div data-role="header">
<a href="#pcalculation" data-role="button" data-icon="back">Zurück</a>
<h1>Kalibrierung</h1>
<h1>Justierung</h1>
<a href="#pdetails" data-role="button" data-icon="plus" name="btnadd" id="btnadd">Hinzufügen</a>
</div>
<div role="main" class="ui-content">
Expand Down
8 changes: 4 additions & 4 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,15 +337,15 @@ function textify2(value1, unit1, value2, unit2) {
function textifyExtract(value, unit, valueSG = NaN) {
if (isNaN(valueSG))
valueSG = pToSG(value);
return concat(textify(value, unit), textify(valueSG, "", 3));
return concat(textify(value, unit), textify(valueSG, "SG", 3));
}

function updateTable(result) {
$('#abvoutput').html(textify2(result.abv, "vol %", result.abw, "%"));
$('#abvoutput').html(textify2(result.abv, "%v/v", result.abw, "%w/w"));
$('#oeoutput').html(textifyExtract(result.oe, "°P"));
$('#aeoutput').html(textifyExtract(result.ae, "g/100g", result.fg));
$('#aeoutput').html(textifyExtract(result.ae, "%w/w", result.fg));
$('#adfoutput').html(textify(result.adf, "%"));
$('#reoutput').html(textifyExtract(result.re, "g/100g"));
$('#reoutput').html(textifyExtract(result.re, "%w/w"));
$('#rdfoutput').html(textify(result.rdf, "%"));
$('#caloutput').html(textify2(result.kj, "kJ", result.kcal, "kcal"));
$('#caliboutput').html(calibration.getType());
Expand Down

0 comments on commit 9d349a1

Please sign in to comment.