|
9 | 9 | ViewBag.Title = "Alcohol Calculator - Hops";
|
10 | 10 | }
|
11 | 11 |
|
12 |
| - <div class="panel panel-default"> |
13 |
| - <div class="panel-heading">Alcohol Calculator</div> |
14 |
| - |
15 |
| - <div class="panel-body"> |
16 |
| - <div class="form-group"> |
17 |
| - <label for="og">Original Gravity:</label> |
18 |
| - <input type="number" class="form-control" id="og" placeholder="1.000"> |
19 |
| - </div> |
20 |
| - <div class="form-group"> |
21 |
| - <label for="fg">Final Gravity:</label> |
22 |
| - <input type="number" class="form-control" id="fg" placeholder="1.000"> |
23 |
| - </div> |
24 |
| - <div class="form-group"> |
25 |
| - <label for="oBrix">Original Brix:</label> |
26 |
| - <input type="number" class="form-control" id="oBrix"> |
27 |
| - </div> |
28 |
| - <div class="form-group"> |
29 |
| - <label for="mBrix">Measured Final Brix:</label> |
30 |
| - <input type="number" class="form-control" id="mBrix"> |
31 |
| - <h5><small>Alcohol affects the measured index of refraction, so we need to correct for that post-fermentation using the original brix measurement.</small></h5> |
32 |
| - </div> |
33 |
| - <div class="form-group"> |
34 |
| - <label for="fBrix">Final Brix:</label> |
35 |
| - <input type="number" class="form-control" id="fBrix"> |
36 |
| - </div> |
37 |
| - <div class="form-group"> |
38 |
| - <label for="abv">Alcohol By Volume:</label> |
39 |
| - <input type="text" class="form-control" id="abv"> |
40 |
| - </div> |
41 |
| - <div class="form-group"> |
42 |
| - <label for="abw">Alcohol By Weight:</label> |
43 |
| - <input type="text" class="form-control" id="abw"> |
44 |
| - </div> |
45 |
| - </div> |
| 12 | +<div class="card"> |
| 13 | + <div class="card-header">Alcohol Calculator</div> |
| 14 | + <div class="card-body"> |
| 15 | + <div class="form-group"> |
| 16 | + <label for="og">Original Gravity:</label> |
| 17 | + <input type="number" class="form-control" id="og" placeholder="1.000"> |
46 | 18 | </div>
|
| 19 | + <div class="form-group"> |
| 20 | + <label for="fg">Final Gravity:</label> |
| 21 | + <input type="number" class="form-control" id="fg" placeholder="1.000"> |
| 22 | + </div> |
| 23 | + <div class="form-group"> |
| 24 | + <label for="oBrix">Original Brix:</label> |
| 25 | + <input type="number" class="form-control" id="oBrix"> |
| 26 | + </div> |
| 27 | + <div class="form-group"> |
| 28 | + <label for="mBrix">Measured Final Brix:</label> |
| 29 | + <input type="number" class="form-control" id="mBrix"> |
| 30 | + <h5><small>Alcohol affects the measured index of refraction, so we need to correct for that post-fermentation using the original brix measurement.</small></h5> |
| 31 | + </div> |
| 32 | + <div class="form-group"> |
| 33 | + <label for="fBrix">Final Brix:</label> |
| 34 | + <input type="number" class="form-control" id="fBrix"> |
| 35 | + </div> |
| 36 | + <div class="form-group"> |
| 37 | + <label for="abv">Alcohol By Volume:</label> |
| 38 | + <input type="text" class="form-control" id="abv"> |
| 39 | + </div> |
| 40 | + <div class="form-group"> |
| 41 | + <label for="abw">Alcohol By Weight:</label> |
| 42 | + <input type="text" class="form-control" id="abw"> |
| 43 | + </div> |
| 44 | + </div> |
| 45 | +</div> |
47 | 46 |
|
48 |
| - <div class="panel panel-default"> |
49 |
| - <div class="panel-heading">Information</div> |
| 47 | +<br/> |
50 | 48 |
|
51 |
| - <div class="panel-body"> |
52 |
| - <p>This tool allows you to convert between brix and gravity and calculates alcohol by volume (ABV) as well as alcohol by weight (ABV).</p> |
| 49 | +<div class="card"> |
| 50 | + <div class="card-header">Information</div> |
| 51 | + <div class="card-body"> |
| 52 | + <p>This tool allows you to convert between brix and gravity and calculates alcohol by volume (ABV) as well as alcohol by weight (ABV).</p> |
53 | 53 |
|
54 |
| - Formula: |
55 |
| - <pre> |
| 54 | + Formula: |
| 55 | + <pre> |
56 | 56 | ABV = (OG - FG) × 131
|
57 | 57 | ABW = ABV × 0.79336
|
58 | 58 | GRAVITY = BRIX ÷ (258.6 - (BRIX ÷ 258.2 × 227.1))) + 1
|
59 | 59 | BRIX = (((182.4601 × GRAVITY - 775.6821) × GRAVITY + 1262.7794) × GRAVITY - 669.5622)
|
60 | 60 | </pre>
|
61 |
| - </div> |
62 |
| - </div> |
| 61 | + </div> |
| 62 | +</div> |
63 | 63 |
|
64 | 64 | <script>
|
65 | 65 | function brixToGravity(brix) {
|
|
0 commit comments