hugo-mus-theme/layouts/partials/pseudocode.html

15 lines
459 B
HTML
Raw Normal View History

<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/pseudocode@latest/build/pseudocode.min.css"
/>
<script src="https://cdn.jsdelivr.net/npm/pseudocode@latest/build/pseudocode.min.js"></script>
<script>
window.addEventListener("DOMContentLoaded", function () {
let pseudocodeElements = document.getElementsByClassName("pseudocode");
for (let element of pseudocodeElements) {
pseudocode.renderElement(element);
}
});
</script>