adding pdf, added scroll on click for calc page

This commit is contained in:
Calvin Jhunjhnuwala
2020-09-28 11:37:16 -07:00
parent 030467cc2e
commit af7070977e
3 changed files with 12 additions and 3 deletions

View File

@@ -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);
});
});

Binary file not shown.

View File

@@ -48,7 +48,7 @@
<div class="container" id="calculator">
<div class="col-sm-5 mt-20 mb-30 offset-sm-4">
<h3 class="mb-4">{% trans %}How Does XRP Compare to Other Currencies?{% endtrans %}</h3>
<a href="#" class="text-green arrow-link bold">{% trans %}Learn more about the methodology{% endtrans %}</a>
<a href="./assets/pdf/xrpl-sustainability-methodology-2020.pdf" target="_blank" class="text-green arrow-link bold">{% trans %}Learn more about the methodology{% endtrans %}</a>
</div>
</div>
@@ -83,7 +83,7 @@
</a>
</div>
</div>
<a href="#" class="text-white arrow-link bold mt-4 d-block">{% trans %}Learn more about the methodology{% endtrans %}</a>
<a href="./assets/pdf/xrpl-sustainability-methodology-2020.pdf" target="_blank" class="text-white arrow-link bold mt-4 d-block">{% trans %}Learn more about the methodology{% endtrans %}</a>
</div>
</div>