Revert "add functionality to enlarge images"

This reverts commit ee2548ebede904d3178fa23a57114afdc6e21436.
This commit is contained in:
franperic 2023-02-24 14:02:45 +01:00
parent ee2548ebed
commit 4daea48b30

View File

@ -1,15 +1,3 @@
{{- /* Footer custom content area start */ -}} {{- /* Footer custom content area start */ -}}
<script src="https://cdnjs.cloudflare.com/ajax/libs/medium-zoom/1.0.6/medium-zoom.min.js" integrity="sha512-N9IJRoc3LaP3NDoiGkcPa4gG94kapGpaA5Zq9/Dr04uf5TbLFU5q0o8AbRhLKUUlp8QFS2u7S+Yti0U7QtuZvQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> {{- /* Insert any custom code web-analytics, resources, etc. here */ -}}
<script>
const images = Array.from(document.querySelectorAll(".post-content img"));
images.forEach(img => {
mediumZoom(img, {
margin: 0, /* 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>
{{- /* Footer custom content area end */ -}} {{- /* Footer custom content area end */ -}}