mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-12 15:55:49 +00:00
Merge pull request #963 from ripple/calc-new-numbers
Updated Bitcoin numbers for the Carbon Calculator
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
let calculator_data = {
|
||||
'btc': {
|
||||
'kWh': 487.3687578,
|
||||
'tons': 0.0000002426743,
|
||||
'gas': 38.77453
|
||||
'kWh': 951.58,
|
||||
'tons': 0.000000466,
|
||||
'gas': 75.7
|
||||
},
|
||||
'eth': {
|
||||
'kWh': 42.86334969,
|
||||
@@ -87,6 +87,7 @@ function doCalculations(val){
|
||||
|
||||
// This is for the kWh comparison, it animates the transition/selection
|
||||
if (data_comp === 'kWh' && kWhComp > .02){
|
||||
if ( kWhComp > 1.1 ) { kWhComp = 1.03 };
|
||||
let dot = document.getElementById(data_comp + '-' + data_type + '-dot');
|
||||
dot.style.transition = "all .2s ease-in-out";
|
||||
dot.style.transform = "scale(" + kWhComp * 100 + ")";
|
||||
|
||||
@@ -282,9 +282,9 @@
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="fs-5-5 bold"><div class="w48 mr-3 text-center d-inline-block"><img class="h36" src="assets/img/icons/bitcoin@2x.png"></div>Bitcoin</td>
|
||||
<td class="fs-6 text-right">487.3688<span class="ratio"> kWh/tx</span></td>
|
||||
<td class="fs-6 text-right">2.42<sup>-7</sup><span class="ratio"> Mt/tx</span></td>
|
||||
<td class="fs-6 text-right">38.7745<span class="ratio"> gal/tx</span></td>
|
||||
<td class="fs-6 text-right">951.58<span class="ratio"> kWh/tx</span></td>
|
||||
<td class="fs-6 text-right">4.66<sup>-7</sup><span class="ratio"> Mt/tx</span></td>
|
||||
<td class="fs-6 text-right">75.7<span class="ratio"> gal/tx</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="fs-5-5 bold"><div class="w48 mr-3 text-center d-inline-block"><img class="h36" src="assets/img/icons/ethereum@2x.png"></div>Ethereum</td>
|
||||
|
||||
Reference in New Issue
Block a user