Files
documentation/source/_static/js/main.js
Lucy Cifferello 1985952f87 content + styling
2020-10-08 20:56:54 -06:00

12 lines
476 B
JavaScript

$(document).ready(function () {
// 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");
})
});