diff --git a/assets/js/calculator/carbon-calculator.js b/assets/js/calculator/carbon-calculator.js index 18433ed746..0b8453645a 100644 --- a/assets/js/calculator/carbon-calculator.js +++ b/assets/js/calculator/carbon-calculator.js @@ -206,5 +206,14 @@ $(document).ready(function(){ inputs_offset.addClass('offset'); $(this).text('Hide Inputs'); } - }) + }); + + $(document).on('click', 'a[href^="#"]', function(event) { + event.preventDefault(); + + $('html, body').animate({ + scrollTop: $($.attr(this, 'href')).offset().top - 80 + }, 800); + }); + }); diff --git a/assets/pdf/xrpl-sustainability-methodology-2020.pdf b/assets/pdf/xrpl-sustainability-methodology-2020.pdf new file mode 100644 index 0000000000..86a3ddc887 Binary files /dev/null and b/assets/pdf/xrpl-sustainability-methodology-2020.pdf differ diff --git a/tool/template-calculator.html b/tool/template-calculator.html index f0fe05738a..23c33d4fc4 100644 --- a/tool/template-calculator.html +++ b/tool/template-calculator.html @@ -48,7 +48,7 @@