<!-- -->

{% extends "!layout.html" %}
{% block sidebartitle %}
{{ super() }}
<br>
API reference: <a href="api/kotlin/corda/index.html">Kotlin</a>/ <a href="api/javadoc/index.html">JavaDoc</a>
<br>
<a href="http://slack.corda.net">Slack</a>
<br>
<a href="https://stackoverflow.com/questions/tagged/corda">Stack Overflow</a>
<br>
<select id="versionDropdown" class="version-dropdown" onChange="window.location.href=this.value"></select>
<br>
<span style="display:none" id="version">{{ version }}</span>
{% endblock %}

{% block footer %}
<script>
    // A synchronous request to retrieve all the Corda versions.
    $.getJSON("https://docs.corda.net/_static/versions", function(data) {
        // Grab the current version.
        var version = $("#version").html();

        // We populate the version dropdown.
        $.each(data, function(link, text) {
            if (text === version) {
                $('#versionDropdown').append($('<option>').text(text).attr('value', link).prop('selected', true));
            } else {
                $('#versionDropdown').append($('<option>').text(text).attr('value', link));
            }
        });
    });
</script>

<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-87760032-1', 'auto');
  ga('send', 'pageview');

</script>
{% endblock %}
