UNPKG

co2offset

Version:

Greenhouse Gas Accounting - ISO14064

1 lines 2.97 kB
void 0===window.app&&(window.app={});const app=async function(){$("#searchFrm").submit((function(e){window.app.renderSearchResults(),e.preventDefault()})),$("#hdrInfo").hide(),$(".hdrinfo").hide();let e=await window.co2accounting.keyValue();for(const[t,a]of Object.entries(e))$("#"+t).val(a);if($(".metaInfo").change((async function(t){$("#saveBadge").show();let a={};a[$(this).attr("name")]=$(this).val(),e=await window.co2accounting.keyValue(a),$("#saveBadge").hide()})),void 0!==e.nature){if("Person"==e.nature||"Household"==e.nature){$("#challengesAndOppotunities").html("What are the challenges and opportunities to climate action that might affect your personal financial or strategic plans?");let e="";e+='<li class="caoitem">Saving energy by replacing heating/fridge/aircondition does reduce electricity costs.</li>',e+='<li class="caoitem">Reducing usage of car does extend its lifetime and save fuel costs.</li>',e+='<li class="caoitem">Avoid travelling by plane.</li>',e+='<li class="caoitem">Buy from local farmers directly does reduce transportation costs.</li>',$("#caolist").html(e),$("#sampleCAO").show()}if("Company"==e.nature){let e="";e+='<li class="caoitem">New more efficient machinery that would helps us to reduce our emissions and at the same time save money.</li>',e+='<li class="caoitem">A new travel policy avoids unnecessary flights and saves worktime and money.</li>',e+='<li class="caoitem">An eco drive training helps us to reduce gas costs of our company fleed.</li>',e+='<li class="caoitem">Procurement rules ensure that we avoid upstream emissions and get a better partnership with our suppliers.</li>',e+='<li class="caoitem">Doing a carbon accounting allows us to attract more investors.</li>',$("#caolist").html(e),$("#sampleCAO").show()}"Product"==e.nature&&($("#challengesAndOppotunities").html("What are the challenges and opportunities to climate action that might affect your products financial or strategic plans?"),$("#sampleCAO").hide()),"Project"==e.nature&&($("#challengesAndOppotunities").html("What are the challenges and opportunities to climate action that might affect your projects financial or strategic plans?"),$("#sampleCAO").hide()),"Other"==e.nature&&($("#challengesAndOppotunities").html("What are the challenges and opportunities to climate action that might affect financial or strategic plans?"),$("#sampleCAO").hide()),$(".caoitem").hover((function(){$(this).addClass("text-primary")}),(function(){$(this).removeClass("text-primary")})),$(".caoitem").click((function(e){$("#challengesAndOpportunities").val($("#challengesAndOpportunities").val()+" "+$(this).html()),$("#challengesAndOpportunities").change()}))}$("#progressOnOpportunities").change((function(e){$("#coaProgressPercent").html($(this).val())})),$("#btnRefreshCache").click((async function(){await window.app.clearCache(),location.href="./index.html"})),$("#endPeriodLevel").html($("#endDate").val()),$("#progressOnOpportunities").change()};