further cleanup

This commit is contained in:
Lucy Cifferello
2021-12-13 23:09:09 -07:00
parent d3f13b15ca
commit 567be2d2bd
3 changed files with 0 additions and 45 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

View File

@@ -1,30 +0,0 @@
$(document).ready(function (e) {
// open external links in separate tab
$('a[href^="http://"], a[href^="https://"]').not('a[class*=internal]').attr('target', '_blank');
// toggle hidable sections
$(".toggle > *").hide();
$(".toggle .admonition-title").show();
$(".toggle .admonition-title").click(function() {
$(this).parent().children().not(".admonition-title").toggle(400);
$(this).parent().children(".admonition-title").toggleClass("open");
})
// change appearance of arrow to X for menu closing
$(".fa-arrow-left").attr("class", "fas fa-times");
$(".fa-arrow-up").attr("class", "fas fa-times");
// initially hide menu close button on small screen widths
if ($(window).width() < 768) {
$('.fa-times').addClass('hidden');
}
$('#navbar-toggler').click(function() {
// toggle menu open/close button depending on collapsed state
if ($('#navbar-toggler').hasClass("collapsed")) {
$('.fa-times').removeClass('hidden');
} else {
$('.fa-times').addClass('hidden');
}
});
});

View File

@@ -1,15 +0,0 @@
{% if versions %}
<h3>{{ _('Branches') }}</h3>
<ul>
{%- for item in versions.branches %}
<li><a href="{{ item.url }}">{{ item.name }}</a></li>
{%- endfor %}
</ul>
<h3>{{ _('Tags') }}</h3>
<ul>
{%- for item in versions.tags %}
<li><a href="{{ item.url }}">{{ item.name }}</a></li>
{%- endfor %}
</ul>
{% endif %}
<!-- <h1>*testing versions*</h1> -->