Open gadenbuie opened 4 years ago
logos on slides
<!-- insert-logo.html -->
<style>
.logo {
background-image: url(figures/moffittlogo.png);
background-size: contain;
background-repeat: no-repeat;
position: absolute;
bottom: 0%;
left: 2%;
width: 152px;
height: 53px;
z-index: 0;
}
</style>
<script>
document.querySelectorAll('.remark-slide-content:not(.hide-logo)').forEach(el => {
el.innerHTML += '<div class="logo"></div>';
});
</script>
output:
xaringan::moon_reader:
includes:
after_body: insert-logo.html