Update medium-zoom and its settings

This commit is contained in:
Gabriel Arazas 2023-11-16 11:07:28 +08:00
parent 2149e3708d
commit e90c05d040
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -6,6 +6,10 @@
<link rel="stylesheet" href="{{ $highlighter.RelPermalink }}"/>
{{- /* medium-zoom */ -}}
<script defer src="https://cdn.jsdelivr.net/npm/medium-zoom@1.0.7/dist/medium-zoom.min.js"></script>
<script>window.addEventListener('load', () => mediumZoom('article img', { 'background': 'rgba(0, 0, 0, 0.75)' }))</script>
<script defer src="https://cdn.jsdelivr.net/npm/medium-zoom@1.0.8/dist/medium-zoom.min.js"></script>
<script>
window.addEventListener('load', () => {
mediumZoom('article .imageblock img', { 'background': 'rgba(0, 0, 0, 0.75)' })
})
</script>