Files
xrpl-dev-portal/template/page-faq2.html.jinja
Ferschmann Jakub 0aa0397e7d Show answer by url hash fragment
Show the answer of the question if there is a hash fragment in the url. Suitable when sending url with id of question.  Until now, the answer has not been shown.
2021-11-15 12:21:12 +01:00

41 lines
1.5 KiB
Django/Jinja

{% extends "pagetype-doc.html.jinja" %}
{% block head %}
<script>
$(document).ready(function() {
$(window.location.hash).closest(".q-wrapper").find('.answer-wrapper').collapse('show');
});
</script>
{% endblock %}
{% block bodyclasses %}page-faq landing-builtin-bg{% endblock %}
{% block breadcrumbs %}{% endblock %}
{% block main %}
<article class="row">
{% if (target.lang != "en" and "en" in currentpage.targets) or currentpage.untranslated_warning %}
{# Add a "sorry this page isn't translated" banner. #}
<div class="devportal-callout note mb-5"><strong>{% trans %}Sorry, this page is not available in your language.{% endtrans %}</strong>
<p class="mb-0">{% trans %}We are making an effort to offer the XRP Ledger Dev Portal in a variety of languages, but not all pages are available in all languages. If you'd like to help, <a href="https://github.com/XRPLF/xrpl-dev-portal/blob/master/CONTRIBUTING.md">please contribute!</a>{% endtrans %}</p>
</div><!--/.devportal-callout-->
{% endif %}
<div class="content container-new">
<div class="d-flex-column">
{{ content }}
</div>
</div>
</article>
{% endblock %}
{% block analytics %}
<script type="application/javascript">
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
"event": "page_info",
"page_type": "Splash Page",
"page_group": "About"
})
</script>
{% endblock analytics %}