mirror of
https://github.com/Start9Labs/documentation.git
synced 2026-03-26 18:31:53 +00:00
further cleanup
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 16 KiB |
@@ -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');
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -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> -->
|
||||
Reference in New Issue
Block a user