mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 11:45:50 +00:00
updates to the carbon calculator inputs, update to some of the copy on calc page
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
let arr = {
|
||||
'btc': {
|
||||
'kWh': 487.368757765725,
|
||||
'tons': 0.0000004103449,
|
||||
'kWh': 487.3687578,
|
||||
'tons': 0.0000002426743,
|
||||
'gas': 38.7744
|
||||
},
|
||||
'eth': {
|
||||
'kWh': 42.8633,
|
||||
'kWh': 42.86334969,
|
||||
'tons': 0.0000000273454,
|
||||
'gas': 2.38677
|
||||
},
|
||||
@@ -16,17 +16,17 @@ let arr = {
|
||||
},
|
||||
'xrp': {
|
||||
'kWh': 0.0079,
|
||||
'tons': 0.000000000003688,
|
||||
'tons': 0.0000000000045,
|
||||
'gas': 0.00063
|
||||
},
|
||||
'vsa': {
|
||||
'kWh': 0.0008,
|
||||
'tons': 0.0000000000005,
|
||||
'tons': 0.00000000000046,
|
||||
'gas': 0.00006
|
||||
},
|
||||
'mst': {
|
||||
'kWh': 0.0006,
|
||||
'tons': 0.0000000000005,
|
||||
'tons': 0.00000000000051,
|
||||
'gas': 0.00005
|
||||
},
|
||||
}
|
||||
@@ -75,7 +75,7 @@ function doCalculations(val){
|
||||
kwhComp = ( total / 50340000000 ).toFixed( 2 );
|
||||
|
||||
if (data_comp === 'tons') {
|
||||
total = parseInt(total * 1000000);
|
||||
total = total * 1000000;
|
||||
}
|
||||
|
||||
num.innerHTML = total.commarize();
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
|
||||
<p class="grey-400 text-small my-4">{% trans %}Comparing <span class="slider-amt"></span> Million Transactions in 2019{% endtrans %}</p>
|
||||
|
||||
<p class="calculator-section-description">{% trans %}The country of Portugal consumes ~50twh (1 billion) Kilowatt hours (KWH) of energy annually. Explore how much energy today’s various currencies consume in relation to Portugal.{% endtrans %}</p>
|
||||
<p class="calculator-section-description">{% trans %}The country of Portugal consumes ~50twh (1 billion) Kilowatt hours (kWh) of energy annually. Explore how much energy today’s various currencies consume in relation to Portugal.{% endtrans %}</p>
|
||||
|
||||
<div class="d-viz d-viz-1 mt-10">
|
||||
<ul class="d-sm-flex p-0">
|
||||
@@ -106,7 +106,7 @@
|
||||
<img src="assets/img/icons/bw-bitcoin.png" class="mw-100 mt-3">
|
||||
<p class="h6 mt-2 mb-1">{% trans %}Bitcoin{% endtrans %}</p>
|
||||
<h5 class="h4 normal mb-0" id="kWh-btc"></h5>
|
||||
<p class="text-small black-90">{% trans %}KWh{% endtrans %}</p>
|
||||
<p class="text-small black-90">{% trans %}kWh{% endtrans %}</p>
|
||||
</div>
|
||||
</li>
|
||||
<li class="d-output d-crypto active" data-comp="kWh" data-type="eth">
|
||||
@@ -118,7 +118,7 @@
|
||||
<img src="assets/img/icons/bw-ethereum.png" class="mw-100 mt-3">
|
||||
<p class="h6 mt-2 mb-1">{% trans %}Ethereum{% endtrans %}</p>
|
||||
<h5 class="h4 normal mb-0" id="kWh-eth"></h5>
|
||||
<p class="text-small black-90">{% trans %}KWh{% endtrans %}</p>
|
||||
<p class="text-small black-90">{% trans %}kWh{% endtrans %}</p>
|
||||
</div>
|
||||
</li>
|
||||
<li class="d-output d-cash" data-comp="kWh" data-type="pap">
|
||||
@@ -130,7 +130,7 @@
|
||||
<img src="assets/img/icons/bw-cash.png" class="mw-100 mt-3 mb-2">
|
||||
<p class="h6 mt-2 mb-1">{% trans %}Cash{% endtrans %}</p>
|
||||
<h5 class="h4 normal mb-0" id="kWh-pap"></h5>
|
||||
<p class="text-small black-90">{% trans %}KWh{% endtrans %}</p>
|
||||
<p class="text-small black-90">{% trans %}kWh{% endtrans %}</p>
|
||||
</div>
|
||||
</li>
|
||||
<li class="d-output d-crypto d-credit d-cash active" data-comp="kWh" data-type="xrp">
|
||||
@@ -142,7 +142,7 @@
|
||||
<img src="assets/img/icons/xrp.png" class="mw-100 mt-3">
|
||||
<p class="h6 mt-2 mb-1">XRP</p>
|
||||
<h5 class="h4 normal mb-0" id="kWh-xrp"></h5>
|
||||
<p class="text-small black-90">{% trans %}KWh{% endtrans %}</p>
|
||||
<p class="text-small black-90">{% trans %}kWh{% endtrans %}</p>
|
||||
</div>
|
||||
</li>
|
||||
<li class="d-output d-credit" data-comp="kWh" data-type="vsa">
|
||||
@@ -154,7 +154,7 @@
|
||||
<img src="assets/img/icons/bw-visa.png" alt="{% trans %}Visa{% endtrans %}" class="mw-100 mb-2" style="margin-top: 1.85rem;">
|
||||
<p class="h6 mt-2 mb-1">Visa</p>
|
||||
<h5 class="h4 normal mb-0" id="kWh-vsa"></h5>
|
||||
<p class="text-small black-90">{% trans %}KWh{% endtrans %}</p>
|
||||
<p class="text-small black-90">{% trans %}kWh{% endtrans %}</p>
|
||||
</div>
|
||||
</li>
|
||||
<li class="d-output d-credit" data-comp="kWh" data-type="mst">
|
||||
@@ -166,7 +166,7 @@
|
||||
<img src="assets/img/icons/bw-mastercard.png" alt="{% trans %}Mastercard{% endtrans %}" class="mw-100 mb-1" style="margin-top: 1.65rem;">
|
||||
<p class="h6 mt-2 mb-1">{% trans %}Mastercard{% endtrans %}</p>
|
||||
<h5 class="h4 normal mb-0" id="kWh-mst"></h5>
|
||||
<p class="text-small black-90">{% trans %}KWh{% endtrans %}</p>
|
||||
<p class="text-small black-90">{% trans %}kWh{% endtrans %}</p>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
@@ -267,7 +267,7 @@
|
||||
<section class="row last-section">
|
||||
<div class="col-sm-7 col-sm-offset-5">
|
||||
<h4>{% trans %}Breaking Down Individual Transactions{% endtrans %}</h4>
|
||||
<p>{% trans %}Looking at individual transactions below, compare how a single transaction across each form of currency equates to KWh, gallons of gas and CO<sub>2</sub> emissions.{% endtrans %}</p>
|
||||
<p>{% trans %}Looking at individual transactions below, compare how a single transaction across each form of currency equates to kWh, gallons of gas and CO<sub>2</sub> emissions.{% endtrans %}</p>
|
||||
</div>
|
||||
<div class="col-sm-12 mt-14 overflow-x-xs">
|
||||
<table id="calculator-table">
|
||||
@@ -282,37 +282,37 @@
|
||||
<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">4.1<sup>-7</sup><span class="ratio"> Mt/tx</span></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.7744<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>
|
||||
<td class="fs-6 text-right">42.8633<span class="ratio"> KWh/tx</span></td>
|
||||
<td class="fs-6 text-right">2.73<sup>-8</sup><span class="ratio"> Mt/tx</span></td>
|
||||
<td class="fs-6 text-right">42.8633<span class="ratio"> kWh/tx</span></td>
|
||||
<td class="fs-6 text-right">4.5<sup>-8</sup><span class="ratio"> Mt/tx</span></td>
|
||||
<td class="fs-6 text-right">1.1311<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/xrp@2x.png"></div>XRP</td>
|
||||
<td class="fs-6 text-right">0.0079<span class="ratio"> KWh/tx</span></td>
|
||||
<td class="fs-6 text-right">0.0079<span class="ratio"> kWh/tx</span></td>
|
||||
<td class="fs-6 text-right">3.7<sup>-12</sup><span class="ratio"> Mt/tx</span></td>
|
||||
<td class="fs-6 text-right">0.0006<span class="dblue">0</span><span class="ratio"> gal/tx</span></td>
|
||||
<td class="fs-6 text-right">0.00063<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="w40" src="assets/img/icons/visa@2x.png"></div>Visa</td>
|
||||
<td class="fs-6 text-right">0.0008<span class="ratio"> KWh/tx</span></td>
|
||||
<td class="fs-6 text-right">5.0<sup>-13</sup><span class="ratio"> Mt/tx</span></td>
|
||||
<td class="fs-6 text-right">0.0008<span class="ratio"> kWh/tx</span></td>
|
||||
<td class="fs-6 text-right">4.6<sup>-13</sup><span class="ratio"> Mt/tx</span></td>
|
||||
<td class="fs-6 text-right">0.00006<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="w40" src="assets/img/icons/mastercard@2x.png"></div>Mastercard</td>
|
||||
<td class="fs-6 text-right">0.0006<span class="ratio"> KWh/tx</span></td>
|
||||
<td class="fs-6 text-right">5.0<sup>-13</sup><span class="ratio"> Mt/tx</span></td>
|
||||
<td class="fs-6 text-right">0.0006<span class="ratio"> kWh/tx</span></td>
|
||||
<td class="fs-6 text-right">5.1<sup>-13</sup><span class="ratio"> Mt/tx</span></td>
|
||||
<td class="fs-6 text-right">0.00005<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="w40" src="assets/img/icons/paper-money@2x.png"></div>{% trans %}Paper Currency{% endtrans %}</td>
|
||||
<td class="fs-6 text-right">0.044<span class="dblue">0</span><span class="ratio"> KWh/tx</span></td>
|
||||
<td class="fs-6 text-right">0.044<span class="dblue">0</span><span class="ratio"> kWh/tx</span></td>
|
||||
<td class="fs-6 text-right">2.32<sup>-11</sup><span class="ratio"> Mt/tx</span></td>
|
||||
<td class="fs-6 text-right">0.0035<span class="dblue">0</span><span class="ratio"> gal/tx</span></td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user