mirror of
https://github.com/Start9Labs/documentation.git
synced 2026-04-01 04:53:41 +00:00
17 lines
670 B
JavaScript
17 lines
670 B
JavaScript
$(document).ready(function () {
|
|
// open external links in separate tab
|
|
$('a[href^="http://"], a[href^="https://"]').not('a[class*=internal]').attr('target', '_blank');
|
|
$(".fa-arrow-left").attr("class", "fas fa-times");
|
|
$(".fa-arrow-up").attr("class", "fas fa-times");
|
|
// 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");
|
|
})
|
|
$('#navbar-toggler').click(function() {
|
|
$('.fa-times').toggleClass('hidden');
|
|
});
|
|
});
|