All checks were successful
Codespell / Check for spelling errors (pull_request) Successful in 16s
15 lines
814 B
HTML
15 lines
814 B
HTML
<script src="https://cdnjs.cloudflare.com/ajax/libs/medium-zoom/1.1.0/medium-zoom.min.js" integrity="sha512-9ZKhgaFdKlsELap/dGw3Iaz5Bj+Las0XXZiRKYZaN9QArg6FtkD5rULNmNH4rTCTFxjPiBGr3MX8smRADRorDA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
|
|
|
<!--Allow zooming of any images in the post content.-->
|
|
<script>
|
|
const images = Array.from(document.querySelectorAll(".post-content img"));
|
|
images.forEach(img => {
|
|
mediumZoom(img, {
|
|
margin: 0, /* The space outside the zoomed image */
|
|
background: "rgba(0,0,0,0.8)", /* The color of the space outside the zoomed image */
|
|
scrollOffset: 40, /* The number of pixels to scroll to close the zoom */
|
|
container: null, /* The viewport to render the zoom in */
|
|
template: null /* The template element to display on zoom */
|
|
});
|
|
});
|
|
</script> |